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/annotated.html | 4 +- docs/module-doc/base_8h-source.html | 4 +- docs/module-doc/base_8h.html | 4 +- docs/module-doc/channels_8cpp-source.html | 42 +- docs/module-doc/channels_8cpp.html | 4 +- docs/module-doc/channels_8h-source.html | 6 +- docs/module-doc/channels_8h.html | 4 +- docs/module-doc/classAdmin-members.html | 4 +- docs/module-doc/classAdmin.html | 16 +- docs/module-doc/classBanItem-members.html | 4 +- docs/module-doc/classBanItem.html | 4 +- docs/module-doc/classConfigReader-members.html | 4 +- docs/module-doc/classConfigReader.html | 62 +-- docs/module-doc/classConnectClass-members.html | 4 +- docs/module-doc/classConnectClass.html | 4 +- docs/module-doc/classExemptItem-members.html | 4 +- docs/module-doc/classExemptItem.html | 4 +- docs/module-doc/classExtMode-members.html | 4 +- docs/module-doc/classExtMode.html | 4 +- docs/module-doc/classFileReader-members.html | 4 +- docs/module-doc/classFileReader.html | 102 ++--- docs/module-doc/classHostItem-members.html | 4 +- docs/module-doc/classHostItem.html | 4 +- docs/module-doc/classInviteItem-members.html | 4 +- docs/module-doc/classInviteItem.html | 4 +- docs/module-doc/classInvited-members.html | 4 +- docs/module-doc/classInvited.html | 4 +- docs/module-doc/classModule-members.html | 9 +- docs/module-doc/classModule.html | 188 ++++++--- docs/module-doc/classModuleFactory-members.html | 4 +- docs/module-doc/classModuleFactory.html | 14 +- docs/module-doc/classServer-members.html | 4 +- docs/module-doc/classServer.html | 221 +++++----- docs/module-doc/classVersion-members.html | 4 +- docs/module-doc/classVersion.html | 18 +- docs/module-doc/classchanrec-members.html | 4 +- docs/module-doc/classchanrec.html | 44 +- docs/module-doc/classclassbase-members.html | 4 +- docs/module-doc/classclassbase.html | 4 +- docs/module-doc/classcommand__t-members.html | 4 +- docs/module-doc/classcommand__t.html | 4 +- docs/module-doc/classconnection-members.html | 4 +- docs/module-doc/classconnection.html | 4 +- docs/module-doc/classes.html | 4 +- docs/module-doc/classpacket-members.html | 4 +- docs/module-doc/classpacket.html | 4 +- docs/module-doc/classserverrec-members.html | 4 +- docs/module-doc/classserverrec.html | 4 +- docs/module-doc/classucrec-members.html | 4 +- docs/module-doc/classucrec.html | 4 +- docs/module-doc/classuserrec-members.html | 4 +- docs/module-doc/classuserrec.html | 4 +- docs/module-doc/connection_8h-source.html | 4 +- docs/module-doc/connection_8h.html | 4 +- docs/module-doc/ctables_8h-source.html | 4 +- docs/module-doc/ctables_8h.html | 4 +- docs/module-doc/doxygen.css | 49 --- docs/module-doc/doxygen.png | Bin 2351 -> 2912 bytes docs/module-doc/files.html | 4 +- docs/module-doc/functions.html | 25 +- docs/module-doc/globals.html | 28 +- docs/module-doc/graph_legend.html | 4 +- docs/module-doc/hierarchy.html | 4 +- docs/module-doc/inherits.html | 4 +- docs/module-doc/main.html | 4 +- docs/module-doc/modules_8cpp-source.html | 533 ++++++++++++------------ docs/module-doc/modules_8cpp.html | 111 ++--- docs/module-doc/modules_8h-source.html | 273 ++++++------ docs/module-doc/modules_8h.html | 75 +++- docs/module-doc/servers_8cpp-source.html | 4 +- docs/module-doc/servers_8cpp.html | 4 +- docs/module-doc/servers_8h-source.html | 4 +- docs/module-doc/servers_8h.html | 4 +- docs/module-doc/tree.html | 2 +- docs/module-doc/users_8cpp-source.html | 4 +- docs/module-doc/users_8cpp.html | 4 +- docs/module-doc/users_8h-source.html | 4 +- docs/module-doc/users_8h.html | 4 +- 78 files changed, 1095 insertions(+), 955 deletions(-) delete mode 100644 docs/module-doc/doxygen.css (limited to 'docs/module-doc') diff --git a/docs/module-doc/annotated.html b/docs/module-doc/annotated.html index 28a333ab4..e983ceb9a 100644 --- a/docs/module-doc/annotated.html +++ b/docs/module-doc/annotated.html @@ -1,7 +1,7 @@ Annotated Index - +
@@ -30,7 +30,7 @@ userrecHolds all information about a user This class stores all information about a user connected to the irc server VersionHolds a module's Version information The four members (set by the constructor only) indicate details as to the version number of a module -
Generated on Fri Apr 2 14:46:10 2004 for InspIRCd by +
Generated on Sat Apr 3 16:36:08 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/base_8h-source.html b/docs/module-doc/base_8h-source.html index 3a48f7173..a5b2eef50 100644 --- a/docs/module-doc/base_8h-source.html +++ b/docs/module-doc/base_8h-source.html @@ -1,7 +1,7 @@ base.h Source File - +
@@ -29,7 +29,7 @@ 00028 00029 #endif 00030 -
Generated on Fri Apr 2 14:46:04 2004 for InspIRCd by +
Generated on Sat Apr 3 16:36:02 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/base_8h.html b/docs/module-doc/base_8h.html index 90def5e5c..eac9f9bae 100644 --- a/docs/module-doc/base_8h.html +++ b/docs/module-doc/base_8h.html @@ -1,7 +1,7 @@ base.h File Reference - +
@@ -34,7 +34,7 @@ This graph shows which files directly or indirectly include this file:

class  classbase  The base class for all inspircd classes. More...

-
Generated on Fri Apr 2 14:46:06 2004 for InspIRCd by +
Generated on Sat Apr 3 16:36:03 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/channels_8cpp-source.html b/docs/module-doc/channels_8cpp-source.html index 6962adf43..0ad69366d 100644 --- a/docs/module-doc/channels_8cpp-source.html +++ b/docs/module-doc/channels_8cpp-source.html @@ -1,7 +1,7 @@ channels.cpp Source File - +
@@ -24,15 +24,37 @@ 00016 00017 void chanrec::SetCustomMode(char mode,bool mode_on) 00018 { -00019 } -00020 -00021 void chanrec::SetCustomModeParam(char mode,char* parameter,bool mode_on) -00022 { -00023 } -00024 -00025 -00026 -
Generated on Fri Apr 2 14:46:04 2004 for InspIRCd by +00019 if (mode_on) { +00020 char m[3]; +00021 m[0] = mode; +00022 m[1] = '\0'; +00023 if (!strchr(this->custom_modes,mode)) +00024 { +00025 strncat(custom_modes,m,MAXMODES); +00026 } +00027 log(DEBUG,"Custom mode %c set",mode); +00028 } +00029 else { +00030 char temp[MAXMODES]; +00031 int count = 0; +00032 for (int q = 0; q < strlen(custom_modes); q++) { +00033 if (custom_modes[q] != mode) { +00034 temp[count++] = mode; +00035 } +00036 } +00037 temp[count] = '\0'; +00038 strncpy(custom_modes,temp,MAXMODES); +00039 log(DEBUG,"Custom mode %c removed",mode); +00040 } +00041 } +00042 +00043 void chanrec::SetCustomModeParam(char mode,char* parameter,bool mode_on) +00044 { +00045 } +00046 +00047 +00048 +
Generated on Sat Apr 3 16:36:02 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/channels_8cpp.html b/docs/module-doc/channels_8cpp.html index ecc0f640a..557c5a021 100644 --- a/docs/module-doc/channels_8cpp.html +++ b/docs/module-doc/channels_8cpp.html @@ -1,7 +1,7 @@ channels.cpp File Reference - +
@@ -22,7 +22,7 @@ Include dependency graph for channels.cpp:

Go to the source code of this file.
-
Generated on Fri Apr 2 14:46:06 2004 for InspIRCd by +
Generated on Sat Apr 3 16:36:04 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/channels_8h-source.html b/docs/module-doc/channels_8h-source.html index 231883d3c..a91e1ac98 100644 --- a/docs/module-doc/channels_8h-source.html +++ b/docs/module-doc/channels_8h-source.html @@ -1,7 +1,7 @@ channels.h Source File - +
@@ -83,7 +83,7 @@ 00130 short int c_private; 00131 00134 BanList bans; -00135 +00135 00138 void SetCustomMode(char mode,bool mode_on); 00139 00142 void SetCustomModeParam(char mode,char* parameter,bool mode_on); @@ -115,7 +115,7 @@ 00181 00182 #endif 00183 -
Generated on Fri Apr 2 14:46:04 2004 for InspIRCd by +
Generated on Sat Apr 3 16:36:02 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/channels_8h.html b/docs/module-doc/channels_8h.html index a4bbc4047..c68dc1bfa 100644 --- a/docs/module-doc/channels_8h.html +++ b/docs/module-doc/channels_8h.html @@ -1,7 +1,7 @@ channels.h File Reference - +
@@ -255,7 +255,7 @@ Holds a complete invite list. Definition at line 64 of file channels.h. -
Generated on Fri Apr 2 14:46:06 2004 for InspIRCd by +
Generated on Sat Apr 3 16:36:04 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classAdmin-members.html b/docs/module-doc/classAdmin-members.html index 7f58c1f11..3019adbd4 100644 --- a/docs/module-doc/classAdmin-members.html +++ b/docs/module-doc/classAdmin-members.html @@ -1,7 +1,7 @@ Member List - +
@@ -14,7 +14,7 @@ NameAdmin NickAdmin ~classbase()classbase [inline] -
Generated on Fri Apr 2 14:46:11 2004 for InspIRCd by +
Generated on Sat Apr 3 16:36:09 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classAdmin.html b/docs/module-doc/classAdmin.html index bd6139f5c..062a52a09 100644 --- a/docs/module-doc/classAdmin.html +++ b/docs/module-doc/classAdmin.html @@ -1,7 +1,7 @@ Admin class Reference - +
@@ -35,7 +35,7 @@ It is constructed by class Server, and

-Definition at line 60 of file modules.h.


Constructor & Destructor Documentation

+Definition at line 78 of file modules.h.

Constructor & Destructor Documentation

@@ -79,9 +79,9 @@ Definition at line 60 of

-Definition at line 86 of file modules.cpp. +Definition at line 91 of file modules.cpp.

-

00086 : Name(name), Email(email), Nick(nick) { };
+
00091 : Name(name), Email(email), Nick(nick) { };
 
@@ -107,7 +107,7 @@ Definition at line 86 o

-Definition at line 63 of file modules.h. +Definition at line 81 of file modules.h.

@@ -131,7 +131,7 @@ Definition at line 63 of

-Definition at line 63 of file modules.h. +Definition at line 81 of file modules.h.

@@ -155,12 +155,12 @@ Definition at line 63 of

-Definition at line 63 of file modules.h. +Definition at line 81 of file modules.h.


The documentation for this class was generated from the following files: -
Generated on Fri Apr 2 14:46:11 2004 for InspIRCd by +
Generated on Sat Apr 3 16:36:09 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classBanItem-members.html b/docs/module-doc/classBanItem-members.html index ca7dbaea3..a1e49d34b 100644 --- a/docs/module-doc/classBanItem-members.html +++ b/docs/module-doc/classBanItem-members.html @@ -1,7 +1,7 @@ Member List - +
@@ -15,7 +15,7 @@ set_timeHostItem ~classbase()classbase [inline] ~HostItem()HostItem [inline, virtual] -
Generated on Fri Apr 2 14:46:11 2004 for InspIRCd by +
Generated on Sat Apr 3 16:36:09 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classBanItem.html b/docs/module-doc/classBanItem.html index 3e7251f93..23950eb26 100644 --- a/docs/module-doc/classBanItem.html +++ b/docs/module-doc/classBanItem.html @@ -1,7 +1,7 @@ BanItem class Reference - +
@@ -31,7 +31,7 @@ A subclass of HostItem designed to h

Definition at line 33 of file channels.h.


The documentation for this class was generated from the following file: -
Generated on Fri Apr 2 14:46:11 2004 for InspIRCd by +
Generated on Sat Apr 3 16:36:09 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classConfigReader-members.html b/docs/module-doc/classConfigReader-members.html index b73cabe35..62785b854 100644 --- a/docs/module-doc/classConfigReader-members.html +++ b/docs/module-doc/classConfigReader-members.html @@ -1,7 +1,7 @@ Member List - +
@@ -17,7 +17,7 @@ Verify()ConfigReader ~classbase()classbase [inline] ~ConfigReader()ConfigReader -
Generated on Fri Apr 2 14:46:13 2004 for InspIRCd by +
Generated on Sat Apr 3 16:36:11 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classConfigReader.html b/docs/module-doc/classConfigReader.html index 05df29c0a..5d18c102f 100644 --- a/docs/module-doc/classConfigReader.html +++ b/docs/module-doc/classConfigReader.html @@ -1,7 +1,7 @@ ConfigReader class Reference - +
@@ -45,7 +45,7 @@ It may either be instantiated with one parameter or none. Constructing the class

