From 1ea860b5708d065f9ed51234fc031969215fd806 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 2 Apr 2004 13:47:31 +0000 Subject: Updated documentation to document Server::SendMode git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@356 e03df62e-2008-0410-955e-edbf42e46eb7 --- docs/module-doc/annotated.html | 2 +- docs/module-doc/base_8h-source.html | 2 +- docs/module-doc/base_8h.html | 2 +- docs/module-doc/channels_8cpp-source.html | 40 +++ docs/module-doc/channels_8cpp.html | 30 ++ docs/module-doc/channels_8cpp__incl.gif | Bin 0 -> 10514 bytes docs/module-doc/channels_8h-source.html | 2 +- docs/module-doc/channels_8h.html | 2 +- docs/module-doc/classAdmin-members.html | 2 +- docs/module-doc/classAdmin.html | 10 +- docs/module-doc/classBanItem-members.html | 2 +- docs/module-doc/classBanItem.html | 2 +- docs/module-doc/classConfigReader-members.html | 2 +- docs/module-doc/classConfigReader.html | 60 ++-- docs/module-doc/classConnectClass-members.html | 2 +- docs/module-doc/classConnectClass.html | 2 +- docs/module-doc/classExemptItem-members.html | 2 +- docs/module-doc/classExemptItem.html | 2 +- docs/module-doc/classExtMode-members.html | 21 ++ docs/module-doc/classExtMode.html | 211 +++++++++++++++ docs/module-doc/classExtMode__coll__graph.gif | Bin 0 -> 6546 bytes docs/module-doc/classFileReader-members.html | 2 +- docs/module-doc/classFileReader.html | 92 +++---- docs/module-doc/classHostItem-members.html | 2 +- docs/module-doc/classHostItem.html | 2 +- docs/module-doc/classInviteItem-members.html | 2 +- docs/module-doc/classInviteItem.html | 2 +- docs/module-doc/classInvited-members.html | 2 +- docs/module-doc/classInvited.html | 2 +- docs/module-doc/classModule-members.html | 2 +- docs/module-doc/classModule.html | 4 +- docs/module-doc/classModuleFactory-members.html | 2 +- docs/module-doc/classModuleFactory.html | 12 +- docs/module-doc/classServer-members.html | 3 +- docs/module-doc/classServer.html | 210 +++++++++----- docs/module-doc/classVersion-members.html | 2 +- docs/module-doc/classVersion.html | 12 +- docs/module-doc/classchanrec-members.html | 2 +- docs/module-doc/classchanrec.html | 2 +- docs/module-doc/classclassbase-members.html | 2 +- docs/module-doc/classclassbase.html | 2 +- docs/module-doc/classcommand__t-members.html | 2 +- docs/module-doc/classcommand__t.html | 2 +- docs/module-doc/classconnection-members.html | 2 +- docs/module-doc/classconnection.html | 2 +- docs/module-doc/classes.html | 2 +- docs/module-doc/classpacket-members.html | 2 +- docs/module-doc/classpacket.html | 2 +- docs/module-doc/classserverrec-members.html | 2 +- docs/module-doc/classserverrec.html | 2 +- docs/module-doc/classucrec-members.html | 2 +- docs/module-doc/classucrec.html | 2 +- docs/module-doc/classuserrec-members.html | 2 +- docs/module-doc/classuserrec.html | 2 +- docs/module-doc/connection_8h-source.html | 2 +- docs/module-doc/connection_8h.html | 2 +- docs/module-doc/ctables_8h-source.html | 2 +- docs/module-doc/ctables_8h.html | 2 +- docs/module-doc/ctables_8h__dep__incl.gif | Bin 0 -> 3545 bytes docs/module-doc/files.html | 2 +- docs/module-doc/functions.html | 23 +- docs/module-doc/globals.html | 5 +- docs/module-doc/graph_legend.html | 2 +- docs/module-doc/hierarchy.html | 2 +- docs/module-doc/inherit__graph__1.gif | Bin 0 -> 614 bytes docs/module-doc/inherits.html | 2 +- docs/module-doc/main.html | 2 +- docs/module-doc/modules_8cpp-source.html | 346 ++++++++++++------------ docs/module-doc/modules_8cpp.html | 4 +- docs/module-doc/modules_8h-source.html | 243 +++++++++-------- docs/module-doc/modules_8h.html | 53 +++- docs/module-doc/servers_8cpp-source.html | 2 +- docs/module-doc/servers_8cpp.html | 2 +- docs/module-doc/servers_8h-source.html | 2 +- docs/module-doc/servers_8h.html | 2 +- docs/module-doc/users_8cpp-source.html | 2 +- docs/module-doc/users_8cpp.html | 2 +- docs/module-doc/users_8h-source.html | 2 +- docs/module-doc/users_8h.html | 2 +- 79 files changed, 956 insertions(+), 537 deletions(-) create mode 100644 docs/module-doc/channels_8cpp-source.html create mode 100644 docs/module-doc/channels_8cpp.html create mode 100644 docs/module-doc/channels_8cpp__incl.gif create mode 100644 docs/module-doc/classExtMode-members.html create mode 100644 docs/module-doc/classExtMode.html create mode 100644 docs/module-doc/classExtMode__coll__graph.gif create mode 100644 docs/module-doc/ctables_8h__dep__incl.gif create mode 100644 docs/module-doc/inherit__graph__1.gif diff --git a/docs/module-doc/annotated.html b/docs/module-doc/annotated.html index ed5abbe31..28a333ab4 100644 --- a/docs/module-doc/annotated.html +++ b/docs/module-doc/annotated.html @@ -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 13:37:33 2004 for InspIRCd by +
Generated on Fri Apr 2 14:46:10 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 469f7da72..3a48f7173 100644 --- a/docs/module-doc/base_8h-source.html +++ b/docs/module-doc/base_8h-source.html @@ -29,7 +29,7 @@ 00028 00029 #endif 00030 -
Generated on Fri Apr 2 13:37:27 2004 for InspIRCd by +
Generated on Fri Apr 2 14:46:04 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/base_8h.html b/docs/module-doc/base_8h.html index bdf85e41f..90def5e5c 100644 --- a/docs/module-doc/base_8h.html +++ b/docs/module-doc/base_8h.html @@ -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 13:37:28 2004 for InspIRCd by +
Generated on Fri Apr 2 14:46:06 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 new file mode 100644 index 000000000..6962adf43 --- /dev/null +++ b/docs/module-doc/channels_8cpp-source.html @@ -0,0 +1,40 @@ + + +channels.cpp Source File + + + +
+Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  
+

channels.cpp

Go to the documentation of this file.
00001 #include "inspircd_config.h" 
+00002 #include "channels.h"
+00003 #include "inspircd.h"
+00004 #include <stdio.h>
+00005 
+00006 chanrec::chanrec()
+00007 {
+00008         strcpy(name,"");
+00009         strcpy(custom_modes,"");
+00010         strcpy(topic,"");
+00011         strcpy(setby,"");
+00012         strcpy(key,"");
+00013         created = topicset = limit = 0;
+00014         topiclock = noexternal = inviteonly = moderated = secret = c_private = false;
+00015 }
+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 + +doxygen1.3-rc3
+ + diff --git a/docs/module-doc/channels_8cpp.html b/docs/module-doc/channels_8cpp.html new file mode 100644 index 000000000..ecc0f640a --- /dev/null +++ b/docs/module-doc/channels_8cpp.html @@ -0,0 +1,30 @@ + + +channels.cpp File Reference + + + +
+Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  
+

channels.cpp File Reference

#include "inspircd_config.h"
+#include "channels.h"
+#include "inspircd.h"
+#include <stdio.h>
+ +

+Include dependency graph for channels.cpp:

Include dependency graph
+ + + + + +

+Go to the source code of this file. + +
+


