-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathHubCommands.h
executable file
·32 lines (27 loc) · 1.67 KB
/
HubCommands.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//---------------------------------------------------------------------------
#ifndef HubCommandsH
#define HubCommandsH
//---------------------------------------------------------------------------
struct User;
//---------------------------------------------------------------------------
class clsHubCommands {
private:
static char msg[1024];
static bool Ban(User * curUser, char * sCommand, bool fromPM, bool bFull);
static bool BanIp(User * curUser, char * sCommand, bool fromPM, bool bFull);
static bool NickBan(User * curUser, char * sNick, char * sReason, bool bFromPM);
static bool TempBan(User * curUser, char * sCommand, const size_t &dlen, bool fromPM, bool bFull);
static bool TempBanIp(User * curUser, char * sCommand, const size_t &dlen, bool fromPM, bool bFull);
static bool TempNickBan(User * curUser, char * sNick, char * sTime, const size_t &szTimeLen, char * sReason, bool bFromPM);
static bool RangeBan(User * curUser, char * sCommand, const size_t &dlen, bool fromPM, bool bFull);
static bool RangeTempBan(User * curUser, char * sCommand, const size_t &dlen, bool fromPM, bool bFull);
static bool RangeUnban(User * curUser, char * sCommand, bool fromPM);
static bool RangeUnban(User * curUser, char * sCommand, bool fromPM, unsigned char cType);
static void SendNoPermission(User * user, const bool &fromPM);
static int CheckFromPm(User * curUser, const bool &fromPM);
static void UncountDeflood(User * curUser, const bool &fromPM);
public:
static bool DoCommand(User * curUser, char * sCommand, const size_t &szCmdLen, bool fromPM = false);
};
//---------------------------------------------------------------------------
#endif