-Definition at line 322 of file modules.h.


Constructor & Destructor Documentation

+Definition at line 357 of file modules.h.

Constructor & Destructor Documentation

@@ -75,13 +75,13 @@ Default constructor.

This constructor initialises the ConfigReader class to read the inspircd.conf file as specified when running ./configure.

-Definition at line 229 of file modules.cpp. +Definition at line 236 of file modules.cpp.

-References fname. +References fname.

-

00230 {
-00231         fname = CONFIG_FILE;
-00232 }
+
00237 {
+00238         fname = CONFIG_FILE;
+00239 }
 
@@ -115,9 +115,9 @@ Overloaded constructor.

This constructor initialises the ConfigReader class to read a user-specified config file

-Definition at line 240 of file modules.cpp. +Definition at line 247 of file modules.cpp.

-

00240 : fname(filename) { };
+
00247 : fname(filename) { };
 
@@ -150,10 +150,10 @@ Default destructor.

This method destroys the ConfigReader class.

-Definition at line 235 of file modules.cpp. +Definition at line 242 of file modules.cpp.

-

00236 {
-00237 }
+
00243 {
+00244 }
 
@@ -188,13 +188,13 @@ Counts the number of times a given tag appears in the config file.

This method counts the number of times a tag appears in a config file, for use where there are several tags of the same kind, e.g. with opers and connect types. It can be used with the index value of ConfigReader::ReadValue to loop through all copies of a multiple instance tag.

-Definition at line 250 of file modules.cpp. +Definition at line 257 of file modules.cpp.

-References fname. +References fname.

-

00251 {
-00252         return EnumConf(fname.c_str(),tag.c_str());
-00253 }
+
00258 {
+00259         return EnumConf(fname.c_str(),tag.c_str());
+00260 }
 
@@ -243,15 +243,15 @@ Retrieves a value from the config file.

This method retrieves a value from the config file. Where multiple copies of the tag exist in the config file, index indicates which of the values to retrieve.

-Definition at line 242 of file modules.cpp. +Definition at line 249 of file modules.cpp.

-References fname. +References fname.

-

00243 {
-00244         char val[MAXBUF];
-00245         ReadConf(fname.c_str(),tag.c_str(),name.c_str(),index,val);
-00246         return val;
-00247 }
+
00250 {
+00251         char val[MAXBUF];
+00252         ReadConf(fname.c_str(),tag.c_str(),name.c_str(),index,val);
+00253         return val;
+00254 }
 
@@ -284,11 +284,11 @@ Returns true if a config file is valid.

This method is unimplemented and will always return true.

-Definition at line 256 of file modules.cpp. +Definition at line 263 of file modules.cpp.

-

00257 {
-00258         return true;
-00259 }
+
00264 {
+00265         return true;
+00266 }
 
@@ -316,14 +316,14 @@ The filename of the configuration file, as set by the constructor.

-Definition at line 327 of file modules.h. +Definition at line 362 of file modules.h.

-Referenced by ConfigReader(), Enumerate(), and ReadValue(). +Referenced by ConfigReader(), Enumerate(), and ReadValue().


The documentation for this class was generated from the following files: -
Generated on Fri Apr 2 14:46:13 2004 for InspIRCd by +
Generated on Sat Apr 3 16:36:11 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classConnectClass-members.html b/docs/module-doc/classConnectClass-members.html index b0ffaeabb..5b5d44ad6 100644 --- a/docs/module-doc/classConnectClass-members.html +++ b/docs/module-doc/classConnectClass-members.html @@ -1,7 +1,7 @@ Member List - +
@@ -13,7 +13,7 @@ passConnectClass typeConnectClass ~classbase()classbase [inline] -
Generated on Fri Apr 2 14:46:14 2004 for InspIRCd by +
Generated on Sat Apr 3 16:36:12 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classConnectClass.html b/docs/module-doc/classConnectClass.html index e78af94d8..b7a746afe 100644 --- a/docs/module-doc/classConnectClass.html +++ b/docs/module-doc/classConnectClass.html @@ -1,7 +1,7 @@ ConnectClass class Reference - +
@@ -106,7 +106,7 @@ Definition at line 37 of fi
The documentation for this class was generated from the following file: -
Generated on Fri Apr 2 14:46:14 2004 for InspIRCd by +
Generated on Sat Apr 3 16:36:12 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classExemptItem-members.html b/docs/module-doc/classExemptItem-members.html index b328ad237..d6b71ff1f 100644 --- a/docs/module-doc/classExemptItem-members.html +++ b/docs/module-doc/classExemptItem-members.html @@ -1,7 +1,7 @@ Member List - +
@@ -15,7 +15,7 @@ set_timeHostItem ~classbase()classbase [inline] ~HostItem()HostItem [inline, virtual] -
Generated on Fri Apr 2 14:46:15 2004 for InspIRCd by +
Generated on Sat Apr 3 16:36:13 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classExemptItem.html b/docs/module-doc/classExemptItem.html index 18a11bdb4..6505bbfe4 100644 --- a/docs/module-doc/classExemptItem.html +++ b/docs/module-doc/classExemptItem.html @@ -1,7 +1,7 @@ ExemptItem class Reference - +
@@ -31,7 +31,7 @@ A subclass of HostItem designed to h

Definition at line 41 of file channels.h.


The documentation for this class was generated from the following file: -
Generated on Fri Apr 2 14:46:15 2004 for InspIRCd by +
Generated on Sat Apr 3 16:36:13 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classExtMode-members.html b/docs/module-doc/classExtMode-members.html index 6ef192623..3dafbef26 100644 --- a/docs/module-doc/classExtMode-members.html +++ b/docs/module-doc/classExtMode-members.html @@ -1,7 +1,7 @@ Member List - +
@@ -13,7 +13,7 @@ params_when_offExtMode params_when_onExtMode typeExtMode -
Generated on Fri Apr 2 14:46:15 2004 for InspIRCd by +
Generated on Sat Apr 3 16:36:13 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classExtMode.html b/docs/module-doc/classExtMode.html index 92ccd87f3..6ceacba06 100644 --- a/docs/module-doc/classExtMode.html +++ b/docs/module-doc/classExtMode.html @@ -1,7 +1,7 @@ ExtMode class Reference - +
@@ -203,7 +203,7 @@ Definition at line 21 o
The documentation for this class was generated from the following file: -
Generated on Fri Apr 2 14:46:15 2004 for InspIRCd by +
Generated on Sat Apr 3 16:36:13 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classFileReader-members.html b/docs/module-doc/classFileReader-members.html index 7e360bc2d..5446891c7 100644 --- a/docs/module-doc/classFileReader-members.html +++ b/docs/module-doc/classFileReader-members.html @@ -1,7 +1,7 @@ Member List - +
@@ -18,7 +18,7 @@ LoadFile(std::string filename)FileReader ~classbase()classbase [inline] ~FileReader()FileReader -
Generated on Fri Apr 2 14:46:16 2004 for InspIRCd by +
Generated on Sat Apr 3 16:36:14 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classFileReader.html b/docs/module-doc/classFileReader.html index 75ff67749..b44d63b9b 100644 --- a/docs/module-doc/classFileReader.html +++ b/docs/module-doc/classFileReader.html @@ -1,7 +1,7 @@ FileReader class Reference - +
@@ -36,7 +36,7 @@ Inheritance diagram for FileReader:

FileSize ()  Returns the size of the file in lines.


Private Attributes

-file_cache fc +file_cache fc

Detailed Description

Caches a text file into memory and can be used to retrieve lines from it. @@ -45,7 +45,7 @@ This class contains methods for read-only manipulation of a text file in memory.

-Definition at line 367 of file modules.h.


Constructor & Destructor Documentation

+Definition at line 402 of file modules.h.

Constructor & Destructor Documentation

@@ -75,10 +75,10 @@ Default constructor.

This method does not load any file into memory, you must use the LoadFile method after constructing the class this way.

-Definition at line 269 of file modules.cpp. +Definition at line 276 of file modules.cpp.

-

00270 {
-00271 }
+
00277 {
+00278 }
 
@@ -112,15 +112,15 @@ Secondary constructor.

This method initialises the class with a file loaded into it ready for GetLine and and other methods to be called. If the file could not be loaded, FileReader::FileSize returns 0.

-Definition at line 262 of file modules.cpp. +Definition at line 269 of file modules.cpp.

-References fc, and file_cache. +References fc, and file_cache.

-

00263 {
-00264         file_cache c;
-00265         readfile(c,filename.c_str());
-00266         this->fc = c;
-00267 }
+
00270 {
+00271         file_cache c;
+00272         readfile(c,filename.c_str());
+00273         this->fc = c;
+00274 }
 
@@ -153,10 +153,10 @@ Default destructor.

This deletes the memory allocated to the file.

-Definition at line 281 of file modules.cpp. +Definition at line 288 of file modules.cpp.

-

00282 {
-00283 }
+
00289 {
+00290 }
 
@@ -190,20 +190,20 @@ Retrieve one line from the file.

This method retrieves one line from the text file. If an empty non-NULL string is returned, the index was out of bounds, or the line had no data on it.

-Definition at line 285 of file modules.cpp. +Definition at line 292 of file modules.cpp.

-References fc. +References fc.

-

00286 {
-00287         if (fc.size() == 0)
-00288         {
-00289                 return(false);
-00290         }
-00291         else
-00292         {
-00293                 return(true);
-00294         }
-00295 }
+
00293 {
+00294         if (fc.size() == 0)
+00295         {
+00296                 return(false);
+00297         }
+00298         else
+00299         {
+00300                 return(true);
+00301         }
+00302 }
 
@@ -236,13 +236,13 @@ Returns the size of the file in lines.

This method returns the number of lines in the read file. If it is 0, no lines have been read into memory, either because the file is empty or it does not exist, or cannot be opened due to permission problems.

-Definition at line 304 of file modules.cpp. +Definition at line 311 of file modules.cpp.

-References fc. +References fc.

-

00305 {
-00306         return fc.size();
-00307 }
+
00312 {
+00313         return fc.size();
+00314 }
 
@@ -274,15 +274,15 @@ References fc.

-Definition at line 297 of file modules.cpp. +Definition at line 304 of file modules.cpp.

-References fc. +References fc.

-

00298 {
-00299         if ((x<0) || (x>fc.size()))
-00300                 return "";
-00301         return fc[x];
-00302 }
+
00305 {
+00306         if ((x<0) || (x>fc.size()))
+00307                 return "";
+00308         return fc[x];
+00309 }
 
@@ -316,15 +316,15 @@ Used to load a file.

This method loads a file into the class ready for GetLine and and other methods to be called. If the file could not be loaded, FileReader::FileSize returns 0.

-Definition at line 273 of file modules.cpp. +Definition at line 280 of file modules.cpp.

-References fc, and file_cache. +References fc, and file_cache.

-

00274 {
-00275         file_cache c;
-00276         readfile(c,filename.c_str());
-00277         this->fc = c;
-00278 }
+
00281 {
+00282         file_cache c;
+00283         readfile(c,filename.c_str());
+00284         this->fc = c;
+00285 }
 
@@ -335,7 +335,7 @@ References fc, and -
file_cache FileReader::fc [private] + file_cache FileReader::fc [private]
@@ -350,14 +350,14 @@ References
fc, and

-Definition at line 369 of file modules.h. +Definition at line 404 of file modules.h.

-Referenced by Exists(), FileReader(), FileSize(), GetLine(), and LoadFile(). +Referenced by Exists(), FileReader(), FileSize(), GetLine(), and LoadFile().


The documentation for this class was generated from the following files: -
Generated on Fri Apr 2 14:46:16 2004 for InspIRCd by +
Generated on Sat Apr 3 16:36:14 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classHostItem-members.html b/docs/module-doc/classHostItem-members.html index 6675c9141..258e571c1 100644 --- a/docs/module-doc/classHostItem-members.html +++ b/docs/module-doc/classHostItem-members.html @@ -1,7 +1,7 @@ Member List - +
@@ -15,7 +15,7 @@ set_timeHostItem ~classbase()classbase [inline] ~HostItem()HostItem [inline, virtual] -
Generated on Fri Apr 2 14:46:16 2004 for InspIRCd by +
Generated on Sat Apr 3 16:36:14 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classHostItem.html b/docs/module-doc/classHostItem.html index 13741aad6..6eb77b03f 100644 --- a/docs/module-doc/classHostItem.html +++ b/docs/module-doc/classHostItem.html @@ -1,7 +1,7 @@ HostItem class Reference - +
@@ -181,7 +181,7 @@ Definition at line 20 of
The documentation for this class was generated from the following file: -
Generated on Fri Apr 2 14:46:16 2004 for InspIRCd by +
Generated on Sat Apr 3 16:36:14 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classInviteItem-members.html b/docs/module-doc/classInviteItem-members.html index 8a849f9a8..d778e54ea 100644 --- a/docs/module-doc/classInviteItem-members.html +++ b/docs/module-doc/classInviteItem-members.html @@ -1,7 +1,7 @@ Member List - +
@@ -15,7 +15,7 @@ set_timeHostItem ~classbase()classbase [inline] ~HostItem()HostItem [inline, virtual] -
Generated on Fri Apr 2 14:46:17 2004 for InspIRCd by +
Generated on Sat Apr 3 16:36:16 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classInviteItem.html b/docs/module-doc/classInviteItem.html index e67ff1aab..b4914ae85 100644 --- a/docs/module-doc/classInviteItem.html +++ b/docs/module-doc/classInviteItem.html @@ -1,7 +1,7 @@ InviteItem class Reference - +
@@ -31,7 +31,7 @@ A subclass of HostItem designed to h

