using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ion.Storage;
namespace Holo.Managers
{
///
/// Provides management for CFH and moderacy tasks for staff.
///
public static class staffManager
{
///
/// Adds a staff message to the system_stafflog table, regarding one of the actions that a MOD/other staff member performed. Details in the message: type action, ID of the user (staffmember) that performed the action, the target user ID/room ID and the message + staff note.
///
/// The action performed. [alert, kick, ban, ralert, rkick]
/// The ID of the staffmember that performed the action.
/// The ID of the target user/target room.
/// The message that went with the action.
/// A staff-only note for Housekeeping. [optional]
public static void addStaffMessage(string Action, int userID, int targetID, string Message, string Note)
{
using (DatabaseClient dbClient = (Eucalypt.dbManager.GetClient()))
{
dbClient.AddParamWithValue("message", Message);
dbClient.AddParamWithValue("note", Note);
dbClient.ExecuteQuery("INSERT INTO system_stafflog (action,userid,targetid,message,note,timestamp) VALUES ('" + Action + "','" + userID + "','" + targetID + "',@message,@note,'" + DateTime.Now.ToString() + "')");
}
}
}
}