Generated on Fri Apr 2 14:46:06 2004 for InspIRCd by + +doxygen1.3-rc3
+ + diff --git a/docs/module-doc/channels_8cpp__incl.gif b/docs/module-doc/channels_8cpp__incl.gif new file mode 100644 index 000000000..b81c64a1d Binary files /dev/null and b/docs/module-doc/channels_8cpp__incl.gif differ diff --git a/docs/module-doc/channels_8h-source.html b/docs/module-doc/channels_8h-source.html index 412803c9b..231883d3c 100644 --- a/docs/module-doc/channels_8h-source.html +++ b/docs/module-doc/channels_8h-source.html @@ -115,7 +115,7 @@ 00181 00182 #endif 00183 -
Generated on Fri Apr 2 13:37:27 2004 for InspIRCd by +
Generated on Fri Apr 2 14:46:04 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/channels_8h.html b/docs/module-doc/channels_8h.html index a3666bb59..a4bbc4047 100644 --- a/docs/module-doc/channels_8h.html +++ b/docs/module-doc/channels_8h.html @@ -255,7 +255,7 @@ Holds a complete invite list. Definition at line 64 of file channels.h. -
Generated on Fri Apr 2 13:37:29 2004 for InspIRCd by +
Generated on Fri Apr 2 14:46:06 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classAdmin-members.html b/docs/module-doc/classAdmin-members.html index c0fb96fe9..7f58c1f11 100644 --- a/docs/module-doc/classAdmin-members.html +++ b/docs/module-doc/classAdmin-members.html @@ -14,7 +14,7 @@ NameAdmin NickAdmin ~classbase()classbase [inline] -
Generated on Fri Apr 2 13:37:34 2004 for InspIRCd by +
Generated on Fri Apr 2 14:46:11 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classAdmin.html b/docs/module-doc/classAdmin.html index 44b91c229..bd6139f5c 100644 --- a/docs/module-doc/classAdmin.html +++ b/docs/module-doc/classAdmin.html @@ -35,7 +35,7 @@ It is constructed by class Server, and

-Definition at line 59 of file modules.h.


Constructor & Destructor Documentation

+Definition at line 60 of file modules.h.

Constructor & Destructor Documentation

@@ -107,7 +107,7 @@ Definition at line 86 o

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

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

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

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

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


The documentation for this class was generated from the following files: -
Generated on Fri Apr 2 13:37:34 2004 for InspIRCd by +
Generated on Fri Apr 2 14:46:11 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classBanItem-members.html b/docs/module-doc/classBanItem-members.html index 3d73df95c..ca7dbaea3 100644 --- a/docs/module-doc/classBanItem-members.html +++ b/docs/module-doc/classBanItem-members.html @@ -15,7 +15,7 @@ set_timeHostItem ~classbase()classbase [inline] ~HostItem()HostItem [inline, virtual] -
Generated on Fri Apr 2 13:37:34 2004 for InspIRCd by +
Generated on Fri Apr 2 14:46:11 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classBanItem.html b/docs/module-doc/classBanItem.html index a8f3bef9f..3e7251f93 100644 --- a/docs/module-doc/classBanItem.html +++ b/docs/module-doc/classBanItem.html @@ -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 13:37:34 2004 for InspIRCd by +
Generated on Fri Apr 2 14:46:11 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classConfigReader-members.html b/docs/module-doc/classConfigReader-members.html index 856781c26..b73cabe35 100644 --- a/docs/module-doc/classConfigReader-members.html +++ b/docs/module-doc/classConfigReader-members.html @@ -17,7 +17,7 @@ Verify()ConfigReader ~classbase()classbase [inline] ~ConfigReader()ConfigReader -
Generated on Fri Apr 2 13:37:37 2004 for InspIRCd by +
Generated on Fri Apr 2 14:46:13 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classConfigReader.html b/docs/module-doc/classConfigReader.html index 5fb1368d4..05df29c0a 100644 --- a/docs/module-doc/classConfigReader.html +++ b/docs/module-doc/classConfigReader.html @@ -45,7 +45,7 @@ It may either be instantiated with one parameter or none. Constructing the class

-Definition at line 302 of file modules.h.


Constructor & Destructor Documentation

+Definition at line 322 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 225 of file modules.cpp. +Definition at line 229 of file modules.cpp.

-References fname. +References fname.

-

00226 {
-00227         fname = CONFIG_FILE;
-00228 }
+
00230 {
+00231         fname = CONFIG_FILE;
+00232 }
 
@@ -115,9 +115,9 @@ Overloaded constructor.

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

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

-

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

This method destroys the ConfigReader class.

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

-

00232 {
-00233 }
+
00236 {
+00237 }
 
@@ -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 246 of file modules.cpp. +Definition at line 250 of file modules.cpp.

-References fname. +References fname.

-

00247 {
-00248         return EnumConf(fname.c_str(),tag.c_str());
-00249 }
+
00251 {
+00252         return EnumConf(fname.c_str(),tag.c_str());
+00253 }
 
@@ -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 238 of file modules.cpp. +Definition at line 242 of file modules.cpp.

-References fname. +References fname.

-

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

This method is unimplemented and will always return true.

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

-

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

-Definition at line 307 of file modules.h. +Definition at line 327 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 13:37:37 2004 for InspIRCd by +
Generated on Fri Apr 2 14:46:13 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classConnectClass-members.html b/docs/module-doc/classConnectClass-members.html index 41af98c8b..b0ffaeabb 100644 --- a/docs/module-doc/classConnectClass-members.html +++ b/docs/module-doc/classConnectClass-members.html @@ -13,7 +13,7 @@ passConnectClass typeConnectClass ~classbase()classbase [inline] -
Generated on Fri Apr 2 13:37:37 2004 for InspIRCd by +
Generated on Fri Apr 2 14:46:14 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classConnectClass.html b/docs/module-doc/classConnectClass.html index 37a3b3988..e78af94d8 100644 --- a/docs/module-doc/classConnectClass.html +++ b/docs/module-doc/classConnectClass.html @@ -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 13:37:37 2004 for InspIRCd by +
Generated on Fri Apr 2 14:46:14 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classExemptItem-members.html b/docs/module-doc/classExemptItem-members.html index 0af329b96..b328ad237 100644 --- a/docs/module-doc/classExemptItem-members.html +++ b/docs/module-doc/classExemptItem-members.html @@ -15,7 +15,7 @@ set_timeHostItem ~classbase()classbase [inline] ~HostItem()HostItem [inline, virtual] -
Generated on Fri Apr 2 13:37:39 2004 for InspIRCd by +
Generated on Fri Apr 2 14:46:15 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classExemptItem.html b/docs/module-doc/classExemptItem.html index 74eb595da..18a11bdb4 100644 --- a/docs/module-doc/classExemptItem.html +++ b/docs/module-doc/classExemptItem.html @@ -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 13:37:39 2004 for InspIRCd by +
Generated on Fri Apr 2 14:46:15 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classExtMode-members.html b/docs/module-doc/classExtMode-members.html new file mode 100644 index 000000000..6ef192623 --- /dev/null +++ b/docs/module-doc/classExtMode-members.html @@ -0,0 +1,21 @@ + + +Member List + + + +
+Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  
+

ExtMode Member List

This is the complete list of members for ExtMode, including all inherited members. + + + + + + +
default_onExtMode
ExtMode(char mc, int ty, bool d_on, int p_on, int p_off)ExtMode [inline]
modecharExtMode
params_when_offExtMode
params_when_onExtMode
typeExtMode

Generated on Fri Apr 2 14:46:15 2004 for InspIRCd by + +doxygen1.3-rc3
+ + diff --git a/docs/module-doc/classExtMode.html b/docs/module-doc/classExtMode.html new file mode 100644 index 000000000..92ccd87f3 --- /dev/null +++ b/docs/module-doc/classExtMode.html @@ -0,0 +1,211 @@ + + +ExtMode class Reference + + + +
+Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  
+

