Logo Search packages:      
Sourcecode: verlihub version File versions

nDirectConnect::cDCConsole Class Reference

#include <cdcconsole.h>

Inheritance diagram for nDirectConnect::cDCConsole:

cObj

List of all members.


Detailed Description

Command interpreter for operators and normal users.

Author:
Daniel Muller Contains oll function that are execued for !commands or +commands (except the triggers)

Definition at line 53 of file cdcconsole.h.


Public Types

enum  {
  eCM_CMD, eCM_BAN, eCM_GAG, eCM_TRIGGER,
  eCM_SET, eCM_REG, eCM_INFO, eCM_RAW,
  eCM_WHO, eCM_KICK, eCM_PLUG, eCM_REPORT,
  eCM_BROADCAST, eCM_CONNTYPE, eCM_TRIGGERS, eCM_GETCONFIG
}
typedef cDCCommand cDCCmdBase
typedef cDCCommand::sDCCmdFunc cfDCCmdBase

Public Member Functions

 cDCConsole (cServerDC *, cMySQL &)
int CmdBanList (istringstream &cmd_line, cConnDC *conn, int bantype, bool filter=false)
int CmdCCBroadcast (istringstream &cmd_line, cConnDC *conn, int cl_min, int cl_max)
int CmdChat (istringstream &cmd_line, cConnDC *conn, bool swith)
int CmdClass (istringstream &cmd_line, cConnDC *conn)
int CmdCmds (istringstream &cmd_line, cConnDC *conn)
int CmdGag (istringstream &cmd_line, cConnDC *conn)
int CmdGetconfig (istringstream &cmd_line, cConnDC *conn)
int CmdGethost (istringstream &, cConnDC *)
int CmdGetinfo (istringstream &cmd_line, cConnDC *conn)
int CmdGetip (istringstream &, cConnDC *)
int CmdHelp (istringstream &cmd_line, cConnDC *conn)
int CmdHideKick (istringstream &cmd_line, cConnDC *conn)
int CmdHideMe (istringstream &cmd_line, cConnDC *conn)
int CmdKick (istringstream &cmd_line, cConnDC *conn)
int CmdMe (istringstream &cmd_line, cConnDC *conn)
int CmdMyInfo (istringstream &cmd_line, cConnDC *conn)
int CmdMyIp (istringstream &cmd_line, cConnDC *conn)
int CmdProtect (istringstream &cmd_line, cConnDC *conn)
int CmdQuit (istringstream &, cConnDC *conn, int code)
int CmdRegMe (istringstream &cmd_line, cConnDC *conn)
int CmdRegMyPasswd (istringstream &cmd_line, cConnDC *conn)
int CmdReload (istringstream &cmd_line, cConnDC *conn)
int CmdReport (istringstream &cmd_line, cConnDC *conn)
int CmdTopic (istringstream &cmd_line, cConnDC *conn)
int CmdUnGag (istringstream &cmd_line, cConnDC *conn)
int CmdUnHideKick (istringstream &cmd_line, cConnDC *conn)
int CmdUserLimit (istringstream &cmd_line, cConnDC *conn)
virtual std::ostream & ErrLog ()
int ErrLog (int level)
virtual std::ostream & Log ()
int Log (int level)
std::ostream & LogStream ()
virtual int OpCommand (const string &, cConnDC *)
void SetClassName (const char *name)
virtual int StrLog (std::ostream &ostr, int level)
virtual int UsrCommand (const string &, cConnDC *)

Static Public Member Functions

static int GetCount ()
static bool GetIPRange (const string &range, unsigned long &from, unsigned long &to)

Public Attributes

const char * mClassName
OwnerType * mOwner
cServerDCmServer
std::ostream * mToLog
cTriggersmTriggers

Static Public Attributes

static const string mEmpty
static cPCRE mIPRangeRex
static int msLogLevel = 4

Private Attributes

cDCCmdBase mCmdBan
cDCCmdBase mCmdBc
cDCCmdBase mCmdCmd
cDCCmdBase mCmdGag
cDCCmdBase mCmdGetConfig
cDCCmdBase mCmdInfo
cDCCmdBase mCmdKick
cDCCmdBase mCmdPlug
cCmdr mCmdr
cDCCmdBase mCmdRaw
cDCCmdBase mCmdRedirConnType
cDCCmdBase mCmdRedirTrigger
cDCCmdBase mCmdRegUsr
cDCCmdBase mCmdReport
cDCCmdBase mCmdSetVar
cDCCmdBase mCmdTrigger
cDCCmdBase mCmdWho
cConnTypeConsole mConnTypeConsole
nDirectConnect::cDCConsole::cfBan mFunBan
nDirectConnect::cDCConsole::cfBc mFunBc
nDirectConnect::cDCConsole::cfCmd mFunCmd
nDirectConnect::cDCConsole::cfGag mFunGag
nDirectConnect::cDCConsole::cfGetConfig mFunGetConfig
nDirectConnect::cDCConsole::cfInfo mFunInfo
nDirectConnect::cDCConsole::cfKick mFunKick
nDirectConnect::cDCConsole::cfPlug mFunPlug
nDirectConnect::cDCConsole::cfRaw mFunRaw
nDirectConnect::cDCConsole::cfRedirToConsole mFunRedirConnType
nDirectConnect::cDCConsole::cfRedirToConsole mFunRedirTrigger
nDirectConnect::cDCConsole::cfRegUsr mFunRegUsr
nDirectConnect::cDCConsole::cfReport mFunReport
nDirectConnect::cDCConsole::cfSetVar mFunSetVar
nDirectConnect::cDCConsole::cfTrigger mFunTrigger
nDirectConnect::cDCConsole::cfWho mFunWho
cTriggerConsole * mTriggerConsole
cCmdr mUserCmdr

Classes

struct  cfBan
struct  cfBc
struct  cfCmd
struct  cfGag
struct  cfGetConfig
struct  cfInfo
struct  cfKick
struct  cfPlug
struct  cfRaw
struct  cfRedirToConsole
struct  cfRegUsr
struct  cfReport
struct  cfSetVar
struct  cfTrigger
struct  cfWho

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index