Definition at line 49 of file channels.h.


The documentation for this class was generated from the following file: -
Generated on Fri Apr 2 14:46:17 2004 for InspIRCd by +
Generated on Sat Apr 3 16:36:16 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classInvited-members.html b/docs/module-doc/classInvited-members.html index b75a208c4..f6bed4ba1 100644 --- a/docs/module-doc/classInvited-members.html +++ b/docs/module-doc/classInvited-members.html @@ -1,7 +1,7 @@ Member List - +
@@ -11,7 +11,7 @@ channelInvited classbase()classbase [inline] ~classbase()classbase [inline] -
Generated on Fri Apr 2 14:46:17 2004 for InspIRCd by +
Generated on Sat Apr 3 16:36:15 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classInvited.html b/docs/module-doc/classInvited.html index 66630dea1..0ce610b4f 100644 --- a/docs/module-doc/classInvited.html +++ b/docs/module-doc/classInvited.html @@ -1,7 +1,7 @@ Invited class Reference - +
@@ -58,7 +58,7 @@ Referenced by userrec::Invite
The documentation for this class was generated from the following file:
-
Generated on Fri Apr 2 14:46:17 2004 for InspIRCd by +
Generated on Sat Apr 3 16:36:15 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classModule-members.html b/docs/module-doc/classModule-members.html index 4104ef1e2..8bb51c762 100644 --- a/docs/module-doc/classModule-members.html +++ b/docs/module-doc/classModule-members.html @@ -1,7 +1,7 @@ Member List - +
@@ -11,9 +11,10 @@ classbase()classbase [inline] GetVersion()Module [virtual] Module()Module - Module::OnPacketReceive(char *p)Module [virtual] - Module::OnPacketTransmit(char *p)Module [virtual] + Module::OnUserPreJoin(userrec *user, chanrec *chan, char *cname)Module [virtual] OnExtendedMode(userrec *user, chanrec *chan, char modechar, int type, bool mode_on, string_list &params)Module [virtual] + OnPacketReceive(char *p)Module [virtual] + OnPacketTransmit(char *p)Module [virtual] OnRehash()Module [virtual] OnServerRaw(std::string &raw, bool inbound)Module [virtual] OnUserConnect(userrec *user)Module [virtual] @@ -22,7 +23,7 @@ OnUserQuit(userrec *user)Module [virtual] ~classbase()classbase [inline] ~Module()Module [virtual] -
Generated on Fri Apr 2 14:46:18 2004 for InspIRCd by +
Generated on Sat Apr 3 16:36:16 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classModule.html b/docs/module-doc/classModule.html index 03cd1ca52..2a212a72e 100644 --- a/docs/module-doc/classModule.html +++ b/docs/module-doc/classModule.html @@ -1,7 +1,7 @@ Module class Reference - +
@@ -36,16 +36,18 @@ Inheritance diagram for Module:



virtual void OnUserPart (userrec *user, chanrec *channel)  Called when a user parts a channel.

-virtual void Module::OnPacketTransmit (char *p) +virtual void OnPacketTransmit (char *p)  Called before a packet is transmitted across the irc network between two irc servers.

-virtual void Module::OnPacketReceive (char *p) +virtual void OnPacketReceive (char *p)  Called after a packet is received from another irc server.

virtual void OnRehash ()  Called on rehash.

virtual void OnServerRaw (std::string &raw, bool inbound)  Called when a raw command is transmitted or received.

-virtual bool OnExtendedMode (userrec *user, chanrec *chan, char modechar, int type, bool mode_on, string_list &params) +virtual bool OnExtendedMode (userrec *user, chanrec *chan, char modechar, int type, bool mode_on, string_list &params)  Called whenever an extended mode is to be processed.

+virtual int Module::OnUserPreJoin (userrec *user, chanrec *chan, char *cname) + Called whenever a user is about to join a channel, before any processing is done.


Detailed Description

Base class for all InspIRCd modules This class is the base class for InspIRCd modules. @@ -54,7 +56,7 @@ All modules must inherit from this class, its methods will be called when irc se

-Definition at line 72 of file modules.h.


Constructor & Destructor Documentation

+Definition at line 90 of file modules.h.

Constructor & Destructor Documentation

@@ -84,9 +86,9 @@ Default constructor creates a module class.

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

-

00088 { }
+
00093 { }
 
@@ -119,9 +121,9 @@ Default destructor destroys a module class.

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

-

00089 { }
+
00094 { }
 
@@ -155,55 +157,39 @@ Returns the version number of a Module.

The method should return a Version object with its version information assigned via Version::Version

-Definition at line 99 of file modules.cpp. +Definition at line 105 of file modules.cpp.

-

00099 { return Version(1,0,0,0); }
+
00105 { return Version(1,0,0,0); }
 
-

+

- -
- + - - - - + + - -
virtual void Module::Module::OnPacketReceive virtual int Module::Module::OnUserPreJoin char *   p [virtual]userrec  user,
-
- - - - - -
-   - - -

-Called after a packet is received from another irc server. -

-The packet is represented as a char*, as it should be regarded as a buffer, and not a string. This allows you to easily represent it in the correct ways to implement encryption, compression, digital signatures and anything else you may want to add. This should be regarded as a pre-processor and will be called immediately after the packet is received but before any other operations with the core of the ircd.

-

- - - +Returning any nonzero value from this function stops the process immediately, causing no output to be sent to the user by the core. If you do this you must produce your own numerics, notices etc. This is useful for modules which may want to mimic +b, +k, +l etc.

+IMPORTANT NOTE!

+If the user joins a NEW channel which does not exist yet, OnUserPreJoin will be called BEFORE the channel record is created. This will cause chanrec* chan to be NULL. There is very little you can do in form of processing on the actual channel record at this point, however the channel NAME will still be passed in char* cname, so that you could for example implement a channel blacklist or whitelist, etc.

- - - - - - - + + + + + + + + + + + + + + +
virtual void Module::Module::OnPacketTransmit char *   p [virtual]chanrec  chan,
char *   cname
[virtual]
@@ -218,9 +204,11 @@ The packet is represented as a char*, as it should be regarded as a buffer, and

-Called before a packet is transmitted across the irc network between two irc servers. +Called whenever a user is about to join a channel, before any processing is done.

-The packet is represented as a char*, as it should be regarded as a buffer, and not a string. This allows you to easily represent it in the correct ways to implement encryption, compression, digital signatures and anything else you may want to add. This should be regarded as a pre-processor and will be called before ANY other operations within the ircd core program.

@@ -261,7 +249,7 @@ The packet is represented as a char*, as it should be regarded as a buffer, and - string_list &  + string_list &    params @@ -286,9 +274,81 @@ Called whenever an extended mode is to be processed.

The type parameter is MT_SERVER, MT_CLIENT or MT_CHANNEL, dependent on where the mode is being changed. mode_on is set when the mode is being set, in which case params contains a list of parameters for the mode as strings. If mode_on is false, the mode is being removed, and parameters may contain the parameters for the mode, dependent on wether they were defined when a mode handler was set up with Server::AddExtendedMode If the mode is not a channel mode, chanrec* chan is null, and should not be read from or written to.

-Definition at line 98 of file modules.cpp. +Definition at line 104 of file modules.cpp.

-

00098 { }
+
00104 { }
+
+ + +

+ + + + +
+ + + + + + + + + + +
void Module::OnPacketReceive char *   p [virtual]
+
+ + + + + +
+   + + +

+Called after a packet is received from another irc server. +

+The packet is represented as a char*, as it should be regarded as a buffer, and not a string. This allows you to easily represent it in the correct ways to implement encryption, compression, digital signatures and anything else you may want to add. This should be regarded as a pre-processor and will be called immediately after the packet is received but before any other operations with the core of the ircd. +

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

+

00100 { }
+
+

+ + + + +
+ + + + + + + + + + +
void Module::OnPacketTransmit char *   p [virtual]
+
+ + + +
+   + + +

+Called before a packet is transmitted across the irc network between two irc servers. +

+The packet is represented as a char*, as it should be regarded as a buffer, and not a string. This allows you to easily represent it in the correct ways to implement encryption, compression, digital signatures and anything else you may want to add. This should be regarded as a pre-processor and will be called before ANY other operations within the ircd core program. +

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

+

00099 { }
 
@@ -321,9 +381,9 @@ Called on rehash.

This method is called prior to a /REHASH or when a SIGHUP is received from the operating system. You should use it to reload any files so that your module keeps in step with the rest of the application.

-Definition at line 96 of file modules.cpp. +Definition at line 101 of file modules.cpp.

-

00096 { }
+
00101 { }
 
@@ -366,9 +426,9 @@ Called when a raw command is transmitted or received.

This method is the lowest level of handler available to a module. It will be called with raw data which is passing through a connected socket. If you wish, you may munge this data by changing the string parameter "raw". If you do this, after your function exits it will immediately be cut down to 510 characters plus a carriage return and linefeed.

-Definition at line 97 of file modules.cpp. +Definition at line 102 of file modules.cpp.

-

00097 { }
+
00102 { }
 
@@ -402,9 +462,9 @@ Called when a user connects.

The details of the connecting user are available to you in the parameter userrec *user

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

-

00090 { }
+
00095 { }
 
@@ -447,9 +507,9 @@ Called when a user joins a channel.

The details of the joining user are available to you in the parameter userrec *user, and the details of the channel they have joined is available in the variable chanrec *channel

-Definition at line 92 of file modules.cpp. +Definition at line 97 of file modules.cpp.

-

00092 { }
+
00097 { }
 
@@ -492,9 +552,9 @@ Called when a user parts a channel.

The details of the leaving user are available to you in the parameter userrec *user, and the details of the channel they have left is available in the variable chanrec *channel

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

-

00093 { }
+
00098 { }
 
@@ -528,15 +588,15 @@ Called when a user quits.

The details of the exiting user are available to you in the parameter userrec *user

-Definition at line 91 of file modules.cpp. +Definition at line 96 of file modules.cpp.

-

00091 { }
+
00096 { }
 

The documentation for this class was generated from the following files: -
Generated on Fri Apr 2 14:46:18 2004 for InspIRCd by +
Generated on Sat Apr 3 16:36:16 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classModuleFactory-members.html b/docs/module-doc/classModuleFactory-members.html index 88cb9d978..c978d4158 100644 --- a/docs/module-doc/classModuleFactory-members.html +++ b/docs/module-doc/classModuleFactory-members.html @@ -1,7 +1,7 @@ Member List - +
@@ -13,7 +13,7 @@ ModuleFactory()ModuleFactory [inline] ~classbase()classbase [inline] ~ModuleFactory()ModuleFactory [inline, virtual] -
Generated on Fri Apr 2 14:46:18 2004 for InspIRCd by +
Generated on Sat Apr 3 16:36:17 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classModuleFactory.html b/docs/module-doc/classModuleFactory.html index 655426e1a..95eeb5b0d 100644 --- a/docs/module-doc/classModuleFactory.html +++ b/docs/module-doc/classModuleFactory.html @@ -1,7 +1,7 @@ ModuleFactory class Reference - +
@@ -34,7 +34,7 @@ This is to allow for modules to create many different variants of

-Definition at line 413 of file modules.h.


Constructor & Destructor Documentation

+Definition at line 448 of file modules.h.

Constructor & Destructor Documentation

@@ -62,9 +62,9 @@ Definition at line 413 of

-Definition at line 416 of file modules.h. +Definition at line 451 of file modules.h.

-

00416 { }
+
00451 { }
 
@@ -95,9 +95,9 @@ Definition at line 416 of

-Definition at line 417 of file modules.h. +Definition at line 452 of file modules.h.

-

00417 { }
+
00452 { }
 
@@ -134,7 +134,7 @@ Your inherited class of ModuleFactory must return a pointer to your modules.h -
Generated on Fri Apr 2 14:46:18 2004 for InspIRCd by +
Generated on Sat Apr 3 16:36:17 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classServer-members.html b/docs/module-doc/classServer-members.html index ae6cf04e4..c1233c02a 100644 --- a/docs/module-doc/classServer-members.html +++ b/docs/module-doc/classServer-members.html @@ -1,7 +1,7 @@ Member List - +
@@ -32,7 +32,7 @@ Server()Server ~classbase()classbase [inline] ~Server()Server [virtual] -
Generated on Fri Apr 2 14:46:19 2004 for InspIRCd by +
Generated on Sat Apr 3 16:36:18 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classServer.html b/docs/module-doc/classServer.html index 1565c1d30..aaef1907f 100644 --- a/docs/module-doc/classServer.html +++ b/docs/module-doc/classServer.html @@ -1,7 +1,7 @@ Server class Reference - +
@@ -74,7 +74,7 @@ All modules should instantiate at least one copy of this class, and use its memb