ExtMode Class Reference

Collaboration diagram for ExtMode:

Collaboration graph
+
[legend]
List of all members. + + + + + + + + + +

Public Member Functions

 ExtMode (char mc, int ty, bool d_on, int p_on, int p_off)

Public Attributes

char modechar
int type
bool default_on
int params_when_on
int params_when_off
+

Constructor & Destructor Documentation

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ExtMode::ExtMode char   mc,
int   ty,
bool   d_on,
int   p_on,
int   p_off
[inline]
+
+ + + + + +
+   + + +

+ +

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

+

00025 : modechar(mc), type(ty), default_on(d_on), params_when_on(p_on), params_when_off(p_off) { };
+
+


Member Data Documentation

+

+ + + + +
+ + +
bool ExtMode::default_on +
+
+ + + + + +
+   + + +

+ +

+Definition at line 22 of file modules.cpp.

+

+ + + + +
+ + +
char ExtMode::modechar +
+
+ + + + + +
+   + + +

+ +

+Definition at line 20 of file modules.cpp.

+

+ + + + +
+ + +
int ExtMode::params_when_off +
+
+ + + + + +
+   + + +

+ +

+Definition at line 24 of file modules.cpp.

+

+ + + + +
+ + +
int ExtMode::params_when_on +
+
+ + + + + +
+   + + +

+ +

+Definition at line 23 of file modules.cpp.

+

+ + + + +
+ + +
int ExtMode::type +
+
+ + + + + +
+   + + +

+ +

+Definition at line 21 of file modules.cpp.

+


The documentation for this class was generated from the following file: +
Generated on Fri Apr 2 14:46:15 2004 for InspIRCd by + +doxygen1.3-rc3
+ + diff --git a/docs/module-doc/classExtMode__coll__graph.gif b/docs/module-doc/classExtMode__coll__graph.gif new file mode 100644 index 000000000..e0835abae Binary files /dev/null and b/docs/module-doc/classExtMode__coll__graph.gif differ diff --git a/docs/module-doc/classFileReader-members.html b/docs/module-doc/classFileReader-members.html index 5212798f9..7e360bc2d 100644 --- a/docs/module-doc/classFileReader-members.html +++ b/docs/module-doc/classFileReader-members.html @@ -18,7 +18,7 @@ LoadFile(std::string filename)FileReader ~classbase()classbase [inline] ~FileReader()FileReader -
Generated on Fri Apr 2 13:37:39 2004 for InspIRCd by +
Generated on Fri Apr 2 14:46:16 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classFileReader.html b/docs/module-doc/classFileReader.html index d2ba2399b..75ff67749 100644 --- a/docs/module-doc/classFileReader.html +++ b/docs/module-doc/classFileReader.html @@ -45,7 +45,7 @@ This class contains methods for read-only manipulation of a text file in memory.

-Definition at line 347 of file modules.h.


Constructor & Destructor Documentation

+Definition at line 367 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 265 of file modules.cpp. +Definition at line 269 of file modules.cpp.

-

00266 {
-00267 }
+
00270 {
+00271 }
 
@@ -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 258 of file modules.cpp. +Definition at line 262 of file modules.cpp.

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

-

00259 {
-00260         file_cache c;
-00261         readfile(c,filename.c_str());
-00262         this->fc = c;
-00263 }
+
00263 {
+00264         file_cache c;
+00265         readfile(c,filename.c_str());
+00266         this->fc = c;
+00267 }
 
@@ -153,10 +153,10 @@ Default destructor.

This deletes the memory allocated to the file.

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

-

00278 {
-00279 }
+
00282 {
+00283 }
 
@@ -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 281 of file modules.cpp. +Definition at line 285 of file modules.cpp.

-References fc. +References fc.

-

00282 {
-00283         if (fc.size() == 0)
-00284         {
-00285                 return(false);
-00286         }
-00287         else
+
00286 {
+00287         if (fc.size() == 0)
 00288         {
-00289                 return(true);
+00289                 return(false);
 00290         }
-00291 }
+00291         else
+00292         {
+00293                 return(true);
+00294         }
+00295 }
 
@@ -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 300 of file modules.cpp. +Definition at line 304 of file modules.cpp.

-References fc. +References fc.

-

00301 {
-00302         return fc.size();
-00303 }
+
00305 {
+00306         return fc.size();
+00307 }
 
@@ -274,15 +274,15 @@ References fc.

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

-References fc. +References fc.

-

00294 {
-00295         if ((x<0) || (x>fc.size()))
-00296                 return "";
-00297         return fc[x];
-00298 }
+
00298 {
+00299         if ((x<0) || (x>fc.size()))
+00300                 return "";
+00301         return fc[x];
+00302 }
 
@@ -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 269 of file modules.cpp. +Definition at line 273 of file modules.cpp.

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

-

00270 {
-00271         file_cache c;
-00272         readfile(c,filename.c_str());
-00273         this->fc = c;
-00274 }
+
00274 {
+00275         file_cache c;
+00276         readfile(c,filename.c_str());
+00277         this->fc = c;
+00278 }
 
@@ -350,14 +350,14 @@ References fc, and

-Definition at line 349 of file modules.h. +Definition at line 369 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 13:37:39 2004 for InspIRCd by +
Generated on Fri Apr 2 14:46:16 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classHostItem-members.html b/docs/module-doc/classHostItem-members.html index d4cd904b3..6675c9141 100644 --- a/docs/module-doc/classHostItem-members.html +++ b/docs/module-doc/classHostItem-members.html @@ -15,7 +15,7 @@ set_timeHostItem ~classbase()classbase [inline] ~HostItem()HostItem [inline, virtual] -
Generated on Fri Apr 2 13:37:40 2004 for InspIRCd by +
Generated on Fri Apr 2 14:46:16 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classHostItem.html b/docs/module-doc/classHostItem.html index d6d0bf1d9..13741aad6 100644 --- a/docs/module-doc/classHostItem.html +++ b/docs/module-doc/classHostItem.html @@ -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 13:37:40 2004 for InspIRCd by +
Generated on Fri Apr 2 14:46:16 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classInviteItem-members.html b/docs/module-doc/classInviteItem-members.html index 9ed7b3423..8a849f9a8 100644 --- a/docs/module-doc/classInviteItem-members.html +++ b/docs/module-doc/classInviteItem-members.html @@ -15,7 +15,7 @@ set_timeHostItem ~classbase()classbase [inline] ~HostItem()HostItem [inline, virtual] -
Generated on Fri Apr 2 13:37:41 2004 for InspIRCd by +
Generated on Fri Apr 2 14:46:17 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classInviteItem.html b/docs/module-doc/classInviteItem.html index 9975b710a..e67ff1aab 100644 --- a/docs/module-doc/classInviteItem.html +++ b/docs/module-doc/classInviteItem.html @@ -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 13:37:41 2004 for InspIRCd by +
Generated on Fri Apr 2 14:46:17 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classInvited-members.html b/docs/module-doc/classInvited-members.html index 767028b0b..b75a208c4 100644 --- a/docs/module-doc/classInvited-members.html +++ b/docs/module-doc/classInvited-members.html @@ -11,7 +11,7 @@ channelInvited classbase()classbase [inline] ~classbase()classbase [inline] -
Generated on Fri Apr 2 13:37:40 2004 for InspIRCd by +
Generated on Fri Apr 2 14:46:17 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classInvited.html b/docs/module-doc/classInvited.html index b0a25c634..66630dea1 100644 --- a/docs/module-doc/classInvited.html +++ b/docs/module-doc/classInvited.html @@ -58,7 +58,7 @@ Referenced by userrec::Invite
The documentation for this class was generated from the following file:
-
Generated on Fri Apr 2 13:37:40 2004 for InspIRCd by +
Generated on Fri Apr 2 14:46:17 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classModule-members.html b/docs/module-doc/classModule-members.html index dbcdc378f..4104ef1e2 100644 --- a/docs/module-doc/classModule-members.html +++ b/docs/module-doc/classModule-members.html @@ -22,7 +22,7 @@ OnUserQuit(userrec *user)Module [virtual] ~classbase()classbase [inline] ~Module()Module [virtual] -
Generated on Fri Apr 2 13:37:42 2004 for InspIRCd by +
Generated on Fri Apr 2 14:46:18 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classModule.html b/docs/module-doc/classModule.html index 926b2a40a..03cd1ca52 100644 --- a/docs/module-doc/classModule.html +++ b/docs/module-doc/classModule.html @@ -54,7 +54,7 @@ All modules must inherit from this class, its methods will be called when irc se

