From 78a96055c428d1970ece93dfb01902ac0d1699bd Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 4 Apr 2004 22:03:32 +0000 Subject: New documentation to document user/channel mode handling git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@380 e03df62e-2008-0410-955e-edbf42e46eb7 --- docs/module-doc/modules_8cpp.html | 149 ++++++++++++++++++++++++++------------ 1 file changed, 103 insertions(+), 46 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 4bd2c143c..1aba98c40 100644 --- a/docs/module-doc/modules_8cpp.html +++ b/docs/module-doc/modules_8cpp.html @@ -5,7 +5,7 @@
-Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  
+Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

modules.cpp File Reference

#include <typeinfo>
#include <iostream>
#include "globals.h"
@@ -31,11 +31,12 @@ Include dependency graph for modules.cpp:

ExtModeListIter

Functions

bool ModeDefined (char modechar, int type) -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) +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 @@ -88,11 +89,11 @@ Definition at line 28 o

Definition at line 29 of file modules.cpp.

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


Function Documentation

-

+

- + @@ -147,23 +148,23 @@ Referenced by ModeDefined()

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

References EMode, and ModeDefined().

-Referenced by Server::AddExtendedMode(). +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 }
+
00090 {
+00091         if (ModeDefined(modechar,type)) {
+00092                 return false;
+00093         }
+00094         EMode.push_back(ExtMode(modechar,type,requires_oper,params_on,params_off));
+00095         return true;
+00096 }
 
@@ -113,7 +114,7 @@ Referenced by ModeDefined() bool   default_on,   requires_oper,
-

+

@@ -233,7 +234,7 @@ Definition at line 34 o

References EMode, and ExtModeListIter.

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

00035 {
 00036         log(DEBUG,"Size of extmodes vector is %d",EMode.size());
@@ -250,7 +251,7 @@ Referenced by DoAddExtended
 
-

+

@@ -287,24 +288,24 @@ Referenced by DoAddExtended

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

References EMode, and ExtModeListIter.

-

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 }
+
00077 {
+00078         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
+00079         {
+00080                 if ((i->modechar == modechar) && (i->type == type))
+00081                 {
+00082                         return i->params_when_off;
+00083                 }
+00084         }
+00085         return 0;
+00086 }
 
-

+

+ +
@@ -341,24 +342,80 @@ References EMode, and <

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

References EMode, and ExtModeListIter.

-

00050 {
+
00064 {
+00065         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
+00066         {
+00067                 if ((i->modechar == modechar) && (i->type == type))
+00068                 {
+00069                         return i->params_when_on;
+00070                 }
+00071         }
+00072         return 0;
+00073 }
+
+

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

+ +

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

+References EMode, and ExtModeListIter. +

+

00049 {
+00050         log(DEBUG,"Size of extmodes vector is %d",EMode.size());
 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 }
+00053                 log(DEBUG,"i->modechar==%c, modechar=%c, i->type=%d, type=%d",i->modechar,modechar,i->type,type);
+00054                 if ((i->modechar == modechar) && (i->type == type) && (i->needsoper == true))
+00055                 {
+00056                         return true;
+00057                 }
+00058         }
+00059         return false;
+00060 }
 
-

+

+Referenced by DoAddExtendedMode(), ModeDefined(), ModeDefinedOff(), ModeDefinedOn(), and ModeDefinedOper().
@@ -411,7 +468,7 @@ References EMode, and <

Definition at line 31 of file modules.cpp.

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

@@ -435,10 +492,10 @@ Referenced by DoAddExtended

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


Generated on Sat Apr 3 16:36:06 2004 for InspIRCd by +
Generated on Sun Apr 4 23:02:18 2004 for InspIRCd by doxygen1.3-rc3
-- cgit v1.2.3