-Definition at line 165 of file modules.h.


Constructor & Destructor Documentation

+Definition at line 196 of file modules.h.

Constructor & Destructor Documentation

@@ -104,10 +104,10 @@ Default constructor.

Creates a Server object.

-Definition at line 105 of file modules.cpp. +Definition at line 111 of file modules.cpp.

-

00106 {
-00107 }
+
00112 {
+00113 }
 
@@ -140,10 +140,10 @@ Default destructor.

Destroys a Server object.

-Definition at line 109 of file modules.cpp. +Definition at line 115 of file modules.cpp.

-

00110 {
-00111 }
+
00116 {
+00117 }
 
@@ -201,13 +201,13 @@ This allows modules to add extra commands into the command table. You must place typedef void (handlerfunc) (char**, int, userrec*); ... void handle_kill(char **parameters, int pcnt, userrec *user)

When the command is typed, the parameters will be placed into the parameters array (similar to argv) and the parameter count will be placed into pcnt (similar to argv). There will never be any less parameters than the 'minparams' value you specified when creating the command. The *user parameter is the class of the user which caused the command to trigger, who will always have the flag you specified in 'flags' when creating the initial command. For example to create an oper only command create the commands with flags='o'.

-Definition at line 123 of file modules.cpp. +Definition at line 129 of file modules.cpp.

-References createcommand(). +References createcommand().

-

00124 {
-00125         createcommand(cmd,f,flags,minparams);
-00126 }
+
00130 {
+00131         createcommand(cmd,f,flags,minparams);
+00132 }
 
@@ -268,10 +268,13 @@ Adds an extended mode letter which is parsed by a module This allows modules to

+x for hostcloak. the "type" parameter is either MT_CHANNEL, MT_CLIENT, or MT_SERVER, to indicate wether the mode is a channel mode, a client mode, or a server mode. default_on is true if the mode is to be applied to default connections. params_when_on is the number of modes to expect when the mode is turned on (for type MT_CHANNEL only), e.g. with mode +b, this would have a value of 1. the params_when_off value has a similar value to params_when_on, except it indicates the number of parameters to expect when the mode is disabled. Modes which act in a similar way to channel mode +l (e.g. require a parameter to enable, but not to disable) should use this parameter. The function returns false if the mode is unavailable, and will not attempt to allocate another character, as this will confuse users. This also means that as only one module can claim a specific mode character, the core does not need to keep track of which modules own which modes, which speeds up operation of the server. In this version, a mode can have at most one parameter, attempting to use more parameters will have undefined effects.

-Definition at line 224 of file modules.cpp. +Definition at line 230 of file modules.cpp.

-

00225 {
-00226 }
+References DoAddExtendedMode().
+

+

00231 {
+00232         return DoAddExtendedMode(modechar,type,default_on,params_when_on,params_when_off);
+00233 }
 
@@ -314,11 +317,11 @@ Attempts to look up a user's privilages on a channel.

This function will return a string containing either @, , +, or an empty string, representing the user's privilages upon the channel you specify.

-Definition at line 202 of file modules.cpp. +Definition at line 208 of file modules.cpp.

-

00203 {
-00204         return cmode(User,Chan);
-00205 }
+
00209 {
+00210         return cmode(User,Chan);
+00211 }
 
@@ -361,11 +364,11 @@ Returns true if two users share a common channel.

This method is used internally by the NICK and QUIT commands, and the Server::SendCommon method.

-Definition at line 165 of file modules.cpp. +Definition at line 171 of file modules.cpp.

-

00166 {
-00167         return (common_channels(u1,u2) != 0);
-00168 }
+
00172 {
+00173         return (common_channels(u1,u2) != 0);
+00174 }
 
@@ -399,11 +402,11 @@ Attempts to look up a channel and return a pointer to it.

This function will return NULL if the channel does not exist.

-Definition at line 197 of file modules.cpp. +Definition at line 203 of file modules.cpp.

-

00198 {
-00199         return FindChan(channel.c_str());
-00200 }
+
00204 {
+00205         return FindChan(channel.c_str());
+00206 }
 
@@ -437,11 +440,11 @@ Attempts to look up a nick and return a pointer to it.

This function will return NULL if the nick does not exist.

-Definition at line 192 of file modules.cpp. +Definition at line 198 of file modules.cpp.

-

00193 {
-00194         return Find(nick);
-00195 }
+
00199 {
+00200         return Find(nick);
+00201 }
 
@@ -474,11 +477,11 @@ Returns the information of the server as returned by the /ADMIN command.

See the Admin class for further information of the return value. The members Admin::Nick, Admin::Email and Admin::Name contain the information for the server where the module is loaded.

-Definition at line 217 of file modules.cpp. +Definition at line 223 of file modules.cpp.

-

00218 {
-00219         return Admin(getadminname(),getadminemail(),getadminnick());
-00220 }
+
00224 {
+00225         return Admin(getadminname(),getadminemail(),getadminnick());
+00226 }
 
@@ -511,11 +514,11 @@ Returns the network name, global to all linked servers.

-Definition at line 212 of file modules.cpp. +Definition at line 218 of file modules.cpp.

-

00213 {
-00214         return getnetworkname();
-00215 }
+
00219 {
+00220         return getnetworkname();
+00221 }
 
@@ -548,11 +551,11 @@ Returns the server name of the server where the module is loaded.

-Definition at line 207 of file modules.cpp. +Definition at line 213 of file modules.cpp.

-

00208 {
-00209         return getservername();
-00210 }
+
00214 {
+00215         return getservername();
+00216 }
 
@@ -586,11 +589,11 @@ Returns true if a nick is valid.

Nicks for unregistered connections will return false.

-Definition at line 187 of file modules.cpp. +Definition at line 193 of file modules.cpp.

-

00188 {
-00189         return (isnick(nick.c_str()) != 0);
-00190 }
+
00194 {
+00195         return (isnick(nick.c_str()) != 0);
+00196 }
 
@@ -633,11 +636,11 @@ Writes a log string.

This method writes a line of text to the log. If the level given is lower than the level given in the configuration, this command has no effect.

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

-

00119 {
-00120         log(level,"%s",s.c_str());
-00121 }
+
00125 {
+00126         log(level,"%s",s.c_str());
+00127 }
 
@@ -680,11 +683,11 @@ Sends a line of text down a TCP/IP socket.

This method writes a line of text to an established socket, cutting it to 510 characters plus a carriage return and linefeed if required.

-Definition at line 133 of file modules.cpp. +Definition at line 139 of file modules.cpp.

-

00134 {
-00135         Write(Socket,"%s",s.c_str());
-00136 }
+
00140 {
+00141         Write(Socket,"%s",s.c_str());
+00142 }
 
@@ -739,18 +742,18 @@ Sends text from a user to a channel (mulicast).

This method writes a line of text to a channel, with the given user's nick/ident /host combination prepended, as used in PRIVMSG etc commands (see RFC 1459). If the IncludeSender flag is set, then the text is also sent back to the user from which it originated, as seen in MODE (see RFC 1459).

-Definition at line 153 of file modules.cpp. -

-

00154 {
-00155         if (IncludeSender)
-00156         {
-00157                 WriteChannel(Channel,User,"%s",s.c_str());
-00158         }
-00159         else
-00160         {
-00161                 ChanExceptSender(Channel,User,"%s",s.c_str());
-00162         }
-00163 }
+Definition at line 159 of file modules.cpp.
+

+

00160 {
+00161         if (IncludeSender)
+00162         {
+00163                 WriteChannel(Channel,User,"%s",s.c_str());
+00164         }
+00165         else
+00166         {
+00167                 ChanExceptSender(Channel,User,"%s",s.c_str());
+00168         }
+00169 }
 
@@ -799,18 +802,18 @@ Sends text from a user to one or more channels (mulicast).

This method writes a line of text to all users which share a common channel with a given user, with the user's nick/ident/host combination prepended, as used in PRIVMSG etc commands (see RFC 1459). If the IncludeSender flag is set, then the text is also sent back to the user from which it originated, as seen in NICK (see RFC 1459). Otherwise, it is only sent to the other recipients, as seen in QUIT.

-Definition at line 170 of file modules.cpp. -

-

00171 {
-00172         if (IncludeSender)
-00173         {
-00174                 WriteCommon(User,"%s",text.c_str());
-00175         }
-00176         else
-00177         {
-00178                 WriteCommonExcept(User,"%s",text.c_str());
-00179         }
-00180 }
+Definition at line 176 of file modules.cpp.
+

+

00177 {
+00178         if (IncludeSender)
+00179         {
+00180                 WriteCommon(User,"%s",text.c_str());
+00181         }
+00182         else
+00183         {
+00184                 WriteCommonExcept(User,"%s",text.c_str());
+00185         }
+00186 }
 
@@ -859,11 +862,11 @@ Sends text from a user to a socket.

This method writes a line of text to an established socket, with the given user's nick/ident /host combination prepended, as used in PRIVSG etc commands (see RFC 1459)

-Definition at line 143 of file modules.cpp. +Definition at line 149 of file modules.cpp.

-

00144 {
-00145         WriteFrom(Socket,User,"%s",s.c_str());
-00146 }
+
00150 {
+00151         WriteFrom(Socket,User,"%s",s.c_str());
+00152 }
 
@@ -912,16 +915,20 @@ Sends a servermode.

you must format the parameters array with the target, modes and parameters for those modes.

For example:

-char modes[3][MAXBUF]; modes[0] = ChannelName; modes[1] = "+o"; modes[2] = user->nick; Srv->SendMode(modes,3,user);

+char *modes[3];

+modes[0] = ChannelName;

+modes[1] = "+o";

+modes[2] = user->nick;

+Srv->SendMode(modes,3,user);

The modes will originate from the server where the command was issued, however responses (e.g. numerics) will be sent to the user you provide as the third parameter. You must be sure to get the number of parameters correct in the pcnt parameter otherwise you could leave your server in an unstable state!

-Definition at line 128 of file modules.cpp. +Definition at line 134 of file modules.cpp.

-References server_mode(). +References server_mode().

-

00129 {
-00130         server_mode(parameters,pcnt,user);
-00131 }
+
00135 {
+00136         server_mode(parameters,pcnt,user);
+00137 }
 
@@ -955,11 +962,11 @@ Sends text to all opers.

This method sends a server notice to all opers with the usermode +s.

-Definition at line 113 of file modules.cpp. +Definition at line 119 of file modules.cpp.

-

00114 {
-00115         WriteOpers("%s",s.c_str());
-00116 }
+
00120 {
+00121         WriteOpers("%s",s.c_str());
+00122 }
 
@@ -1002,11 +1009,11 @@ Sends text from the server to a socket.

This method writes a line of text to an established socket, with the servername prepended as used by numerics (see RFC 1459)

-Definition at line 138 of file modules.cpp. +Definition at line 144 of file modules.cpp.

-

00139 {
-00140         WriteServ(Socket,"%s",s.c_str());
-00141 }
+
00145 {
+00146         WriteServ(Socket,"%s",s.c_str());
+00147 }
 
@@ -1055,11 +1062,11 @@ Sends text from a user to another user.

This method writes a line of text to a user, with a user's nick/ident /host combination prepended, as used in PRIVMSG etc commands (see RFC 1459)

-Definition at line 148 of file modules.cpp. +Definition at line 154 of file modules.cpp.

-

00149 {
-00150         WriteTo(Source,Dest,"%s",s.c_str());
-00151 }
+
00155 {
+00156         WriteTo(Source,Dest,"%s",s.c_str());
+00157 }
 
@@ -1102,17 +1109,17 @@ Sends a WALLOPS message.

This method writes a WALLOPS message to all users with the +w flag, originating from the specified user.

-Definition at line 182 of file modules.cpp. +Definition at line 188 of file modules.cpp.

-

00183 {
-00184         WriteWallOps(User,"%s",text.c_str());
-00185 }
+
00189 {
+00190         WriteWallOps(User,"%s",text.c_str());
+00191 }
 

The documentation for this class was generated from the following files: -
Generated on Fri Apr 2 14:46:19 2004 for InspIRCd by +
Generated on Sat Apr 3 16:36:18 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classVersion-members.html b/docs/module-doc/classVersion-members.html index 6b490c924..f333cebec 100644 --- a/docs/module-doc/classVersion-members.html +++ b/docs/module-doc/classVersion-members.html @@ -1,7 +1,7 @@ Member List - +
@@ -15,7 +15,7 @@ RevisionVersion Version(int major, int minor, int revision, int build)Version ~classbase()classbase [inline] -
Generated on Fri Apr 2 14:46:22 2004 for InspIRCd by +
Generated on Sat Apr 3 16:36:20 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classVersion.html b/docs/module-doc/classVersion.html index 3590bb48a..3bebaa346 100644 --- a/docs/module-doc/classVersion.html +++ b/docs/module-doc/classVersion.html @@ -1,7 +1,7 @@ Version class Reference - +
@@ -36,7 +36,7 @@ A class of type Version is returned by the GetVersion method of the 48 of file modules.h.