-Definition at line 71 of file modules.h.


Constructor & Destructor Documentation

+Definition at line 72 of file modules.h.

Constructor & Destructor Documentation

@@ -536,7 +536,7 @@ Definition at line 91 o


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

-Definition at line 393 of file modules.h.


Constructor & Destructor Documentation

+Definition at line 413 of file modules.h.

Constructor & Destructor Documentation

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

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

-

00396 { }
+
00416 { }
 
@@ -95,9 +95,9 @@ Definition at line 396 of

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

-

00397 { }
+
00417 { }
 
@@ -134,7 +134,7 @@ Your inherited class of ModuleFactory must return a pointer to your modules.h -
Generated on Fri Apr 2 13:37:42 2004 for InspIRCd by +
Generated on Fri Apr 2 14:46:18 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classServer-members.html b/docs/module-doc/classServer-members.html index afd500c66..ae6cf04e4 100644 --- a/docs/module-doc/classServer-members.html +++ b/docs/module-doc/classServer-members.html @@ -24,6 +24,7 @@ SendChannel(userrec *User, chanrec *Channel, std::string s, bool IncludeSender)Server [virtual] SendCommon(userrec *User, std::string text, bool IncludeSender)Server [virtual] SendFrom(int Socket, userrec *User, std::string s)Server [virtual] + SendMode(char **parameters, int pcnt, userrec *user)Server [virtual] SendOpers(std::string s)Server [virtual] SendServ(int Socket, std::string s)Server [virtual] SendTo(userrec *Source, userrec *Dest, std::string s)Server [virtual] @@ -31,7 +32,7 @@ Server()Server ~classbase()classbase [inline] ~Server()Server [virtual] -
Generated on Fri Apr 2 13:37:44 2004 for InspIRCd by +
Generated on Fri Apr 2 14:46:19 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classServer.html b/docs/module-doc/classServer.html index c7b08f426..1565c1d30 100644 --- a/docs/module-doc/classServer.html +++ b/docs/module-doc/classServer.html @@ -64,6 +64,8 @@ Inheritance diagram for Server:



virtual void AddCommand (char *cmd, handlerfunc f, char flags, int minparams)  Adds a command to the command table.

+virtual void SendMode (char **parameters, int pcnt, userrec *user) + Sends a servermode.


Detailed Description

Allows server output and query functions This class contains methods which allow a module to query the state of the irc server, and produce output to users and other servers. @@ -72,7 +74,7 @@ All modules should instantiate at least one copy of this class, and use its memb

-Definition at line 163 of file modules.h.


Constructor & Destructor Documentation

+Definition at line 165 of file modules.h.

Constructor & Destructor Documentation

@@ -266,10 +268,10 @@ 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 220 of file modules.cpp. +Definition at line 224 of file modules.cpp.

-

00221 {
-00222 }
+
00225 {
+00226 }
 
@@ -312,11 +314,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 198 of file modules.cpp. +Definition at line 202 of file modules.cpp.

-

00199 {
-00200         return cmode(User,Chan);
-00201 }
+
00203 {
+00204         return cmode(User,Chan);
+00205 }
 
@@ -359,11 +361,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 161 of file modules.cpp. +Definition at line 165 of file modules.cpp.

-

00162 {
-00163         return (common_channels(u1,u2) != 0);
-00164 }
+
00166 {
+00167         return (common_channels(u1,u2) != 0);
+00168 }
 
@@ -397,11 +399,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 193 of file modules.cpp. +Definition at line 197 of file modules.cpp.

-

00194 {
-00195         return FindChan(channel.c_str());
-00196 }
+
00198 {
+00199         return FindChan(channel.c_str());
+00200 }
 
@@ -435,11 +437,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 188 of file modules.cpp. +Definition at line 192 of file modules.cpp.

-

00189 {
-00190         return Find(nick);
-00191 }
+
00193 {
+00194         return Find(nick);
+00195 }
 
@@ -472,11 +474,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 213 of file modules.cpp. +Definition at line 217 of file modules.cpp.

-

00214 {
-00215         return Admin(getadminname(),getadminemail(),getadminnick());
-00216 }
+
00218 {
+00219         return Admin(getadminname(),getadminemail(),getadminnick());
+00220 }
 
@@ -509,11 +511,11 @@ Returns the network name, global to all linked servers.

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

-

00209 {
-00210         return getnetworkname();
-00211 }
+
00213 {
+00214         return getnetworkname();
+00215 }
 
@@ -546,11 +548,11 @@ Returns the server name of the server where the module is loaded.

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

-

00204 {
-00205         return getservername();
-00206 }
+
00208 {
+00209         return getservername();
+00210 }
 
@@ -584,11 +586,11 @@ Returns true if a nick is valid.

Nicks for unregistered connections will return false.

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

-

00184 {
-00185         return (isnick(nick.c_str()) != 0);
-00186 }
+
00188 {
+00189         return (isnick(nick.c_str()) != 0);
+00190 }
 
@@ -678,11 +680,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 129 of file modules.cpp. +Definition at line 133 of file modules.cpp.

-

00130 {
-00131         Write(Socket,"%s",s.c_str());
-00132 }
+
00134 {
+00135         Write(Socket,"%s",s.c_str());
+00136 }
 
@@ -737,18 +739,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 149 of file modules.cpp. +Definition at line 153 of file modules.cpp.

-

00150 {
-00151         if (IncludeSender)
-00152         {
-00153                 WriteChannel(Channel,User,"%s",s.c_str());
-00154         }
-00155         else
+
00154 {
+00155         if (IncludeSender)
 00156         {
-00157                 ChanExceptSender(Channel,User,"%s",s.c_str());
+00157                 WriteChannel(Channel,User,"%s",s.c_str());
 00158         }
-00159 }
+00159         else
+00160         {
+00161                 ChanExceptSender(Channel,User,"%s",s.c_str());
+00162         }
+00163 }
 
@@ -797,18 +799,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 166 of file modules.cpp. +Definition at line 170 of file modules.cpp.

-

00167 {
-00168         if (IncludeSender)
-00169         {
-00170                 WriteCommon(User,"%s",text.c_str());
-00171         }
-00172         else
+
00171 {
+00172         if (IncludeSender)
 00173         {
-00174                 WriteCommonExcept(User,"%s",text.c_str());
+00174                 WriteCommon(User,"%s",text.c_str());
 00175         }
-00176 }
+00176         else
+00177         {
+00178                 WriteCommonExcept(User,"%s",text.c_str());
+00179         }
+00180 }
 
@@ -857,11 +859,69 @@ 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 139 of file modules.cpp. +Definition at line 143 of file modules.cpp.

-

00140 {
-00141         WriteFrom(Socket,User,"%s",s.c_str());
-00142 }
+
00144 {
+00145         WriteFrom(Socket,User,"%s",s.c_str());
+00146 }
+
+ + +

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
void Server::SendMode char **   parameters,
int   pcnt,
userrec  user
[virtual]
+
+ + + +
+   + + +

+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);

+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. +

+References server_mode(). +

+

00129 {
+00130         server_mode(parameters,pcnt,user);
+00131 }
 
@@ -942,11 +1002,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 134 of file modules.cpp. +Definition at line 138 of file modules.cpp.

