From abdb186046bcdd83aefbc4171a00bd1ad7ec963c Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 3 Apr 2004 15:46:53 +0000 Subject: Added support for module-defined chanmodes with no parameters Fixed minor typo in example conf Added new stylesheet and docs git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@362 e03df62e-2008-0410-955e-edbf42e46eb7 --- docs/module-doc/modules_8cpp.html | 111 ++++++++++++++++++++------------------ 1 file changed, 60 insertions(+), 51 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 a02456293..4bd2c143c 100644 --- a/docs/module-doc/modules_8cpp.html +++ b/docs/module-doc/modules_8cpp.html @@ -1,7 +1,7 @@ modules.cpp File Reference - +
@@ -31,11 +31,11 @@ Include dependency graph for modules.cpp:

ExtModeListIter

Functions

bool ModeDefined (char modechar, int type) -bool ModeDefinedOn (char modechar, int type) -bool ModeDefinedOff (char modechar, int type) -bool AddExtendedMode (char modechar, int type, bool default_on, int params_on, int params_off) +int ModeDefinedOn (char modechar, int type) +int ModeDefinedOff (char modechar, int type) +bool DoAddExtendedMode (char modechar, int type, bool default_on, int params_on, int params_off) std::vector< Module * > modules (255) -std::vector< ircd_module * > factory (255) +std::vector< ircd_module * > factory (255)

Variables

ExtModeList EMode int MODCOUNT = -1 @@ -88,17 +88,17 @@ Definition at line 28 o

Definition at line 29 of file modules.cpp.

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


Function Documentation

-

+

+Referenced by DoAddExtendedMode(), ModeDefined(), ModeDefinedOff(), and ModeDefinedOn().
- + @@ -147,14 +147,19 @@ Referenced by ModeDefined()

-Definition at line 73 of file modules.cpp. +Definition at line 75 of file modules.cpp.

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

-

00074 {
-00075         EMode.push_back( ExtMode (modechar,type,default_on,params_on,params_off));
-00076         return true;
-00077 }
+Referenced by Server::AddExtendedMode().
+

+

00076 {
+00077         if (ModeDefined(modechar,type)) {
+00078                 return false;
+00079         }
+00080         EMode.push_back(ExtMode(modechar,type,default_on,params_on,params_off));
+00081         return true;
+00082 }
 
bool AddExtendedMode bool DoAddExtendedMode char    modechar,
@@ -164,7 +169,7 @@ References EMode.
- + @@ -228,16 +233,20 @@ Definition at line 34 o

References EMode, and ExtModeListIter.

+Referenced by DoAddExtendedMode(). +

00035 {
-00036         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
-00037         {
-00038                 if ((i->modechar == modechar) && (i->type == type))
-00039                 {
-00040                         return true;
-00041                 }
-00042         }
-00043         return false;
-00044 }
+00036         log(DEBUG,"Size of extmodes vector is %d",EMode.size());
+00037         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
+00038         {
+00039                 log(DEBUG,"i->modechar==%c, modechar=%c, i->type=%d, type=%d",i->modechar,modechar,i->type,type);
+00040                 if ((i->modechar == modechar) && (i->type == type))
+00041                 {
+00042                         return true;
+00043                 }
+00044         }
+00045         return false;
+00046 }
 
std::vector<ircd_module*> factory std::vector<ircd_module*> factory 255   
@@ -247,7 +256,7 @@ References EMode, and <
- + @@ -278,20 +287,20 @@ References EMode, and <

-Definition at line 60 of file modules.cpp. +Definition at line 62 of file modules.cpp.

References EMode, and ExtModeListIter.

-

00061 {
-00062         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
-00063         {
-00064                 if ((i->modechar == modechar) && (i->type == type))
-00065                 {
-00066                         return i->params_when_off;
-00067                 }
-00068         }
-00069         return 0;
-00070 }
+
00063 {
+00064         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
+00065         {
+00066                 if ((i->modechar == modechar) && (i->type == type))
+00067                 {
+00068                         return i->params_when_off;
+00069                 }
+00070         }
+00071         return 0;
+00072 }
 
bool ModeDefinedOff int ModeDefinedOff char    modechar,
@@ -301,7 +310,7 @@ References EMode, and <
- + @@ -332,20 +341,20 @@ References EMode, and <

-Definition at line 47 of file modules.cpp. +Definition at line 49 of file modules.cpp.

References EMode, and ExtModeListIter.

-

00048 {
-00049         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
-00050         {
-00051                 if ((i->modechar == modechar) && (i->type == type))
-00052                 {
-00053                         return i->params_when_on;
-00054                 }
-00055         }
-00056         return 0;
-00057 }
+
00050 {
+00051         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
+00052         {
+00053                 if ((i->modechar == modechar) && (i->type == type))
+00054                 {
+00055                         return i->params_when_on;
+00056                 }
+00057         }
+00058         return 0;
+00059 }
 
bool ModeDefinedOn int ModeDefinedOn char    modechar,
@@ -402,7 +411,7 @@ References EMode, and <

Definition at line 31 of file modules.cpp.

-Referenced by AddExtendedMode(), ModeDefined(), ModeDefinedOff(), and ModeDefinedOn().

@@ -426,10 +435,10 @@ Referenced by AddExtendedMo

-Definition at line 313 of file modules.cpp. +Definition at line 320 of file modules.cpp. -


Generated on Fri Apr 2 14:46:08 2004 for InspIRCd by +
Generated on Sat Apr 3 16:36:06 2004 for InspIRCd by doxygen1.3-rc3
-- cgit v1.2.3