Constructor & Destructor Documentation

+Definition at line 66 of file modules.h.

Constructor & Destructor Documentation

@@ -86,9 +86,9 @@ Definition at line 48 of

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

-

00082 : Major(major), Minor(minor), Revision(revision), Build(build) { };
+
00087 : Major(major), Minor(minor), Revision(revision), Build(build) { };
 
@@ -114,7 +114,7 @@ Definition at line 82 o

-Definition at line 51 of file modules.h. +Definition at line 69 of file modules.h.

@@ -138,7 +138,7 @@ Definition at line 51 of

-Definition at line 51 of file modules.h. +Definition at line 69 of file modules.h.

@@ -162,7 +162,7 @@ Definition at line 51 of

-Definition at line 51 of file modules.h. +Definition at line 69 of file modules.h.

@@ -186,12 +186,12 @@ Definition at line 51 of

-Definition at line 51 of file modules.h. +Definition at line 69 of file modules.h.


The documentation for this class was generated from the following files: -
Generated on Fri Apr 2 14:46:22 2004 for InspIRCd by +
Generated on Sat Apr 3 16:36:20 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classchanrec-members.html b/docs/module-doc/classchanrec-members.html index 267ff8c66..99d6f2a62 100644 --- a/docs/module-doc/classchanrec-members.html +++ b/docs/module-doc/classchanrec-members.html @@ -1,7 +1,7 @@ Member List - +
@@ -29,7 +29,7 @@ topicsetchanrec ~chanrec()chanrec [inline, virtual] ~classbase()classbase [inline] -
Generated on Fri Apr 2 14:46:12 2004 for InspIRCd by +
Generated on Sat Apr 3 16:36:10 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classchanrec.html b/docs/module-doc/classchanrec.html index 24f19b02d..7d4a1a061 100644 --- a/docs/module-doc/classchanrec.html +++ b/docs/module-doc/classchanrec.html @@ -1,7 +1,7 @@ chanrec class Reference - +
@@ -25,7 +25,7 @@ Inheritance diagram for chanrec:

SetCustomMode (char mode, bool mode_on)  Sets or unsets a custom mode in the channels info.

void SetCustomModeParam (char mode, char *parameter, bool mode_on) - Sets or unsets the parameterrs for a custom mode in a channels info.

Sets or unsets the parameters for a custom mode in a channels info.

 chanrec ()  Creates a channel record and initialises it with default values.

virtual ~chanrec () @@ -189,8 +189,32 @@ Sets or unsets a custom mode in the channels info.

Definition at line 17 of file channels.cpp.

+References custom_modes. +

00018 {
-00019 }
+00019         if (mode_on) {
+00020                 char m[3];
+00021                 m[0] = mode;
+00022                 m[1] = '\0';
+00023                 if (!strchr(this->custom_modes,mode))
+00024                 {
+00025                         strncat(custom_modes,m,MAXMODES);
+00026                 }
+00027                 log(DEBUG,"Custom mode %c set",mode);
+00028         }
+00029         else {
+00030                 char temp[MAXMODES];
+00031                 int count = 0;
+00032                 for (int q = 0; q < strlen(custom_modes); q++) {
+00033                         if (custom_modes[q] != mode) {
+00034                                 temp[count++] = mode;
+00035                         }
+00036                 }
+00037                 temp[count] = '\0';
+00038                 strncpy(custom_modes,temp,MAXMODES);
+00039                 log(DEBUG,"Custom mode %c removed",mode);
+00040         }
+00041 }
 
@@ -235,14 +259,14 @@ Definition at line 17

-Sets or unsets the parameterrs for a custom mode in a channels info. +Sets or unsets the parameters for a custom mode in a channels info.

-Definition at line 21 of file channels.cpp. +Definition at line 43 of file channels.cpp.

-

00022 {
-00023 }
+
00044 {
+00045 }
 
@@ -352,7 +376,9 @@ Custom modes for the channel.

Plugins may use this field in any way they see fit.

-Definition at line 79 of file channels.h. +Definition at line 79 of file channels.h. +

+Referenced by SetCustomMode().

@@ -657,7 +683,7 @@ Referenced by chanrec()


The documentation for this class was generated from the following files: -
Generated on Fri Apr 2 14:46:12 2004 for InspIRCd by +
Generated on Sat Apr 3 16:36:10 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classclassbase-members.html b/docs/module-doc/classclassbase-members.html index f20e71c0d..8c26d059c 100644 --- a/docs/module-doc/classclassbase-members.html +++ b/docs/module-doc/classclassbase-members.html @@ -1,7 +1,7 @@ Member List - +
@@ -10,7 +10,7 @@ ageclassbase classbase()classbase [inline] ~classbase()classbase [inline] -
Generated on Fri Apr 2 14:46:12 2004 for InspIRCd by +
Generated on Sat Apr 3 16:36:10 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classclassbase.html b/docs/module-doc/classclassbase.html index e2ebc99b6..dadfb15cf 100644 --- a/docs/module-doc/classclassbase.html +++ b/docs/module-doc/classclassbase.html @@ -1,7 +1,7 @@ classbase class Reference - +
@@ -143,7 +143,7 @@ Definition at line 20 of fil
The documentation for this class was generated from the following file: -
Generated on Fri Apr 2 14:46:12 2004 for InspIRCd by +
Generated on Sat Apr 3 16:36:10 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classcommand__t-members.html b/docs/module-doc/classcommand__t-members.html index 217d770cb..6d731e94c 100644 --- a/docs/module-doc/classcommand__t-members.html +++ b/docs/module-doc/classcommand__t-members.html @@ -1,7 +1,7 @@ Member List - +
@@ -16,7 +16,7 @@ total_bytescommand_t use_countcommand_t ~classbase()classbase [inline] -
Generated on Fri Apr 2 14:46:13 2004 for InspIRCd by +
Generated on Sat Apr 3 16:36:11 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classcommand__t.html b/docs/module-doc/classcommand__t.html index 16a0eb2a7..9feeedc86 100644 --- a/docs/module-doc/classcommand__t.html +++ b/docs/module-doc/classcommand__t.html @@ -1,7 +1,7 @@ command_t class Reference - +
@@ -199,7 +199,7 @@ Definition at line 44 of
The documentation for this class was generated from the following file: -
Generated on Fri Apr 2 14:46:13 2004 for InspIRCd by +
Generated on Sat Apr 3 16:36:11 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classconnection-members.html b/docs/module-doc/classconnection-members.html index 3a3215eb6..9034c80ee 100644 --- a/docs/module-doc/classconnection-members.html +++ b/docs/module-doc/classconnection-members.html @@ -1,7 +1,7 @@ Member List - +
@@ -36,7 +36,7 @@ signonconnection TerminateLink(char *targethost)connection ~classbase()classbase [inline] -
Generated on Fri Apr 2 14:46:14 2004 for InspIRCd by +
Generated on Sat Apr 3 16:36:13 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classconnection.html b/docs/module-doc/classconnection.html index fa20d0de9..d7f0d18af 100644 --- a/docs/module-doc/classconnection.html +++ b/docs/module-doc/classconnection.html @@ -1,7 +1,7 @@ connection class Reference - +
@@ -837,7 +837,7 @@ Referenced by serverrec::se
The documentation for this class was generated from the following file:
-
Generated on Fri Apr 2 14:46:14 2004 for InspIRCd by +
Generated on Sat Apr 3 16:36:12 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classes.html b/docs/module-doc/classes.html index 8d5d31cfb..0c69f8654 100644 --- a/docs/module-doc/classes.html +++ b/docs/module-doc/classes.html @@ -1,7 +1,7 @@ Alphabetical index - +
@@ -19,7 +19,7 @@
  I  
packet   
  V  
chanrec   ExemptItem   Invited   
  S  
-Version   classbase   ExtMode   InviteItem   Server   
Generated on Fri Apr 2 14:46:10 2004 for InspIRCd by +Version   classbase   ExtMode   InviteItem   Server   
Generated on Sat Apr 3 16:36:08 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classpacket-members.html b/docs/module-doc/classpacket-members.html index 16a51e49b..de169854f 100644 --- a/docs/module-doc/classpacket-members.html +++ b/docs/module-doc/classpacket-members.html @@ -1,7 +1,7 @@ Member List - +
@@ -16,7 +16,7 @@ typepacket ~classbase()classbase [inline] ~packet()packet -
Generated on Fri Apr 2 14:46:19 2004 for InspIRCd by +
Generated on Sat Apr 3 16:36:17 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classpacket.html b/docs/module-doc/classpacket.html index 9c711d440..334b62848 100644 --- a/docs/module-doc/classpacket.html +++ b/docs/module-doc/classpacket.html @@ -1,7 +1,7 @@ packet class Reference - +
@@ -183,7 +183,7 @@ Definition at line 31
The documentation for this class was generated from the following file: -
Generated on Fri Apr 2 14:46:19 2004 for InspIRCd by +
Generated on Sat Apr 3 16:36:17 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classserverrec-members.html b/docs/module-doc/classserverrec-members.html index bcb8887ea..a707c987d 100644 --- a/docs/module-doc/classserverrec-members.html +++ b/docs/module-doc/classserverrec-members.html @@ -1,7 +1,7 @@ Member List - +
@@ -47,7 +47,7 @@ versionserverrec ~classbase()classbase [inline] ~serverrec()serverrec -
Generated on Fri Apr 2 14:46:20 2004 for InspIRCd by +
Generated on Sat Apr 3 16:36:19 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classserverrec.html b/docs/module-doc/classserverrec.html index 16e397ea5..9a1fc4840 100644 --- a/docs/module-doc/classserverrec.html +++ b/docs/module-doc/classserverrec.html @@ -1,7 +1,7 @@ serverrec class Reference - +
@@ -422,7 +422,7 @@ Referenced by serverrec()
The documentation for this class was generated from the following files:
-
Generated on Fri Apr 2 14:46:20 2004 for InspIRCd by +
Generated on Sat Apr 3 16:36:18 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classucrec-members.html b/docs/module-doc/classucrec-members.html index c9cecc769..508bf7553 100644 --- a/docs/module-doc/classucrec-members.html +++ b/docs/module-doc/classucrec-members.html @@ -1,7 +1,7 @@ Member List - +
@@ -14,7 +14,7 @@ ucrec()ucrec [inline] ~classbase()classbase [inline] ~ucrec()ucrec [inline, virtual] -
Generated on Fri Apr 2 14:46:21 2004 for InspIRCd by +
Generated on Sat Apr 3 16:36:19 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classucrec.html b/docs/module-doc/classucrec.html index 2fe8b87b2..83a48a5d5 100644 --- a/docs/module-doc/classucrec.html +++ b/docs/module-doc/classucrec.html @@ -1,7 +1,7 @@ ucrec class Reference - +
@@ -162,7 +162,7 @@ Definition at line 171 o
The documentation for this class was generated from the following file: -
Generated on Fri Apr 2 14:46:21 2004 for InspIRCd by +
Generated on Sat Apr 3 16:36:19 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classuserrec-members.html b/docs/module-doc/classuserrec-members.html index a8c34d8a3..d2b4a5418 100644 --- a/docs/module-doc/classuserrec-members.html +++ b/docs/module-doc/classuserrec-members.html @@ -1,7 +1,7 @@ Member List - +
@@ -53,7 +53,7 @@ userrec()userrec ~classbase()classbase [inline] ~userrec()userrec [inline, virtual] -
Generated on Fri Apr 2 14:46:21 2004 for InspIRCd by +
Generated on Sat Apr 3 16:36:20 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classuserrec.html b/docs/module-doc/classuserrec.html index 274b7f424..1f317aa54 100644 --- a/docs/module-doc/classuserrec.html +++ b/docs/module-doc/classuserrec.html @@ -1,7 +1,7 @@ userrec class Reference - +
@@ -643,7 +643,7 @@ Definition at line 96 of fi
The documentation for this class was generated from the following files: -
Generated on Fri Apr 2 14:46:21 2004 for InspIRCd by +
Generated on Sat Apr 3 16:36:20 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/connection_8h-source.html b/docs/module-doc/connection_8h-source.html index 6870d921a..8b5d831b8 100644 --- a/docs/module-doc/connection_8h-source.html +++ b/docs/module-doc/connection_8h-source.html @@ -1,7 +1,7 @@ connection.h Source File - +
@@ -79,7 +79,7 @@ 00071 00072 #endif 00073 -

Generated on Fri Apr 2 14:46:05 2004 for InspIRCd by +