-

00135 {
-00136         WriteServ(Socket,"%s",s.c_str());
-00137 }
+
00139 {
+00140         WriteServ(Socket,"%s",s.c_str());
+00141 }
 
@@ -995,11 +1055,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 144 of file modules.cpp. +Definition at line 148 of file modules.cpp.

-

00145 {
-00146         WriteTo(Source,Dest,"%s",s.c_str());
-00147 }
+
00149 {
+00150         WriteTo(Source,Dest,"%s",s.c_str());
+00151 }
 
@@ -1042,17 +1102,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 178 of file modules.cpp. +Definition at line 182 of file modules.cpp.

-

00179 {
-00180         WriteWallOps(User,"%s",text.c_str());
-00181 }
+
00183 {
+00184         WriteWallOps(User,"%s",text.c_str());
+00185 }
 

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

Constructor & Destructor Documentation

+Definition at line 48 of file modules.h.

Constructor & Destructor Documentation

@@ -114,7 +114,7 @@ Definition at line 82 o

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

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

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

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

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

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

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


The documentation for this class was generated from the following files: -
Generated on Fri Apr 2 13:37:46 2004 for InspIRCd by +
Generated on Fri Apr 2 14:46:22 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classchanrec-members.html b/docs/module-doc/classchanrec-members.html index cab336e61..267ff8c66 100644 --- a/docs/module-doc/classchanrec-members.html +++ b/docs/module-doc/classchanrec-members.html @@ -29,7 +29,7 @@ topicsetchanrec ~chanrec()chanrec [inline, virtual] ~classbase()classbase [inline] -
Generated on Fri Apr 2 13:37:35 2004 for InspIRCd by +
Generated on Fri Apr 2 14:46:12 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classchanrec.html b/docs/module-doc/classchanrec.html index 725c7b075..24f19b02d 100644 --- a/docs/module-doc/classchanrec.html +++ b/docs/module-doc/classchanrec.html @@ -657,7 +657,7 @@ Referenced by chanrec()
The documentation for this class was generated from the following files: -
Generated on Fri Apr 2 13:37:35 2004 for InspIRCd by +
Generated on Fri Apr 2 14:46:12 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classclassbase-members.html b/docs/module-doc/classclassbase-members.html index f6ba49518..f20e71c0d 100644 --- a/docs/module-doc/classclassbase-members.html +++ b/docs/module-doc/classclassbase-members.html @@ -10,7 +10,7 @@ ageclassbase classbase()classbase [inline] ~classbase()classbase [inline] -
Generated on Fri Apr 2 13:37:36 2004 for InspIRCd by +
Generated on Fri Apr 2 14:46:12 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classclassbase.html b/docs/module-doc/classclassbase.html index af72fc1e4..e2ebc99b6 100644 --- a/docs/module-doc/classclassbase.html +++ b/docs/module-doc/classclassbase.html @@ -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 13:37:36 2004 for InspIRCd by +
Generated on Fri Apr 2 14:46:12 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 8f6ff3c8c..217d770cb 100644 --- a/docs/module-doc/classcommand__t-members.html +++ b/docs/module-doc/classcommand__t-members.html @@ -16,7 +16,7 @@ total_bytescommand_t use_countcommand_t ~classbase()classbase [inline] -
Generated on Fri Apr 2 13:37:36 2004 for InspIRCd by +
Generated on Fri Apr 2 14:46:13 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classcommand__t.html b/docs/module-doc/classcommand__t.html index ffb1c94c9..16a0eb2a7 100644 --- a/docs/module-doc/classcommand__t.html +++ b/docs/module-doc/classcommand__t.html @@ -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 13:37:36 2004 for InspIRCd by +
Generated on Fri Apr 2 14:46:13 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classconnection-members.html b/docs/module-doc/classconnection-members.html index de453e70f..3a3215eb6 100644 --- a/docs/module-doc/classconnection-members.html +++ b/docs/module-doc/classconnection-members.html @@ -36,7 +36,7 @@ signonconnection TerminateLink(char *targethost)connection ~classbase()classbase [inline] -
Generated on Fri Apr 2 13:37:38 2004 for InspIRCd by +
Generated on Fri Apr 2 14:46:14 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classconnection.html b/docs/module-doc/classconnection.html index 06110d80c..fa20d0de9 100644 --- a/docs/module-doc/classconnection.html +++ b/docs/module-doc/classconnection.html @@ -837,7 +837,7 @@ Referenced by serverrec::se
The documentation for this class was generated from the following file:
-
Generated on Fri Apr 2 13:37:38 2004 for InspIRCd by +
Generated on Fri Apr 2 14:46:14 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classes.html b/docs/module-doc/classes.html index 3f0856447..8d5d31cfb 100644 --- a/docs/module-doc/classes.html +++ b/docs/module-doc/classes.html @@ -19,7 +19,7 @@
  I  
packet   
  V  
chanrec   ExemptItem   Invited   
  S  
-Version   classbase   ExtMode   InviteItem   Server   
Generated on Fri Apr 2 13:37:33 2004 for InspIRCd by +Version   classbase   ExtMode   InviteItem   Server   
Generated on Fri Apr 2 14:46:10 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classpacket-members.html b/docs/module-doc/classpacket-members.html index bb95ba019..16a51e49b 100644 --- a/docs/module-doc/classpacket-members.html +++ b/docs/module-doc/classpacket-members.html @@ -16,7 +16,7 @@ typepacket ~classbase()classbase [inline] ~packet()packet -
Generated on Fri Apr 2 13:37:43 2004 for InspIRCd by +
Generated on Fri Apr 2 14:46:19 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classpacket.html b/docs/module-doc/classpacket.html index 56f2b7c42..9c711d440 100644 --- a/docs/module-doc/classpacket.html +++ b/docs/module-doc/classpacket.html @@ -183,7 +183,7 @@ Definition at line 31
The documentation for this class was generated from the following file: -
Generated on Fri Apr 2 13:37:43 2004 for InspIRCd by +
Generated on Fri Apr 2 14:46:19 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classserverrec-members.html b/docs/module-doc/classserverrec-members.html index 7000e4964..bcb8887ea 100644 --- a/docs/module-doc/classserverrec-members.html +++ b/docs/module-doc/classserverrec-members.html @@ -47,7 +47,7 @@ versionserverrec ~classbase()classbase [inline] ~serverrec()serverrec -
Generated on Fri Apr 2 13:37:44 2004 for InspIRCd by +
Generated on Fri Apr 2 14:46:20 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classserverrec.html b/docs/module-doc/classserverrec.html index 5e3687f8e..16e397ea5 100644 --- a/docs/module-doc/classserverrec.html +++ b/docs/module-doc/classserverrec.html @@ -422,7 +422,7 @@ Referenced by serverrec()
The documentation for this class was generated from the following files:
-
Generated on Fri Apr 2 13:37:44 2004 for InspIRCd by +
Generated on Fri Apr 2 14:46:20 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classucrec-members.html b/docs/module-doc/classucrec-members.html index 7275119b2..c9cecc769 100644 --- a/docs/module-doc/classucrec-members.html +++ b/docs/module-doc/classucrec-members.html @@ -14,7 +14,7 @@ ucrec()ucrec [inline] ~classbase()classbase [inline] ~ucrec()ucrec [inline, virtual] -
Generated on Fri Apr 2 13:37:45 2004 for InspIRCd by +
Generated on Fri Apr 2 14:46:21 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classucrec.html b/docs/module-doc/classucrec.html index 15f7910f3..2fe8b87b2 100644 --- a/docs/module-doc/classucrec.html +++ b/docs/module-doc/classucrec.html @@ -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 13:37:45 2004 for InspIRCd by +
Generated on Fri Apr 2 14:46:21 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classuserrec-members.html b/docs/module-doc/classuserrec-members.html index 24f9b9811..a8c34d8a3 100644 --- a/docs/module-doc/classuserrec-members.html +++ b/docs/module-doc/classuserrec-members.html @@ -53,7 +53,7 @@ userrec()userrec ~classbase()classbase [inline] ~userrec()userrec [inline, virtual] -
Generated on Fri Apr 2 13:37:46 2004 for InspIRCd by +
Generated on Fri Apr 2 14:46:21 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classuserrec.html b/docs/module-doc/classuserrec.html index 371c15e9f..274b7f424 100644 --- a/docs/module-doc/classuserrec.html +++ b/docs/module-doc/classuserrec.html @@ -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 13:37:46 2004 for InspIRCd by +
Generated on Fri Apr 2 14:46:21 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 114d23931..6870d921a 100644 --- a/docs/module-doc/connection_8h-source.html +++ b/docs/module-doc/connection_8h-source.html @@ -79,7 +79,7 @@ 00071 00072 #endif 00073 -

