#include <typeinfo>
#include <iostream>
#include "globals.h"
#include "modules.h"
#include "ctables.h"
#include "inspircd_io.h"
#include "wildcard.h"
#include "mode.h"
#include "message.h"
Include dependency graph for modules.cpp:
Go to the source code of this file.
Compounds | |
class | ExtMode |
Typedefs | |
typedef std::vector< ExtMode > | ExtModeList |
typedef ExtModeList::iterator | ExtModeListIter |
Functions | |
bool | ModeDefined (char modechar, int type) |
bool | ModeDefinedOper (char modechar, int type) |
int | ModeDefinedOn (char modechar, int type) |
int | ModeDefinedOff (char modechar, int type) |
bool | DoAddExtendedMode (char modechar, int type, bool requires_oper, int params_on, int params_off) |
std::vector< Module * > | modules (255) |
std::vector< ircd_module * > | factory (255) |
Variables | |
ExtModeList | EMode |
int | MODCOUNT = -1 |
|
Definition at line 31 of file modules.cpp. |
|
Definition at line 32 of file modules.cpp. Referenced by ModeDefined(), ModeDefinedOff(), ModeDefinedOn(), and ModeDefinedOper(). |
|
Definition at line 92 of file modules.cpp. References EMode, and ModeDefined(). Referenced by Server::AddExtendedMode().
00093 { 00094 if (ModeDefined(modechar,type)) { 00095 return false; 00096 } 00097 EMode.push_back(ExtMode(modechar,type,requires_oper,params_on,params_off)); 00098 return true; 00099 } |
|
|
|
Definition at line 37 of file modules.cpp. References EMode, and ExtModeListIter. Referenced by DoAddExtendedMode().
00038 { 00039 log(DEBUG,"Size of extmodes vector is %d",EMode.size()); 00040 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) 00041 { 00042 log(DEBUG,"i->modechar==%c, modechar=%c, i->type=%d, type=%d",i->modechar,modechar,i->type,type); 00043 if ((i->modechar == modechar) && (i->type == type)) 00044 { 00045 return true; 00046 } 00047 } 00048 return false; 00049 } |
|
Definition at line 79 of file modules.cpp. References EMode, and ExtModeListIter.
00080 { 00081 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) 00082 { 00083 if ((i->modechar == modechar) && (i->type == type)) 00084 { 00085 return i->params_when_off; 00086 } 00087 } 00088 return 0; 00089 } |
|
Definition at line 66 of file modules.cpp. References EMode, and ExtModeListIter.
00067 { 00068 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) 00069 { 00070 if ((i->modechar == modechar) && (i->type == type)) 00071 { 00072 return i->params_when_on; 00073 } 00074 } 00075 return 0; 00076 } |
|
Definition at line 51 of file modules.cpp. References EMode, and ExtModeListIter.
00052 { 00053 log(DEBUG,"Size of extmodes vector is %d",EMode.size()); 00054 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) 00055 { 00056 log(DEBUG,"i->modechar==%c, modechar=%c, i->type=%d, type=%d",i->modechar,modechar,i->type,type); 00057 if ((i->modechar == modechar) && (i->type == type) && (i->needsoper == true)) 00058 { 00059 return true; 00060 } 00061 } 00062 return false; 00063 } |
|
|
|
Definition at line 34 of file modules.cpp. Referenced by DoAddExtendedMode(), ModeDefined(), ModeDefinedOff(), ModeDefinedOn(), and ModeDefinedOper(). |
|
Definition at line 431 of file modules.cpp. |