From e53c7aa50c815761f84e0ba3a28c0e6e58dc025f Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 1 May 2004 12:43:49 +0000 Subject: Added Module::OnAccessCheck Added ListMode support git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@758 e03df62e-2008-0410-955e-edbf42e46eb7 --- docs/module-doc/modules_8cpp.html | 270 ++++++++++++++++++++++++++------------ 1 file changed, 188 insertions(+), 82 deletions(-) (limited to 'docs/module-doc/modules_8cpp.html') diff --git a/docs/module-doc/modules_8cpp.html b/docs/module-doc/modules_8cpp.html index 05504e831..52e729483 100644 --- a/docs/module-doc/modules_8cpp.html +++ b/docs/module-doc/modules_8cpp.html @@ -37,12 +37,14 @@ Include dependency graph for modules.cpp:

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) +bool ModeIsListMode (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) +void ModeMakeList (char modechar) +std::vector< Module * > modules (255) +std::vector< ircd_module * > factory (255)

Variables

ExtModeList EMode int MODCOUNT = -1 @@ -69,7 +71,7 @@ Include dependency graph for modules.cpp:

32 of file modules.cpp. +Definition at line 33 of file modules.cpp.

@@ -93,13 +95,13 @@ Definition at line 32 o

-Definition at line 33 of file modules.cpp. +Definition at line 34 of file modules.cpp.

-Referenced by ModeDefined(), ModeDefinedOff(), ModeDefinedOn(), and ModeDefinedOper(). +Referenced by ModeDefined(), ModeDefinedOff(), ModeDefinedOn(), ModeDefinedOper(), ModeIsListMode(), and ModeMakeList().


Function Documentation

-

+

@@ -154,29 +156,29 @@ Referenced by ModeDefined()

-Definition at line 93 of file modules.cpp. +Definition at line 108 of file modules.cpp.

-References EMode, and ModeDefined(). +References EMode, and ModeDefined().

-Referenced by Server::AddExtendedMode(). +Referenced by Server::AddExtendedListMode(), and Server::AddExtendedMode().

-

00094 {
-00095         if (ModeDefined(modechar,type)) {
-00096                 return false;
-00097         }
-00098         EMode.push_back(ExtMode(modechar,type,requires_oper,params_on,params_off));
-00099         return true;
-00100 }
+
00109 {
+00110         if (ModeDefined(modechar,type)) {
+00111                 return false;
+00112         }
+00113         EMode.push_back(ExtMode(modechar,type,requires_oper,params_on,params_off));
+00114         return true;
+00115 }
 
-

+

- + @@ -236,28 +238,28 @@ Referenced by Server::AddEx

-Definition at line 38 of file modules.cpp. +Definition at line 39 of file modules.cpp.

-References EMode, and ExtModeListIter. +References EMode, and ExtModeListIter.

-Referenced by DoAddExtendedMode(). +Referenced by DoAddExtendedMode().

-

00039 {
-00040         log(DEBUG,"Size of extmodes vector is %d",EMode.size());
-00041         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
-00042         {
-00043                 log(DEBUG,"i->modechar==%c, modechar=%c, i->type=%d, type=%d",i->modechar,modechar,i->type,type);
-00044                 if ((i->modechar == modechar) && (i->type == type))
-00045                 {
-00046                         return true;
-00047                 }
-00048         }
-00049         return false;
-00050 }
+
00040 {
+00041         log(DEBUG,"Size of extmodes vector is %d",EMode.size());
+00042         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
+00043         {
+00044                 log(DEBUG,"i->modechar==%c, modechar=%c, i->type=%d, type=%d",i->modechar,modechar,i->type,type);
+00045                 if ((i->modechar == modechar) && (i->type == type))
+00046                 {
+00047                         return true;
+00048                 }
+00049         }
+00050         return false;
+00051 }
 
std::vector<ircd_module*> factory std::vector<ircd_module*> factory 255   
-

+

@@ -294,24 +296,24 @@ Referenced by DoAddExtended

-Definition at line 80 of file modules.cpp. +Definition at line 95 of file modules.cpp.

-References EMode, and ExtModeListIter. +References EMode, and ExtModeListIter.

-