Generated on Fri Apr 2 13:37:27 2004 for InspIRCd by +

Generated on Fri Apr 2 14:46:05 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/connection_8h.html b/docs/module-doc/connection_8h.html index 87d174027..2d36150ee 100644 --- a/docs/module-doc/connection_8h.html +++ b/docs/module-doc/connection_8h.html @@ -142,7 +142,7 @@ Definition at line 20 Definition at line 22 of file connection.h. -
Generated on Fri Apr 2 13:37:30 2004 for InspIRCd by +
Generated on Fri Apr 2 14:46:07 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 40dc67167..fb9209ab9 100644 --- a/docs/module-doc/ctables_8h-source.html +++ b/docs/module-doc/ctables_8h-source.html @@ -43,7 +43,7 @@ 00049 00050 #endif 00051 -

Generated on Fri Apr 2 13:37:27 2004 for InspIRCd by +

Generated on Fri Apr 2 14:46:05 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/ctables_8h.html b/docs/module-doc/ctables_8h.html index 4221d4abb..9fca91ba8 100644 --- a/docs/module-doc/ctables_8h.html +++ b/docs/module-doc/ctables_8h.html @@ -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 13:37:30 2004 for InspIRCd by +
Generated on Fri Apr 2 14:46:07 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/ctables_8h__dep__incl.gif b/docs/module-doc/ctables_8h__dep__incl.gif new file mode 100644 index 000000000..aa9715c04 Binary files /dev/null and b/docs/module-doc/ctables_8h__dep__incl.gif differ diff --git a/docs/module-doc/files.html b/docs/module-doc/files.html index 4be939d87..4fbe6cb8a 100644 --- a/docs/module-doc/files.html +++ b/docs/module-doc/files.html @@ -19,7 +19,7 @@ users.cpp [code] users.h [code] -
Generated on Fri Apr 2 13:37:27 2004 for InspIRCd by +
Generated on Fri Apr 2 14:46:04 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/functions.html b/docs/module-doc/functions.html index 091beb352..9cc059f3c 100644 --- a/docs/module-doc/functions.html +++ b/docs/module-doc/functions.html @@ -133,9 +133,9 @@ Here is a list of all class members with links to the classes they belong to:

ModuleFactory

- n -

- ~ -

  • ~chanrec() @@ -232,7 +233,7 @@ Here is a list of all class members with links to the classes they belong to:

    serverrec
  • ~ucrec() : ucrec
  • ~userrec() : userrec
-
Generated on Fri Apr 2 13:37:33 2004 for InspIRCd by +
Generated on Fri Apr 2 14:46:10 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/globals.html b/docs/module-doc/globals.html index cb7a7e52a..5918121fa 100644 --- a/docs/module-doc/globals.html +++ b/docs/module-doc/globals.html @@ -82,7 +82,8 @@ Here is a list of all file members with links to the files they belong to:

connection.h

- s -

    -
  • SPARSE +
  • server_mode() +: modules.h
  • SPARSE : modules.h
  • STATUS_HOP : users.h
  • STATUS_NORMAL : users.h
  • STATUS_OP @@ -101,7 +102,7 @@ Here is a list of all file members with links to the files they belong to:

    -
    Generated on Fri Apr 2 13:37:46 2004 for InspIRCd by +
    Generated on Fri Apr 2 14:46:22 2004 for InspIRCd by doxygen1.3-rc3
    diff --git a/docs/module-doc/graph_legend.html b/docs/module-doc/graph_legend.html index 5e1bbbc7c..f3845fc80 100644 --- a/docs/module-doc/graph_legend.html +++ b/docs/module-doc/graph_legend.html @@ -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 13:37:46 2004 for InspIRCd by +
