1 .TH "modules.cpp" 3 "30 Apr 2004" "InspIRCd" \" -*- nroff -*-
9 \fC#include <typeinfo>\fP
11 \fC#include <iostream>\fP
13 \fC#include 'globals.h'\fP
15 \fC#include 'modules.h'\fP
17 \fC#include 'ctables.h'\fP
19 \fC#include 'inspircd_io.h'\fP
21 \fC#include 'wildcard.h'\fP
23 \fC#include 'mode.h'\fP
25 \fC#include 'message.h'\fP
27 \fC#include 'commands.h'\fP
34 .RI "class \fBExtMode\fP"
41 .RI "typedef std::vector< \fBExtMode\fP > \fBExtModeList\fP"
44 .RI "typedef ExtModeList::iterator \fBExtModeListIter\fP"
51 .RI "bool \fBModeDefined\fP (char modechar, int type)"
54 .RI "bool \fBModeDefinedOper\fP (char modechar, int type)"
57 .RI "int \fBModeDefinedOn\fP (char modechar, int type)"
60 .RI "int \fBModeDefinedOff\fP (char modechar, int type)"
63 .RI "bool \fBDoAddExtendedMode\fP (char modechar, int type, bool requires_oper, int params_on, int params_off)"
66 .RI "std::vector< \fBModule\fP * > \fBmodules\fP (255)"
69 .RI "std::vector< \fBircd_module\fP * > \fBfactory\fP (255)"
76 .RI "\fBExtModeList\fP \fBEMode\fP"
79 .RI "int \fBMODCOUNT\fP = -1"
82 .SH "Typedef Documentation"
84 .SS "typedef std::vector<\fBExtMode\fP> ExtModeList"
86 Definition at line 32 of file modules.cpp.
87 .SS "typedef ExtModeList::iterator ExtModeListIter"
89 Definition at line 33 of file modules.cpp.
91 Referenced by ModeDefined(), ModeDefinedOff(), ModeDefinedOn(), and ModeDefinedOper().
92 .SH "Function Documentation"
94 .SS "bool DoAddExtendedMode (char modechar, int type, bool requires_oper, int params_on, int params_off)"
96 Definition at line 93 of file modules.cpp.
98 References EMode, and ModeDefined().
100 Referenced by Server::AddExtendedMode().
104 95 if (ModeDefined(modechar,type)) {
107 98 EMode.push_back(ExtMode(modechar,type,requires_oper,params_on,params_off));
111 .SS "std::vector<\fBircd_module\fP*> factory (255)"
113 .SS "bool ModeDefined (char modechar, int type)"
115 Definition at line 38 of file modules.cpp.
117 References EMode, and ExtModeListIter.
119 Referenced by DoAddExtendedMode().
123 40 log(DEBUG,'Size of extmodes vector is %d',EMode.size());
124 41 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
126 43 log(DEBUG,'i->modechar==%c, modechar=%c, i->type=%d, type=%d',i->modechar,modechar,i->type,type);
127 44 if ((i->modechar == modechar) && (i->type == type))
135 .SS "int ModeDefinedOff (char modechar, int type)"
137 Definition at line 80 of file modules.cpp.
139 References EMode, and ExtModeListIter.
143 82 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
145 84 if ((i->modechar == modechar) && (i->type == type))
147 86 return i->params_when_off;
153 .SS "int ModeDefinedOn (char modechar, int type)"
155 Definition at line 67 of file modules.cpp.
157 References EMode, and ExtModeListIter.
161 69 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
163 71 if ((i->modechar == modechar) && (i->type == type))
165 73 return i->params_when_on;
171 .SS "bool ModeDefinedOper (char modechar, int type)"
173 Definition at line 52 of file modules.cpp.
175 References EMode, and ExtModeListIter.
179 54 log(DEBUG,'Size of extmodes vector is %d',EMode.size());
180 55 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
182 57 log(DEBUG,'i->modechar==%c, modechar=%c, i->type=%d, type=%d',i->modechar,modechar,i->type,type);
183 58 if ((i->modechar == modechar) && (i->type == type) && (i->needsoper == true))
191 .SS "std::vector<\fBModule\fP*> modules (255)"
193 .SH "Variable Documentation"
195 .SS "\fBExtModeList\fP EMode"
197 Definition at line 35 of file modules.cpp.
199 Referenced by DoAddExtendedMode(), ModeDefined(), ModeDefinedOff(), ModeDefinedOn(), and ModeDefinedOper().
200 .SS "int MODCOUNT = -1"
202 Definition at line 442 of file modules.cpp.
205 Generated automatically by Doxygen for InspIRCd from the source code.