00081 {
-00082         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
-00083         {
-00084                 if ((i->modechar == modechar) && (i->type == type))
-00085                 {
-00086                         return i->params_when_off;
-00087                 }
-00088         }
-00089         return 0;
-00090 }
+
00096 {
+00097         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
+00098         {
+00099                 if ((i->modechar == modechar) && (i->type == type))
+00100                 {
+00101                         return i->params_when_off;
+00102                 }
+00103         }
+00104         return 0;
+00105 }
 
-

+

+ +
@@ -347,31 +349,87 @@ References EMode, and <

+

+Definition at line 82 of file modules.cpp. +

+References EMode, and ExtModeListIter. +

+

00083 {
+00084         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
+00085         {
+00086                 if ((i->modechar == modechar) && (i->type == type))
+00087                 {
+00088                         return i->params_when_on;
+00089                 }
+00090         }
+00091         return 0;
+00092 }
+
+

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
bool ModeDefinedOper char   modechar,
int   type
+
+ + + +
+   + + +

+

Definition at line 67 of file modules.cpp.

-References EMode, and ExtModeListIter. +References EMode, and ExtModeListIter.

00068 {
-00069         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
-00070         {
-00071                 if ((i->modechar == modechar) && (i->type == type))
-00072                 {
-00073                         return i->params_when_on;
-00074                 }
-00075         }
-00076         return 0;
-00077 }
+00069         log(DEBUG,"Size of extmodes vector is %d",EMode.size());
+00070         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
+00071         {
+00072                 log(DEBUG,"i->modechar==%c, modechar=%c, i->type=%d, type=%d",i->modechar,modechar,i->type,type);
+00073                 if ((i->modechar == modechar) && (i->type == type) && (i->needsoper == true))
+00074                 {
+00075                         return true;
+00076                 }
+00077         }
+00078         return false;
+00079 }
 
-

+

+Definition at line 484 of file modules.cpp.
- + @@ -402,26 +460,74 @@ References EMode, and <

-Definition at line 52 of file modules.cpp. +Definition at line 53 of file modules.cpp. +

+References EMode, and ExtModeListIter. +

+

00054 {
+00055         log(DEBUG,"Size of extmodes vector is %d",EMode.size());
+00056         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
+00057         {
+00058                 log(DEBUG,"i->modechar==%c, modechar=%c, i->type=%d, type=%d",i->modechar,modechar,i->type,type);
+00059                 if ((i->modechar == modechar) && (i->type == type) && (i->list == true))
+00060                 {
+00061                         return true;
+00062                 }
+00063         }
+00064         return false;
+00065 }
+
+ +
bool ModeDefinedOper bool ModeIsListMode char    modechar,
+

+ + + + +
+ + + + + + + + + + +
void ModeMakeList char   modechar
+
+ + + +
+   + + +

+ +

+Definition at line 118 of file modules.cpp. +

+References EMode, ExtModeListIter, and MT_CHANNEL.

-References EMode, and ExtModeListIter. +Referenced by Server::AddExtendedListMode().

-

00053 {
-00054         log(DEBUG,"Size of extmodes vector is %d",EMode.size());
-00055         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
-00056         {
-00057                 log(DEBUG,"i->modechar==%c, modechar=%c, i->type=%d, type=%d",i->modechar,modechar,i->type,type);
-00058                 if ((i->modechar == modechar) && (i->type == type) && (i->needsoper == true))
-00059                 {
-00060                         return true;
-00061                 }
-00062         }
-00063         return false;
-00064 }
+
00119 {
+00120         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
+00121         {
+00122                 if ((i->modechar == modechar) && (i->type == MT_CHANNEL))
+00123                 {
+00124                         i->list = true;
+00125                         return;
+00126                 }
+00127         }
+00128         return;
+00129 }
 
-

+

+Referenced by DoAddExtendedMode(), ModeDefined(), ModeDefinedOff(), ModeDefinedOn(), ModeDefinedOper(), ModeIsListMode(), and ModeMakeList().
@@ -472,9 +578,9 @@ References EMode, and <

-Definition at line 35 of file modules.cpp. +Definition at line 36 of file modules.cpp.

-Referenced by DoAddExtendedMode(), ModeDefined(), ModeDefinedOff(), ModeDefinedOn(), and ModeDefinedOper().

@@ -498,10 +604,10 @@ Referenced by DoAddExtended

-Definition at line 442 of file modules.cpp.

-


Generated on Fri Apr 30 15:46:28 2004 for InspIRCd by +
Generated on Sat May 1 13:39:06 2004 for InspIRCd by doxygen1.3-rc3
-- cgit v1.2.3