Generated on Fri Apr 2 14:46:22 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/hierarchy.html b/docs/module-doc/hierarchy.html index 05eedb308..0b466e918 100644 --- a/docs/module-doc/hierarchy.html +++ b/docs/module-doc/hierarchy.html @@ -38,7 +38,7 @@ This inheritance list is sorted roughly, but not completely, alphabetically:
  • ExtMode -
    Generated on Fri Apr 2 13:37:33 2004 for InspIRCd by +
    Generated on Fri Apr 2 14:46:10 2004 for InspIRCd by doxygen1.3-rc3
    diff --git a/docs/module-doc/inherit__graph__1.gif b/docs/module-doc/inherit__graph__1.gif new file mode 100644 index 000000000..f79fa673d Binary files /dev/null and b/docs/module-doc/inherit__graph__1.gif differ diff --git a/docs/module-doc/inherits.html b/docs/module-doc/inherits.html index fd4327674..c841b60dd 100644 --- a/docs/module-doc/inherits.html +++ b/docs/module-doc/inherits.html @@ -38,7 +38,7 @@ -
    Generated on Fri Apr 2 13:37:47 2004 for InspIRCd by +
    Generated on Fri Apr 2 14:46:22 2004 for InspIRCd by doxygen1.3-rc3
    diff --git a/docs/module-doc/main.html b/docs/module-doc/main.html index fa3a2d291..9efc7e37b 100644 --- a/docs/module-doc/main.html +++ b/docs/module-doc/main.html @@ -8,7 +8,7 @@ Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

  • InspIRCd Documentation

    -


    Generated on Fri Apr 2 13:37:27 2004 for InspIRCd by +
    Generated on Fri Apr 2 14:46:04 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 00de97628..7e31fec1d 100644 --- a/docs/module-doc/modules_8cpp-source.html +++ b/docs/module-doc/modules_8cpp-source.html @@ -133,191 +133,195 @@ 00125 createcommand(cmd,f,flags,minparams); 00126 } 00127 -00128 -00129 void Server::Send(int Socket, std::string s) -00130 { -00131 Write(Socket,"%s",s.c_str()); -00132 } -00133 -00134 void Server::SendServ(int Socket, std::string s) -00135 { -00136 WriteServ(Socket,"%s",s.c_str()); -00137 } -00138 -00139 void Server::SendFrom(int Socket, userrec* User, std::string s) -00140 { -00141 WriteFrom(Socket,User,"%s",s.c_str()); -00142 } -00143 -00144 void Server::SendTo(userrec* Source, userrec* Dest, std::string s) -00145 { -00146 WriteTo(Source,Dest,"%s",s.c_str()); -00147 } -00148 -00149 void Server::SendChannel(userrec* User, chanrec* Channel, std::string s,bool IncludeSender) -00150 { -00151 if (IncludeSender) -00152 { -00153 WriteChannel(Channel,User,"%s",s.c_str()); -00154 } -00155 else +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 ChanExceptSender(Channel,User,"%s",s.c_str()); +00157 WriteChannel(Channel,User,"%s",s.c_str()); 00158 } -00159 } -00160 -00161 bool Server::CommonChannels(userrec* u1, userrec* u2) -00162 { -00163 return (common_channels(u1,u2) != 0); -00164 } -00165 -00166 void Server::SendCommon(userrec* User, std::string text,bool IncludeSender) -00167 { -00168 if (IncludeSender) -00169 { -00170 WriteCommon(User,"%s",text.c_str()); -00171 } -00172 else +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 WriteCommonExcept(User,"%s",text.c_str()); +00174 WriteCommon(User,"%s",text.c_str()); 00175 } -00176 } -00177 -00178 void Server::SendWallops(userrec* User, std::string text) -00179 { -00180 WriteWallOps(User,"%s",text.c_str()); -00181 } -00182 -00183 bool Server::IsNick(std::string nick) -00184 { -00185 return (isnick(nick.c_str()) != 0); -00186 } -00187 -00188 userrec* Server::FindNick(std::string nick) -00189 { -00190 return Find(nick); -00191 } -00192 -00193 chanrec* Server::FindChannel(std::string channel) -00194 { -00195 return FindChan(channel.c_str()); -00196 } -00197 -00198 std::string Server::ChanMode(userrec* User, chanrec* Chan) -00199 { -00200 return cmode(User,Chan); -00201 } -00202 -00203 std::string Server::GetServerName() -00204 { -00205 return getservername(); -00206 } -00207 -00208 std::string Server::GetNetworkName() -00209 { -00210 return getnetworkname(); -00211 } -00212 -00213 Admin Server::GetAdmin() -00214 { -00215 return Admin(getadminname(),getadminemail(),getadminnick()); -00216 } -00217 -00218 -00219 -00220 bool Server::AddExtendedMode(char modechar, int type, bool default_on, int params_when_on, int params_when_off) -00221 { -00222 } +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 +00222 00223 -00224 -00225 ConfigReader::ConfigReader() -00226 { -00227 fname = CONFIG_FILE; -00228 } -00229 -00230 -00231 ConfigReader::~ConfigReader() -00232 { -00233 } +00224 bool Server::AddExtendedMode(char modechar, int type, bool default_on, int params_when_on, int params_when_off) +00225 { +00226 } +00227 +00228 +00229 ConfigReader::ConfigReader() +00230 { +00231 fname = CONFIG_FILE; +00232 } +00233 00234 -00235 -00236 ConfigReader::ConfigReader(std::string filename) : fname(filename) { }; -00237 -00238 std::string ConfigReader::ReadValue(std::string tag, std::string name, int index) -00239 { -00240 char val[MAXBUF]; -00241 ReadConf(fname.c_str(),tag.c_str(),name.c_str(),index,val); -00242 return val; -00243 } -00244 -00245 -00246 int ConfigReader::Enumerate(std::string tag) -00247 { -00248 return EnumConf(fname.c_str(),tag.c_str()); -00249 } -00250 -00251 -00252 bool ConfigReader::Verify() -00253 { -00254 return true; -00255 } -00256 -00257 -00258 FileReader::FileReader(std::string filename) -00259 { -00260 file_cache c; -00261 readfile(c,filename.c_str()); -00262 this->fc = c; -00263 } -00264 -00265 FileReader::FileReader() -00266 { +00235 ConfigReader::~ConfigReader() +00236 { +00237 } +00238 +00239 +00240 ConfigReader::ConfigReader(std::string filename) : fname(filename) { }; +00241 +00242 std::string ConfigReader::ReadValue(std::string tag, std::string name, int index) +00243 { +00244 char val[MAXBUF]; +00245 ReadConf(fname.c_str(),tag.c_str(),name.c_str(),index,val); +00246 return val; +00247 } +00248 +00249 +00250 int ConfigReader::Enumerate(std::string tag) +00251 { +00252 return EnumConf(fname.c_str(),tag.c_str()); +00253 } +00254 +00255 +00256 bool ConfigReader::Verify() +00257 { +00258 return true; +00259 } +00260 +00261 +00262 FileReader::FileReader(std::string filename) +00263 { +00264 file_cache c; +00265 readfile(c,filename.c_str()); +00266 this->fc = c; 00267 } 00268 -00269 void FileReader::LoadFile(std::string filename) +00269 FileReader::FileReader() 00270 { -00271 file_cache c; -00272 readfile(c,filename.c_str()); -00273 this->fc = c; -00274 } -00275 -00276 -00277 FileReader::~FileReader() -00278 { -00279 } +00271 } +00272 +00273 void FileReader::LoadFile(std::string filename) +00274 { +00275 file_cache c; +00276 readfile(c,filename.c_str()); +00277 this->fc = c; +00278 } +00279 00280 -00281 bool FileReader::Exists() +00281 FileReader::~FileReader() 00282 { -00283 if (fc.size() == 0) -00284 { -00285 return(false); -00286 } -00287 else +00283 } +00284 +00285 bool FileReader::Exists() +00286 { +00287 if (fc.size() == 0) 00288 { -00289 return(true); +00289 return(false); 00290 } -00291 } -00292 -00293 std::string FileReader::GetLine(int x) -00294 { -00295 if ((x<0) || (x>fc.size())) -00296 return ""; -00297 return fc[x]; -00298 } -00299 -00300 int FileReader::FileSize() -00301 { -00302 return fc.size(); -00303 } -00304 -00305 -00306 std::vector<Module*> modules(255); -00307 std::vector<ircd_module*> factory(255); +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]; +00302 } +00303 +00304 int FileReader::FileSize() +00305 { +00306 return fc.size(); +00307 } 00308 -00309 int MODCOUNT = -1; -00310 -00311 -

    Generated on Fri Apr 2 13:37:27 2004 for InspIRCd by +00309 +00310 std::vector<Module*> modules(255); +00311 std::vector<ircd_module*> factory(255); +00312 +00313 int MODCOUNT = -1; +00314 +00315 +

    Generated on Fri Apr 2 14:46:05 2004 for InspIRCd by doxygen1.3-rc3
    diff --git a/docs/module-doc/modules_8cpp.html b/docs/module-doc/modules_8cpp.html index 88f136261..a02456293 100644 --- a/docs/module-doc/modules_8cpp.html +++ b/docs/module-doc/modules_8cpp.html @@ -426,10 +426,10 @@ Referenced by AddExtendedMo

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


    Generated on Fri Apr 2 13:37:31 2004 for InspIRCd by +
    Generated on Fri Apr 2 14:46:08 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 577ffd62a..f872917ec 100644 --- a/docs/module-doc/modules_8h-source.html +++ b/docs/module-doc/modules_8h-source.html @@ -42,127 +42,130 @@ 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 -00040 // class Version holds the version information of a Module, returned -00041 // by Module::GetVersion (thanks RD) -00042 -00047 class Version : public classbase -00048 { -00049 public: -00050 const int Major, Minor, Revision, Build; -00051 Version(int major, int minor, int revision, int build); -00052 }; -00053 -00059 class Admin : public classbase -00060 { -00061 public: -00062 const std::string Name, Email, Nick; -00063 Admin(std::string name, std::string email, std::string nick); -00064 }; -00065 -00071 class Module : public classbase -00072 { -00073 public: -00074 -00078 Module(); -00079 -00083 virtual ~Module(); -00084 -00089 virtual Version GetVersion(); -00090 -00094 virtual void OnUserConnect(userrec* user); -00095 -00099 virtual void OnUserQuit(userrec* user); -00100 -00105 virtual void OnUserJoin(userrec* user, chanrec* channel); -00106 -00111 virtual void OnUserPart(userrec* user, chanrec* channel); -00112 -00119 virtual void Module::OnPacketTransmit(char *p); -00120 -00128 virtual void Module::OnPacketReceive(char *p); -00129 -00135 virtual void OnRehash(); -00136 -00143 virtual void OnServerRaw(std::string &raw, bool inbound); -00144 -00153 virtual bool OnExtendedMode(userrec* user, chanrec* chan, char modechar, int type, bool mode_on, string_list &params); -00154 -00155 }; -00156 -00157 -00163 class Server : public classbase -00164 { -00165 public: -00169 Server(); -00173 virtual ~Server(); -00174 -00178 virtual void SendOpers(std::string s); -00183 virtual void Log(int level, std::string s); -00188 virtual void Send(int Socket, std::string s); -00193 virtual void SendServ(int Socket, std::string s); -00198 virtual void SendFrom(int Socket, userrec* User, std::string s); -00203 virtual void SendTo(userrec* Source, userrec* Dest, std::string s); -00210 virtual void SendChannel(userrec* User, chanrec* Channel, std::string s,bool IncludeSender); -00215 virtual bool CommonChannels(userrec* u1, userrec* u2); -00223 virtual void SendCommon(userrec* User, std::string text,bool IncludeSender); -00228 virtual void SendWallops(userrec* User, std::string text); -00229 -00233 virtual bool IsNick(std::string nick); -00237 virtual userrec* FindNick(std::string nick); -00241 virtual chanrec* FindChannel(std::string channel); -00246 virtual std::string ChanMode(userrec* User, chanrec* Chan); -00249 virtual std::string GetServerName(); -00252 virtual std::string GetNetworkName(); -00258 virtual Admin GetAdmin(); -00276 virtual bool AddExtendedMode(char modechar, int type, bool default_on, int params_when_on, int params_when_off); -00277 -00292 virtual void AddCommand(char* cmd, handlerfunc f, char flags, int minparams); -00293 -00294 }; -00295 -00302 class ConfigReader : public classbase -00303 { -00304 protected: -00307 std::string fname; -00308 public: -00313 ConfigReader(); // default constructor reads ircd.conf -00317 ConfigReader(std::string filename); // read a module-specific config -00321 ~ConfigReader(); -00326 std::string ReadValue(std::string tag, std::string name, int index); -00333 int Enumerate(std::string tag); -00337 bool Verify(); -00338 }; -00339 -00340 -00341 -00347 class FileReader : public classbase -00348 { -00349 file_cache fc; -00350 public: -00355 FileReader(); -00361 FileReader(std::string filename); -00365 ~FileReader(); -00371 void LoadFile(std::string filename); -00376 bool Exists(); -00377 std::string GetLine(int x); -00383 int FileSize(); -00384 }; -00385 -00386 -00393 class ModuleFactory : public classbase -00394 { -00395 public: -00396 ModuleFactory() { } -00397 virtual ~ModuleFactory() { } -00402 virtual Module * CreateModule() = 0; -00403 }; -00404 +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) +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 typedef DLLFactory<ModuleFactory> ircd_module; -00407 -00408 #endif -

    Generated on Fri Apr 2 13:37:27 2004 for InspIRCd by +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 doxygen1.3-rc3
    diff --git a/docs/module-doc/modules_8h.html b/docs/module-doc/modules_8h.html index 2ba5b9dad..95111c43d 100644 --- a/docs/module-doc/modules_8h.html +++ b/docs/module-doc/modules_8h.html @@ -60,6 +60,7 @@ This graph shows which files directly or indirectly include this file:

    typedef DLLFactory< ModuleFactoryircd_module

    Functions

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

    Define Documentation

    @@ -304,7 +305,7 @@ Low level definition of a FileReader Definition at line 29 of file modules.h.

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

    @@ -328,7 +329,7 @@ Referenced by FileReader::F

    -Definition at line 406 of file modules.h. +Definition at line 426 of file modules.h.

    @@ -408,7 +409,53 @@ Definition at line 30 of Referenced by Server::AddCommand(). -


    Generated on Fri Apr 2 13:37:31 2004 for InspIRCd by +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + +
    void server_mode char **   parameters,
    int   pcnt,
    userrec  user
    +
    + + + + + +
    +   + + +

    + +

    +Referenced by Server::SendMode().

    +


    Generated on Fri Apr 2 14:46:08 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 e36a1e279..e44eb231c 100644 --- a/docs/module-doc/servers_8cpp-source.html +++ b/docs/module-doc/servers_8cpp-source.html @@ -46,7 +46,7 @@ 00038 fd = 0; 00039 } 00040 -

    Generated on Fri Apr 2 13:37:27 2004 for InspIRCd by +

    Generated on Fri Apr 2 14:46:05 2004 for InspIRCd by doxygen1.3-rc3
    diff --git a/docs/module-doc/servers_8cpp.html b/docs/module-doc/servers_8cpp.html index df236e2ef..bc54fba26 100644 --- a/docs/module-doc/servers_8cpp.html +++ b/docs/module-doc/servers_8cpp.html @@ -23,7 +23,7 @@ Include dependency graph for servers.cpp:

    Go to the source code of this file.
    -
    Generated on Fri Apr 2 13:37:31 2004 for InspIRCd by +
    Generated on Fri Apr 2 14:46:09 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 2074436cf..07ed40b5c 100644 --- a/docs/module-doc/servers_8h-source.html +++ b/docs/module-doc/servers_8h-source.html @@ -44,7 +44,7 @@ 00060 00061 #endif 00062 -

    Generated on Fri Apr 2 13:37:27 2004 for InspIRCd by +

    Generated on Fri Apr 2 14:46:05 2004 for InspIRCd by doxygen1.3-rc3
    diff --git a/docs/module-doc/servers_8h.html b/docs/module-doc/servers_8h.html index 7d7049f95..7abb78c1e 100644 --- a/docs/module-doc/servers_8h.html +++ b/docs/module-doc/servers_8h.html @@ -82,7 +82,7 @@ Definition at line 14 of Definition at line 15 of file servers.h. -
    Generated on Fri Apr 2 13:37:32 2004 for InspIRCd by +
    Generated on Fri Apr 2 14:46:09 2004 for InspIRCd by doxygen1.3-rc3
    diff --git a/docs/module-doc/users_8cpp-source.html b/docs/module-doc/users_8cpp-source.html index fa84b42c1..2f77486da 100644 --- a/docs/module-doc/users_8cpp-source.html +++ b/docs/module-doc/users_8cpp-source.html @@ -88,7 +88,7 @@ 00080 } 00081 } 00082 } -

    Generated on Fri Apr 2 13:37:27 2004 for InspIRCd by +

    Generated on Fri Apr 2 14:46:05 2004 for InspIRCd by doxygen1.3-rc3
    diff --git a/docs/module-doc/users_8cpp.html b/docs/module-doc/users_8cpp.html index 54a8431a1..096e34fe2 100644 --- a/docs/module-doc/users_8cpp.html +++ b/docs/module-doc/users_8cpp.html @@ -25,7 +25,7 @@ Include dependency graph for users.cpp:

    Go to the source code of this file.
    -
    Generated on Fri Apr 2 13:37:33 2004 for InspIRCd by +
    Generated on Fri Apr 2 14:46:10 2004 for InspIRCd by doxygen1.3-rc3
    diff --git a/docs/module-doc/users_8h-source.html b/docs/module-doc/users_8h-source.html index 3934902c8..abea07d3a 100644 --- a/docs/module-doc/users_8h-source.html +++ b/docs/module-doc/users_8h-source.html @@ -92,7 +92,7 @@ 00140 00141 00142 #endif -

    Generated on Fri Apr 2 13:37:27 2004 for InspIRCd by +

    Generated on Fri Apr 2 14:46:05 2004 for InspIRCd by doxygen1.3-rc3
    diff --git a/docs/module-doc/users_8h.html b/docs/module-doc/users_8h.html index 183608ec4..f833fa2f1 100644 --- a/docs/module-doc/users_8h.html +++ b/docs/module-doc/users_8h.html @@ -245,7 +245,7 @@ Holds a complete list of all channels to which a user has been invited and has n Definition at line 44 of file users.h. -
    Generated on Fri Apr 2 13:37:33 2004 for InspIRCd by +
    Generated on Fri Apr 2 14:46:10 2004 for InspIRCd by doxygen1.3-rc3
    -- cgit v1.2.3