Generated on Sat Apr 3 16:36:02 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/connection_8h.html b/docs/module-doc/connection_8h.html index 2d36150ee..9d6e24875 100644 --- a/docs/module-doc/connection_8h.html +++ b/docs/module-doc/connection_8h.html @@ -1,7 +1,7 @@ connection.h File Reference - +
@@ -142,7 +142,7 @@ Definition at line 20 Definition at line 22 of file connection.h. -
Generated on Fri Apr 2 14:46:07 2004 for InspIRCd by +
Generated on Sat Apr 3 16:36:05 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/ctables_8h-source.html b/docs/module-doc/ctables_8h-source.html index fb9209ab9..820b3abe9 100644 --- a/docs/module-doc/ctables_8h-source.html +++ b/docs/module-doc/ctables_8h-source.html @@ -1,7 +1,7 @@ ctables.h Source File - +
@@ -43,7 +43,7 @@ 00049 00050 #endif 00051 -

Generated on Fri Apr 2 14:46:05 2004 for InspIRCd by +

Generated on Sat Apr 3 16:36:02 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/ctables_8h.html b/docs/module-doc/ctables_8h.html index 9fca91ba8..31c2baba0 100644 --- a/docs/module-doc/ctables_8h.html +++ b/docs/module-doc/ctables_8h.html @@ -1,7 +1,7 @@ ctables.h File Reference - +
@@ -57,7 +57,7 @@ This graph shows which files directly or indirectly include this file:

23 of file ctables.h. -
Generated on Fri Apr 2 14:46:07 2004 for InspIRCd by +
Generated on Sat Apr 3 16:36:05 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/doxygen.css b/docs/module-doc/doxygen.css deleted file mode 100644 index 8cb8b2e5b..000000000 --- a/docs/module-doc/doxygen.css +++ /dev/null @@ -1,49 +0,0 @@ -H1 { text-align: center; } -CAPTION { font-weight: bold } -A.qindex {} -A.qindexRef {} -A.el { text-decoration: none; font-weight: bold } -A.elRef { font-weight: bold } -A.code { text-decoration: none; font-weight: normal; color: #4444ee } -A.codeRef { font-weight: normal; color: #4444ee } -A:hover { text-decoration: none; background-color: #f2f2ff } -DL.el { margin-left: -1cm } -DIV.fragment { width: 100%; border: none; background-color: #eeeeee } -DIV.ah { background-color: black; font-weight: bold; color: #ffffff; margin-bottom: 3px; margin-top: 3px } -TD.md { background-color: #f2f2ff; font-weight: bold; } -TD.mdname1 { background-color: #f2f2ff; font-weight: bold; color: #602020; } -TD.mdname { background-color: #f2f2ff; font-weight: bold; color: #602020; width: 600px; } -DIV.groupHeader { margin-left: 16px; margin-top: 12px; margin-bottom: 6px; font-weight: bold } -DIV.groupText { margin-left: 16px; font-style: italic; font-size: smaller } -BODY { background: white; color: black } -TD.indexkey { - background-color: #eeeeff; - font-weight: bold; - padding-right : 10px; - padding-top : 2px; - padding-left : 10px; - padding-bottom : 2px; - margin-left : 0px; - margin-right : 0px; - margin-top : 2px; - margin-bottom : 2px -} -TD.indexvalue { - background-color: #eeeeff; - font-style: italic; - padding-right : 10px; - padding-top : 2px; - padding-left : 10px; - padding-bottom : 2px; - margin-left : 0px; - margin-right : 0px; - margin-top : 2px; - margin-bottom : 2px -} -span.keyword { color: #008000 } -span.keywordtype { color: #604020 } -span.keywordflow { color: #e08000 } -span.comment { color: #800000 } -span.preprocessor { color: #806020 } -span.stringliteral { color: #002080 } -span.charliteral { color: #008080 } diff --git a/docs/module-doc/doxygen.png b/docs/module-doc/doxygen.png index 5bb475e23..0fbfb1359 100644 Binary files a/docs/module-doc/doxygen.png and b/docs/module-doc/doxygen.png differ diff --git a/docs/module-doc/files.html b/docs/module-doc/files.html index 4fbe6cb8a..cbe10a377 100644 --- a/docs/module-doc/files.html +++ b/docs/module-doc/files.html @@ -1,7 +1,7 @@ File Index - +
@@ -19,7 +19,7 @@ users.cpp [code] users.h [code] -
Generated on Fri Apr 2 14:46:04 2004 for InspIRCd by +
Generated on Sat Apr 3 16:36:02 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/functions.html b/docs/module-doc/functions.html index 9cc059f3c..54f891acb 100644 --- a/docs/module-doc/functions.html +++ b/docs/module-doc/functions.html @@ -1,7 +1,7 @@ Compound Member Index - +
@@ -127,15 +127,14 @@ Here is a list of all class members with links to the classes they belong to:

ExtMode
  • moderated : chanrec
  • modes : userrec
  • Module() -: Module
  • Module::OnPacketReceive() -: Module
  • Module::OnPacketTransmit() -: Module
  • ModuleFactory() +: Module
  • Module::OnUserPreJoin() +: Module
  • ModuleFactory() : ModuleFactory

    - n -

  • -Here is a list of all file members with links to the files they belong to:

    - a - -

    -

    - b - +Here is a list of all file members with links to the files they belong to:

    - b -

    @@ -24,12 +20,13 @@ Here is a list of all file members with links to the files they belong to:

    users.h
  • CC_DENY : users.h
  • ClassVector : users.h
  • createcommand() -: modules.h +: modules.h

    - d -

    +: modules.h
  • DoAddExtendedMode() +: modules.cpp

    - e -

    - h -

    +: modules.h

    - l -

    - u -

    • UCMODE_FOUNDER @@ -102,7 +100,7 @@ Here is a list of all file members with links to the files they belong to:

      -
      Generated on Fri Apr 2 14:46:22 2004 for InspIRCd by +
      Generated on Sat Apr 3 16:36:20 2004 for InspIRCd by doxygen1.3-rc3
      diff --git a/docs/module-doc/graph_legend.html b/docs/module-doc/graph_legend.html index f3845fc80..f34cbc22e 100644 --- a/docs/module-doc/graph_legend.html +++ b/docs/module-doc/graph_legend.html @@ -1,7 +1,7 @@ Graph Legend - +
      @@ -69,7 +69,7 @@ A purple dashed arrow is used if a class is contained or used by another class.
    • A yellow dashed arrow denotes a relation between a template instance and the template class it was instantiated from. The arrow is labeled with the template parameters of the instance.
    -
    Generated on Fri Apr 2 14:46:22 2004 for InspIRCd by +
    Generated on Sat Apr 3 16:36:20 2004 for InspIRCd by doxygen1.3-rc3
    diff --git a/docs/module-doc/hierarchy.html b/docs/module-doc/hierarchy.html index 0b466e918..4963a7754 100644 --- a/docs/module-doc/hierarchy.html +++ b/docs/module-doc/hierarchy.html @@ -1,7 +1,7 @@ Hierarchical Index - +
    @@ -38,7 +38,7 @@ This inheritance list is sorted roughly, but not completely, alphabetically:
  • ExtMode -
    Generated on Fri Apr 2 14:46:10 2004 for InspIRCd by +
    Generated on Sat Apr 3 16:36:08 2004 for InspIRCd by doxygen1.3-rc3
    diff --git a/docs/module-doc/inherits.html b/docs/module-doc/inherits.html index c841b60dd..0b3d5b02f 100644 --- a/docs/module-doc/inherits.html +++ b/docs/module-doc/inherits.html @@ -1,7 +1,7 @@ Graphical Class Hierarchy - +
    @@ -38,7 +38,7 @@ -
    Generated on Fri Apr 2 14:46:22 2004 for InspIRCd by +
    Generated on Sat Apr 3 16:36:21 2004 for InspIRCd by doxygen1.3-rc3
    diff --git a/docs/module-doc/main.html b/docs/module-doc/main.html index 9efc7e37b..e14b524c5 100644 --- a/docs/module-doc/main.html +++ b/docs/module-doc/main.html @@ -1,14 +1,14 @@ Main Page - +
    Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

    InspIRCd Documentation

    -


    Generated on Fri Apr 2 14:46:04 2004 for InspIRCd by +
    Generated on Sat Apr 3 16:36:02 2004 for InspIRCd by doxygen1.3-rc3
    diff --git a/docs/module-doc/modules_8cpp-source.html b/docs/module-doc/modules_8cpp-source.html index 7e31fec1d..2f2b820a9 100644 --- a/docs/module-doc/modules_8cpp-source.html +++ b/docs/module-doc/modules_8cpp-source.html @@ -1,7 +1,7 @@ modules.cpp Source File - +
    @@ -41,287 +41,294 @@ 00033 // returns true if an extended mode character is in use 00034 bool ModeDefined(char modechar, int type) 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 } -00045 -00046 // returns number of parameters for a custom mode when it is switched on -00047 bool ModeDefinedOn(char modechar, int type) -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 } -00058 -00059 // returns number of parameters for a custom mode when it is switched on -00060 bool ModeDefinedOff(char modechar, int type) -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 } -00071 -00072 // returns true if an extended mode character is in use -00073 bool AddExtendedMode(char modechar, int type, bool default_on, int params_on, int params_off) -00074 { -00075 EMode.push_back( ExtMode (modechar,type,default_on,params_on,params_off)); -00076 return true; -00077 } -00078 -00079 -00080 // version is a simple class for holding a modules version number -00081 -00082 Version::Version(int major, int minor, int revision, int build) : Major(major), Minor(minor), Revision(revision), Build(build) { }; +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 } +00047 +00048 // returns number of parameters for a custom mode when it is switched on +00049 int ModeDefinedOn(char modechar, int type) +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 } +00060 +00061 // returns number of parameters for a custom mode when it is switched on +00062 int ModeDefinedOff(char modechar, int type) +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 } +00073 +00074 // returns true if an extended mode character is in use +00075 bool DoAddExtendedMode(char modechar, int type, bool default_on, int params_on, int params_off) +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 } 00083 -00084 // admin is a simple class for holding a server's administrative info -00085 -00086 Admin::Admin(std::string name, std::string email, std::string nick) : Name(name), Email(email), Nick(nick) { }; -00087 -00088 Module::Module() { } -00089 Module::~Module() { } -00090 void Module::OnUserConnect(userrec* user) { } -00091 void Module::OnUserQuit(userrec* user) { } -00092 void Module::OnUserJoin(userrec* user, chanrec* channel) { } -00093 void Module::OnUserPart(userrec* user, chanrec* channel) { } -00094 void Module::OnPacketTransmit(char *p) { } -00095 void Module::OnPacketReceive(char *p) { } -00096 void Module::OnRehash() { } -00097 void Module::OnServerRaw(std::string &raw, bool inbound) { } -00098 bool Module::OnExtendedMode(userrec* user, chanrec* chan, char modechar, int type, bool mode_on, string_list &params) { } -00099 Version Module::GetVersion() { return Version(1,0,0,0); } -00100 -00101 // server is a wrapper class that provides methods to all of the C-style -00102 // exports in the core -00103 // -00104 -00105 Server::Server() -00106 { -00107 } -00108 -00109 Server::~Server() -00110 { -00111 } -00112 -00113 void Server::SendOpers(std::string s) -00114 { -00115 WriteOpers("%s",s.c_str()); -00116 } -00117 -00118 void Server::Log(int level, std::string s) -00119 { -00120 log(level,"%s",s.c_str()); -00121 } -00122 -00123 void Server::AddCommand(char* cmd, handlerfunc f, char flags, int minparams) -00124 { -00125 createcommand(cmd,f,flags,minparams); -00126 } -00127 -00128 void Server::SendMode(char **parameters, int pcnt, userrec *user) -00129 { -00130 server_mode(parameters,pcnt,user); -00131 } -00132 -00133 void Server::Send(int Socket, std::string s) -00134 { -00135 Write(Socket,"%s",s.c_str()); -00136 } -00137 -00138 void Server::SendServ(int Socket, std::string s) -00139 { -00140 WriteServ(Socket,"%s",s.c_str()); -00141 } -00142 -00143 void Server::SendFrom(int Socket, userrec* User, std::string s) -00144 { -00145 WriteFrom(Socket,User,"%s",s.c_str()); -00146 } -00147 -00148 void Server::SendTo(userrec* Source, userrec* Dest, std::string s) -00149 { -00150 WriteTo(Source,Dest,"%s",s.c_str()); -00151 } -00152 -00153 void Server::SendChannel(userrec* User, chanrec* Channel, std::string s,bool IncludeSender) -00154 { -00155 if (IncludeSender) -00156 { -00157 WriteChannel(Channel,User,"%s",s.c_str()); -00158 } -00159 else -00160 { -00161 ChanExceptSender(Channel,User,"%s",s.c_str()); -00162 } -00163 } -00164 -00165 bool Server::CommonChannels(userrec* u1, userrec* u2) -00166 { -00167 return (common_channels(u1,u2) != 0); -00168 } -00169 -00170 void Server::SendCommon(userrec* User, std::string text,bool IncludeSender) -00171 { -00172 if (IncludeSender) -00173 { -00174 WriteCommon(User,"%s",text.c_str()); -00175 } -00176 else -00177 { -00178 WriteCommonExcept(User,"%s",text.c_str()); -00179 } -00180 } -00181 -00182 void Server::SendWallops(userrec* User, std::string text) -00183 { -00184 WriteWallOps(User,"%s",text.c_str()); -00185 } -00186 -00187 bool Server::IsNick(std::string nick) -00188 { -00189 return (isnick(nick.c_str()) != 0); -00190 } -00191 -00192 userrec* Server::FindNick(std::string nick) -00193 { -00194 return Find(nick); -00195 } -00196 -00197 chanrec* Server::FindChannel(std::string channel) -00198 { -00199 return FindChan(channel.c_str()); -00200 } -00201 -00202 std::string Server::ChanMode(userrec* User, chanrec* Chan) -00203 { -00204 return cmode(User,Chan); -00205 } -00206 -00207 std::string Server::GetServerName() -00208 { -00209 return getservername(); -00210 } -00211 -00212 std::string Server::GetNetworkName() -00213 { -00214 return getnetworkname(); -00215 } -00216 -00217 Admin Server::GetAdmin() -00218 { -00219 return Admin(getadminname(),getadminemail(),getadminnick()); -00220 } -00221 +00084 +00085 // version is a simple class for holding a modules version number +00086 +00087 Version::Version(int major, int minor, int revision, int build) : Major(major), Minor(minor), Revision(revision), Build(build) { }; +00088 +00089 // admin is a simple class for holding a server's administrative info +00090 +00091 Admin::Admin(std::string name, std::string email, std::string nick) : Name(name), Email(email), Nick(nick) { }; +00092 +00093 Module::Module() { } +00094 Module::~Module() { } +00095 void Module::OnUserConnect(userrec* user) { } +00096 void Module::OnUserQuit(userrec* user) { } +00097 void Module::OnUserJoin(userrec* user, chanrec* channel) { } +00098 void Module::OnUserPart(userrec* user, chanrec* channel) { } +00099 void Module::OnPacketTransmit(char *p) { } +00100 void Module::OnPacketReceive(char *p) { } +00101 void Module::OnRehash() { } +00102 void Module::OnServerRaw(std::string &raw, bool inbound) { } +00103 int Module::OnUserPreJoin(userrec* user, chanrec* chan, char* cname) { return 0; } +00104 bool Module::OnExtendedMode(userrec* user, chanrec* chan, char modechar, int type, bool mode_on, string_list &params) { } +00105 Version Module::GetVersion() { return Version(1,0,0,0); } +00106 +00107 // server is a wrapper class that provides methods to all of the C-style +00108 // exports in the core +00109 // +00110 +00111 Server::Server() +00112 { +00113 } +00114 +00115 Server::~Server() +00116 { +00117 } +00118 +00119 void Server::SendOpers(std::string s) +00120 { +00121 WriteOpers("%s",s.c_str()); +00122 } +00123 +00124 void Server::Log(int level, std::string s) +00125 { +00126 log(level,"%s",s.c_str()); +00127 } +00128 +00129 void Server::AddCommand(char* cmd, handlerfunc f, char flags, int minparams) +00130 { +00131 createcommand(cmd,f,flags,minparams); +00132 } +00133 +00134 void Server::SendMode(char **parameters, int pcnt, userrec *user) +00135 { +00136 server_mode(parameters,pcnt,user); +00137 } +00138 +00139 void Server::Send(int Socket, std::string s) +00140 { +00141 Write(Socket,"%s",s.c_str()); +00142 } +00143 +00144 void Server::SendServ(int Socket, std::string s) +00145 { +00146 WriteServ(Socket,"%s",s.c_str()); +00147 } +00148 +00149 void Server::SendFrom(int Socket, userrec* User, std::string s) +00150 { +00151 WriteFrom(Socket,User,"%s",s.c_str()); +00152 } +00153 +00154 void Server::SendTo(userrec* Source, userrec* Dest, std::string s) +00155 { +00156 WriteTo(Source,Dest,"%s",s.c_str()); +00157 } +00158 +00159 void Server::SendChannel(userrec* User, chanrec* Channel, std::string s,bool IncludeSender) +00160 { +00161 if (IncludeSender) +00162 { +00163 WriteChannel(Channel,User,"%s",s.c_str()); +00164 } +00165 else +00166 { +00167 ChanExceptSender(Channel,User,"%s",s.c_str()); +00168 } +00169 } +00170 +00171 bool Server::CommonChannels(userrec* u1, userrec* u2) +00172 { +00173 return (common_channels(u1,u2) != 0); +00174 } +00175 +00176 void Server::SendCommon(userrec* User, std::string text,bool IncludeSender) +00177 { +00178 if (IncludeSender) +00179 { +00180 WriteCommon(User,"%s",text.c_str()); +00181 } +00182 else +00183 { +00184 WriteCommonExcept(User,"%s",text.c_str()); +00185 } +00186 } +00187 +00188 void Server::SendWallops(userrec* User, std::string text) +00189 { +00190 WriteWallOps(User,"%s",text.c_str()); +00191 } +00192 +00193 bool Server::IsNick(std::string nick) +00194 { +00195 return (isnick(nick.c_str()) != 0); +00196 } +00197 +00198 userrec* Server::FindNick(std::string nick) +00199 { +00200 return Find(nick); +00201 } +00202 +00203 chanrec* Server::FindChannel(std::string channel) +00204 { +00205 return FindChan(channel.c_str()); +00206 } +00207 +00208 std::string Server::ChanMode(userrec* User, chanrec* Chan) +00209 { +00210 return cmode(User,Chan); +00211 } +00212 +00213 std::string Server::GetServerName() +00214 { +00215 return getservername(); +00216 } +00217 +00218 std::string Server::GetNetworkName() +00219 { +00220 return getnetworkname(); +00221 } 00222 -00223 -00224 bool Server::AddExtendedMode(char modechar, int type, bool default_on, int params_when_on, int params_when_off) -00225 { +00223 Admin Server::GetAdmin() +00224 { +00225 return Admin(getadminname(),getadminemail(),getadminnick()); 00226 } 00227 00228 -00229 ConfigReader::ConfigReader() -00230 { -00231 fname = CONFIG_FILE; -00232 } -00233 +00229 +00230 bool Server::AddExtendedMode(char modechar, int type, bool default_on, int params_when_on, int params_when_off) +00231 { +00232 return DoAddExtendedMode(modechar,type,default_on,params_when_on,params_when_off); +00233 } 00234 -00235 ConfigReader::~ConfigReader() -00236 { -00237 } -00238 -00239 -00240 ConfigReader::ConfigReader(std::string filename) : fname(filename) { }; +00235 +00236 ConfigReader::ConfigReader() +00237 { +00238 fname = CONFIG_FILE; +00239 } +00240 00241 -00242 std::string ConfigReader::ReadValue(std::string tag, std::string name, int index) +00242 ConfigReader::~ConfigReader() 00243 { -00244 char val[MAXBUF]; -00245 ReadConf(fname.c_str(),tag.c_str(),name.c_str(),index,val); -00246 return val; -00247 } +00244 } +00245 +00246 +00247 ConfigReader::ConfigReader(std::string filename) : fname(filename) { }; 00248 -00249 -00250 int ConfigReader::Enumerate(std::string tag) -00251 { -00252 return EnumConf(fname.c_str(),tag.c_str()); -00253 } -00254 +00249 std::string ConfigReader::ReadValue(std::string tag, std::string name, int index) +00250 { +00251 char val[MAXBUF]; +00252 ReadConf(fname.c_str(),tag.c_str(),name.c_str(),index,val); +00253 return val; +00254 } 00255 -00256 bool ConfigReader::Verify() -00257 { -00258 return true; -00259 } -00260 +00256 +00257 int ConfigReader::Enumerate(std::string tag) +00258 { +00259 return EnumConf(fname.c_str(),tag.c_str()); +00260 } 00261 -00262 FileReader::FileReader(std::string filename) -00263 { -00264 file_cache c; -00265 readfile(c,filename.c_str()); -00266 this->fc = c; -00267 } +00262 +00263 bool ConfigReader::Verify() +00264 { +00265 return true; +00266 } +00267 00268 -00269 FileReader::FileReader() +00269 FileReader::FileReader(std::string filename) 00270 { -00271 } -00272 -00273 void FileReader::LoadFile(std::string filename) -00274 { -00275 file_cache c; -00276 readfile(c,filename.c_str()); -00277 this->fc = c; +00271 file_cache c; +00272 readfile(c,filename.c_str()); +00273 this->fc = c; +00274 } +00275 +00276 FileReader::FileReader() +00277 { 00278 } 00279 -00280 -00281 FileReader::~FileReader() -00282 { -00283 } -00284 -00285 bool FileReader::Exists() -00286 { -00287 if (fc.size() == 0) -00288 { -00289 return(false); -00290 } -00291 else -00292 { -00293 return(true); -00294 } -00295 } -00296 -00297 std::string FileReader::GetLine(int x) -00298 { -00299 if ((x<0) || (x>fc.size())) -00300 return ""; -00301 return fc[x]; +00280 void FileReader::LoadFile(std::string filename) +00281 { +00282 file_cache c; +00283 readfile(c,filename.c_str()); +00284 this->fc = c; +00285 } +00286 +00287 +00288 FileReader::~FileReader() +00289 { +00290 } +00291 +00292 bool FileReader::Exists() +00293 { +00294 if (fc.size() == 0) +00295 { +00296 return(false); +00297 } +00298 else +00299 { +00300 return(true); +00301 } 00302 } 00303 -00304 int FileReader::FileSize() +00304 std::string FileReader::GetLine(int x) 00305 { -00306 return fc.size(); -00307 } -00308 -00309 -00310 std::vector<Module*> modules(255); -00311 std::vector<ircd_module*> factory(255); -00312 -00313 int MODCOUNT = -1; -00314 +00306 if ((x<0) || (x>fc.size())) +00307 return ""; +00308 return fc[x]; +00309 } +00310 +00311 int FileReader::FileSize() +00312 { +00313 return fc.size(); +00314 } 00315 -

  • Generated on Fri Apr 2 14:46:05 2004 for InspIRCd by +00316 +00317 std::vector<Module*> modules(255); +00318 std::vector<ircd_module*> factory(255); +00319 +00320 int MODCOUNT = -1; +00321 +00322 +

    Generated on Sat Apr 3 16:36:02 2004 for InspIRCd by doxygen1.3-rc3
    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
    diff --git a/docs/module-doc/modules_8h-source.html b/docs/module-doc/modules_8h-source.html index f872917ec..e1848aeb4 100644 --- a/docs/module-doc/modules_8h-source.html +++ b/docs/module-doc/modules_8h-source.html @@ -1,7 +1,7 @@ modules.h Source File - +
    @@ -32,8 +32,8 @@ 00024 #include <string> 00025 #include <deque> 00026 -00029 typedef std::deque<std::string> file_cache; -00030 typedef file_cache string_list; +00029 typedef std::deque<std::string> file_cache; +00030 typedef file_cache string_list; 00031 00032 // This #define allows us to call a method in all 00033 // loaded modules in a readable simple way, e.g.: @@ -41,131 +41,150 @@ 00035 00036 #define FOREACH_MOD for (int i = 0; i <= MODCOUNT; i++) modules[i]-> 00037 -00038 extern void createcommand(char* cmd, handlerfunc f, char flags, int minparams); -00039 extern void server_mode(char **parameters, int pcnt, userrec *user); -00040 -00041 // class Version holds the version information of a Module, returned -00042 // by Module::GetVersion (thanks RD) +00038 // This define is similar to the one above but returns a result in MOD_RESULT. +00039 // The first module to return a nonzero result is the value to be accepted, +00040 // and any modules after are ignored. +00041 +00042 // ********************************************************************************************* 00043 -00048 class Version : public classbase -00049 { -00050 public: -00051 const int Major, Minor, Revision, Build; -00052 Version(int major, int minor, int revision, int build); -00053 }; -00054 -00060 class Admin : public classbase -00061 { -00062 public: -00063 const std::string Name, Email, Nick; -00064 Admin(std::string name, std::string email, std::string nick); -00065 }; -00066 -00072 class Module : public classbase -00073 { -00074 public: -00075 -00079 Module(); -00080 -00084 virtual ~Module(); -00085 -00090 virtual Version GetVersion(); -00091 -00095 virtual void OnUserConnect(userrec* user); -00096 -00100 virtual void OnUserQuit(userrec* user); -00101 -00106 virtual void OnUserJoin(userrec* user, chanrec* channel); -00107 -00112 virtual void OnUserPart(userrec* user, chanrec* channel); -00113 -00120 virtual void Module::OnPacketTransmit(char *p); -00121 -00129 virtual void Module::OnPacketReceive(char *p); -00130 -00136 virtual void OnRehash(); -00137 -00144 virtual void OnServerRaw(std::string &raw, bool inbound); -00145 -00154 virtual bool OnExtendedMode(userrec* user, chanrec* chan, char modechar, int type, bool mode_on, string_list &params); -00155 -00156 -00157 }; -00158 -00159 -00165 class Server : public classbase -00166 { -00167 public: -00171 Server(); -00175 virtual ~Server(); -00176 -00180 virtual void SendOpers(std::string s); -00185 virtual void Log(int level, std::string s); -00190 virtual void Send(int Socket, std::string s); -00195 virtual void SendServ(int Socket, std::string s); -00200 virtual void SendFrom(int Socket, userrec* User, std::string s); -00205 virtual void SendTo(userrec* Source, userrec* Dest, std::string s); -00212 virtual void SendChannel(userrec* User, chanrec* Channel, std::string s,bool IncludeSender); -00217 virtual bool CommonChannels(userrec* u1, userrec* u2); -00225 virtual void SendCommon(userrec* User, std::string text,bool IncludeSender); -00230 virtual void SendWallops(userrec* User, std::string text); -00231 -00235 virtual bool IsNick(std::string nick); -00239 virtual userrec* FindNick(std::string nick); -00243 virtual chanrec* FindChannel(std::string channel); -00248 virtual std::string ChanMode(userrec* User, chanrec* Chan); -00251 virtual std::string GetServerName(); -00254 virtual std::string GetNetworkName(); -00260 virtual Admin GetAdmin(); -00278 virtual bool AddExtendedMode(char modechar, int type, bool default_on, int params_when_on, int params_when_off); -00279 -00294 virtual void AddCommand(char* cmd, handlerfunc f, char flags, int minparams); -00295 -00313 virtual void SendMode(char **parameters, int pcnt, userrec *user); -00314 }; -00315 -00322 class ConfigReader : public classbase -00323 { -00324 protected: -00327 std::string fname; -00328 public: -00333 ConfigReader(); // default constructor reads ircd.conf -00337 ConfigReader(std::string filename); // read a module-specific config -00341 ~ConfigReader(); -00346 std::string ReadValue(std::string tag, std::string name, int index); -00353 int Enumerate(std::string tag); -00357 bool Verify(); -00358 }; -00359 -00360 -00361 -00367 class FileReader : public classbase -00368 { -00369 file_cache fc; -00370 public: -00375 FileReader(); -00381 FileReader(std::string filename); -00385 ~FileReader(); -00391 void LoadFile(std::string filename); -00396 bool Exists(); -00397 std::string GetLine(int x); -00403 int FileSize(); -00404 }; -00405 -00406 -00413 class ModuleFactory : public classbase -00414 { -00415 public: -00416 ModuleFactory() { } -00417 virtual ~ModuleFactory() { } -00422 virtual Module * CreateModule() = 0; -00423 }; -00424 -00425 -00426 typedef DLLFactory<ModuleFactory> ircd_module; -00427 -00428 #endif -

    Generated on Fri Apr 2 14:46:05 2004 for InspIRCd by +00044 #define FOREACH_RESULT(x) { MOD_RESULT = 0; \ +00045 for (int i = 0; i <= MODCOUNT; i++) { \ +00046 int res = modules[i]->x ; \ +00047 if (res) { \ +00048 MOD_RESULT = res; \ +00049 break; \ +00050 } \ +00051 } \ +00052 } +00053 +00054 // ********************************************************************************************* +00055 +00056 extern void createcommand(char* cmd, handlerfunc f, char flags, int minparams); +00057 extern void server_mode(char **parameters, int pcnt, userrec *user); +00058 +00059 // class Version holds the version information of a Module, returned +00060 // by Module::GetVersion (thanks RD) +00061 +00066 class Version : public classbase +00067 { +00068 public: +00069 const int Major, Minor, Revision, Build; +00070 Version(int major, int minor, int revision, int build); +00071 }; +00072 +00078 class Admin : public classbase +00079 { +00080 public: +00081 const std::string Name, Email, Nick; +00082 Admin(std::string name, std::string email, std::string nick); +00083 }; +00084 +00090 class Module : public classbase +00091 { +00092 public: +00093 +00097 Module(); +00098 +00102 virtual ~Module(); +00103 +00108 virtual Version GetVersion(); +00109 +00113 virtual void OnUserConnect(userrec* user); +00114 +00118 virtual void OnUserQuit(userrec* user); +00119 +00124 virtual void OnUserJoin(userrec* user, chanrec* channel); +00125 +00130 virtual void OnUserPart(userrec* user, chanrec* channel); +00131 +00138 virtual void OnPacketTransmit(char *p); +00139 +00147 virtual void OnPacketReceive(char *p); +00148 +00154 virtual void OnRehash(); +00155 +00162 virtual void OnServerRaw(std::string &raw, bool inbound); +00163 +00172 virtual bool OnExtendedMode(userrec* user, chanrec* chan, char modechar, int type, bool mode_on, string_list &params); +00173 +00186 virtual int Module::OnUserPreJoin(userrec* user, chanrec* chan, char* cname); +00187 +00188 }; +00189 +00190 +00196 class Server : public classbase +00197 { +00198 public: +00202 Server(); +00206 virtual ~Server(); +00207 +00211 virtual void SendOpers(std::string s); +00216 virtual void Log(int level, std::string s); +00221 virtual void Send(int Socket, std::string s); +00226 virtual void SendServ(int Socket, std::string s); +00231 virtual void SendFrom(int Socket, userrec* User, std::string s); +00236 virtual void SendTo(userrec* Source, userrec* Dest, std::string s); +00243 virtual void SendChannel(userrec* User, chanrec* Channel, std::string s,bool IncludeSender); +00248 virtual bool CommonChannels(userrec* u1, userrec* u2); +00256 virtual void SendCommon(userrec* User, std::string text,bool IncludeSender); +00261 virtual void SendWallops(userrec* User, std::string text); +00262 +00266 virtual bool IsNick(std::string nick); +00270 virtual userrec* FindNick(std::string nick); +00274 virtual chanrec* FindChannel(std::string channel); +00279 virtual std::string ChanMode(userrec* User, chanrec* Chan); +00282 virtual std::string GetServerName(); +00285 virtual std::string GetNetworkName(); +00291 virtual Admin GetAdmin(); +00309 virtual bool AddExtendedMode(char modechar, int type, bool default_on, int params_when_on, int params_when_off); +00310 +00325 virtual void AddCommand(char* cmd, handlerfunc f, char flags, int minparams); +00326 +00348 virtual void SendMode(char **parameters, int pcnt, userrec *user); +00349 }; +00350 +00357 class ConfigReader : public classbase +00358 { +00359 protected: +00362 std::string fname; +00363 public: +00368 ConfigReader(); // default constructor reads ircd.conf +00372 ConfigReader(std::string filename); // read a module-specific config +00376 ~ConfigReader(); +00381 std::string ReadValue(std::string tag, std::string name, int index); +00388 int Enumerate(std::string tag); +00392 bool Verify(); +00393 }; +00394 +00395 +00396 +00402 class FileReader : public classbase +00403 { +00404 file_cache fc; +00405 public: +00410 FileReader(); +00416 FileReader(std::string filename); +00420 ~FileReader(); +00426 void LoadFile(std::string filename); +00431 bool Exists(); +00432 std::string GetLine(int x); +00438 int FileSize(); +00439 }; +00440 +00441 +00448 class ModuleFactory : public classbase +00449 { +00450 public: +00451 ModuleFactory() { } +00452 virtual ~ModuleFactory() { } +00457 virtual Module * CreateModule() = 0; +00458 }; +00459 +00460 +00461 typedef DLLFactory<ModuleFactory> ircd_module; +00462 +00463 #endif +

    Generated on Sat Apr 3 16:36:03 2004 for InspIRCd by doxygen1.3-rc3
    diff --git a/docs/module-doc/modules_8h.html b/docs/module-doc/modules_8h.html index 95111c43d..a194ef74d 100644 --- a/docs/module-doc/modules_8h.html +++ b/docs/module-doc/modules_8h.html @@ -1,7 +1,7 @@ modules.h File Reference - +
    @@ -53,14 +53,15 @@ This graph shows which files directly or indirectly include this file:

    #define MT_CLIENT   2 #define MT_SERVER   3 #define FOREACH_MOD   for (int i = 0; i <= MODCOUNT; i++) modules[i]-> +#define FOREACH_RESULT(x)

    Typedefs

    -typedef std::deque< std::string > file_cacheLow level definition of a FileReader classes file cache area.

    -typedef file_cache string_list -typedef DLLFactory< ModuleFactoryircd_module +typedef std::deque< std::string > file_cacheLow level definition of a FileReader classes file cache area.

    +typedef file_cache string_list +typedef DLLFactory< ModuleFactoryircd_module

    Functions

    -void createcommand (char *cmd, handlerfunc f, char flags, int minparams) -void server_mode (char **parameters, int pcnt, userrec *user) +void createcommand (char *cmd, handlerfunc f, char flags, int minparams) +void server_mode (char **parameters, int pcnt, userrec *user)

    Define Documentation

    @@ -135,6 +136,44 @@ Definition at line 13 of Definition at line 36 of file modules.h. +

    + + + + +
    + + + + + + + +
    #define FOREACH_RESULT  +
    +
    + + + + + +
    +   + + +

    +Value:

    { MOD_RESULT = 0; \
    +                        for (int i = 0; i <= MODCOUNT; i++) { \
    +                        int res = modules[i]->x ; \
    +                        if (res) { \
    +                                MOD_RESULT = res; \
    +                                break; \
    +                        } \
    +                } \
    +   }
    +
    +

    +Definition at line 44 of file modules.h.

    @@ -280,7 +319,7 @@ Definition at line 12 of


    Typedef Documentation

    -

    +

    +Referenced by FileReader::FileReader(), and FileReader::LoadFile().
    @@ -305,10 +344,10 @@ Low level definition of a FileReader Definition at line 29 of file modules.h.

    -Referenced by FileReader::FileReader(), and FileReader::LoadFile().

    -

    +

    +Definition at line 461 of file modules.h.
    @@ -329,16 +368,16 @@ Referenced by FileReader::F

    -Definition at line 426 of file modules.h.

    -

    +

    @@ -357,7 +396,7 @@ Definition at line 30 of
    -
    typedef file_cache string_list + typedef file_cache string_list


    Function Documentation

    -

    +

    +Referenced by Server::AddCommand().
    @@ -406,10 +445,10 @@ Definition at line 30 of

    -Referenced by Server::AddCommand().

    -

    +

    +Referenced by Server::SendMode().
    @@ -452,10 +491,10 @@ Referenced by Server::AddCo

    -Referenced by Server::SendMode().

    -


    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
    diff --git a/docs/module-doc/servers_8cpp-source.html b/docs/module-doc/servers_8cpp-source.html index e44eb231c..a3b882abf 100644 --- a/docs/module-doc/servers_8cpp-source.html +++ b/docs/module-doc/servers_8cpp-source.html @@ -1,7 +1,7 @@ servers.cpp Source File - +
    @@ -46,7 +46,7 @@ 00038 fd = 0; 00039 } 00040 -

    Generated on Fri Apr 2 14:46:05 2004 for InspIRCd by +

    Generated on Sat Apr 3 16:36:03 2004 for InspIRCd by doxygen1.3-rc3
    diff --git a/docs/module-doc/servers_8cpp.html b/docs/module-doc/servers_8cpp.html index bc54fba26..9a91a9926 100644 --- a/docs/module-doc/servers_8cpp.html +++ b/docs/module-doc/servers_8cpp.html @@ -1,7 +1,7 @@ servers.cpp File Reference - +
    @@ -23,7 +23,7 @@ Include dependency graph for servers.cpp:

    Go to the source code of this file.
    -
    Generated on Fri Apr 2 14:46:09 2004 for InspIRCd by +
    Generated on Sat Apr 3 16:36:07 2004 for InspIRCd by doxygen1.3-rc3
    diff --git a/docs/module-doc/servers_8h-source.html b/docs/module-doc/servers_8h-source.html index 07ed40b5c..2417a11fa 100644 --- a/docs/module-doc/servers_8h-source.html +++ b/docs/module-doc/servers_8h-source.html @@ -1,7 +1,7 @@ servers.h Source File - +
    @@ -44,7 +44,7 @@ 00060 00061 #endif 00062 -

    Generated on Fri Apr 2 14:46:05 2004 for InspIRCd by +

    Generated on Sat Apr 3 16:36:03 2004 for InspIRCd by doxygen1.3-rc3
    diff --git a/docs/module-doc/servers_8h.html b/docs/module-doc/servers_8h.html index 7abb78c1e..b82e96586 100644 --- a/docs/module-doc/servers_8h.html +++ b/docs/module-doc/servers_8h.html @@ -1,7 +1,7 @@ servers.h File Reference - +
    @@ -82,7 +82,7 @@ Definition at line 14 of Definition at line 15 of file servers.h. -
    Generated on Fri Apr 2 14:46:09 2004 for InspIRCd by +
    Generated on Sat Apr 3 16:36:07 2004 for InspIRCd by doxygen1.3-rc3
    diff --git a/docs/module-doc/tree.html b/docs/module-doc/tree.html index 5537b7116..64faf1dcf 100644 --- a/docs/module-doc/tree.html +++ b/docs/module-doc/tree.html @@ -3,7 +3,7 @@ - + Test