From cc61d20faae9a29422d34a367db9ac54d8de3d0e Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 23 Jan 2003 20:38:00 +0000 Subject: Updated documentation scripts git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@143 e03df62e-2008-0410-955e-edbf42e46eb7 --- docs/module-doc/annotated.html | 2 +- docs/module-doc/channels_8h-source.html | 244 ++++++------- docs/module-doc/channels_8h.html | 18 +- docs/module-doc/classAdmin-members.html | 2 +- docs/module-doc/classAdmin.html | 14 +- docs/module-doc/classBanItem-members.html | 2 +- docs/module-doc/classBanItem.html | 4 +- docs/module-doc/classConfigReader-members.html | 2 +- docs/module-doc/classConfigReader.html | 62 ++-- docs/module-doc/classConnectClass-members.html | 2 +- docs/module-doc/classConnectClass.html | 10 +- docs/module-doc/classExemptItem-members.html | 2 +- docs/module-doc/classExemptItem.html | 4 +- docs/module-doc/classFileReader-members.html | 2 +- docs/module-doc/classFileReader.html | 72 ++-- docs/module-doc/classHostItem-members.html | 2 +- docs/module-doc/classHostItem.html | 18 +- docs/module-doc/classInviteItem-members.html | 2 +- docs/module-doc/classInviteItem.html | 4 +- docs/module-doc/classInvited-members.html | 2 +- docs/module-doc/classInvited.html | 8 +- docs/module-doc/classModule-members.html | 2 +- docs/module-doc/classModule.html | 32 +- docs/module-doc/classModuleFactory-members.html | 2 +- docs/module-doc/classModuleFactory.html | 12 +- docs/module-doc/classServer-members.html | 2 +- docs/module-doc/classServer.html | 186 +++++----- docs/module-doc/classVersion-members.html | 2 +- docs/module-doc/classVersion.html | 16 +- docs/module-doc/classchanrec-members.html | 2 +- docs/module-doc/classchanrec.html | 60 ++-- docs/module-doc/classes.html | 2 +- docs/module-doc/classucrec-members.html | 2 +- docs/module-doc/classucrec.html | 18 +- docs/module-doc/classuserrec-members.html | 2 +- docs/module-doc/classuserrec.html | 226 ++++++------ docs/module-doc/files.html | 2 +- docs/module-doc/functions.html | 2 +- docs/module-doc/globals.html | 2 +- docs/module-doc/hierarchy.html | 2 +- docs/module-doc/main.html | 2 +- docs/module-doc/modules_8cpp-source.html | 460 ++++++++++++------------ docs/module-doc/modules_8cpp.html | 2 +- docs/module-doc/modules_8h-source.html | 285 +++++++-------- docs/module-doc/modules_8h.html | 8 +- docs/module-doc/users_8cpp-source.html | 180 +++++----- docs/module-doc/users_8cpp.html | 2 +- docs/module-doc/users_8h-source.html | 266 +++++++------- docs/module-doc/users_8h.html | 18 +- 49 files changed, 1139 insertions(+), 1136 deletions(-) (limited to 'docs') diff --git a/docs/module-doc/annotated.html b/docs/module-doc/annotated.html index 5e88bcf06..d4f18b45f 100644 --- a/docs/module-doc/annotated.html +++ b/docs/module-doc/annotated.html @@ -24,7 +24,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 Wed Jan 22 20:56:47 2003 for InspIRCd by +
Generated on Thu Jan 23 20:28:58 2003 for InspIRCd by doxygen1.3-rc2
diff --git a/docs/module-doc/channels_8h-source.html b/docs/module-doc/channels_8h-source.html index ba7592c81..e7ec3e226 100644 --- a/docs/module-doc/channels_8h-source.html +++ b/docs/module-doc/channels_8h-source.html @@ -9,136 +9,136 @@

channels.h

Go to the documentation of this file.
00001 /*
 00002 
 00003 $Log$
-00003 Revision 1.1  2003/01/23 19:45:57  brain
-00003 Initial revision
-00003 
-00003 Revision 1.6  2003/01/22 20:59:12  brain
-00003 Added FileReader class documentation
+00003 Revision 1.2  2003/01/23 20:38:00  brain
+00003 Updated documentation scripts
 00003 
-00004 Revision 1.7  2003/01/22 00:44:26  brain
-00005 Added documentation comments
+00004 Revision 1.1.1.1  2003/01/23 19:45:58  brain
+00005 InspIRCd second source tree
 00006 
-00007 Revision 1.6  2003/01/21 21:11:17  brain
-00008 Added documentation
+00007 Revision 1.7  2003/01/22 00:44:26  brain
+00008 Added documentation comments
 00009 
-00010 Revision 1.5  2003/01/16 20:11:55  brain
-00011 fixed some ugly pointer bugs (thanks dblack and a|KK|y!)
+00010 Revision 1.6  2003/01/21 21:11:17  brain
+00011 Added documentation
 00012 
-00013 Revision 1.4  2003/01/15 22:47:44  brain
-00014 Changed user and channel structs to classes (finally)
+00013 Revision 1.5  2003/01/16 20:11:55  brain
+00014 fixed some ugly pointer bugs (thanks dblack and a|KK|y!)
 00015 
-00016    
-00017 */
-00018 
-00019 #include "inspircd_config.h"
-00020 #include <time.h>
-00021 #include <vector>
-00022 
-00023 #ifndef __CHANNELS_H__
-00024 #define __CHANNELS_H__
-00025 
-00029 class HostItem
-00030 {
-00031  public:
-00032         time_t set_time;
-00033         char set_by[NICKMAX];
-00034         char data[MAXBUF];
-00035 
-00036         HostItem() { /* stub */ }
-00037         virtual ~HostItem() { /* stub */ }
-00038 };
-00039 
-00040 // banlist is inherited from HostList mainly for readability
-00041 // reasons only
+00016 Revision 1.4  2003/01/15 22:47:44  brain
+00017 Changed user and channel structs to classes (finally)
+00018 
+00019    
+00020 */
+00021 
+00022 #include "inspircd_config.h"
+00023 #include <time.h>
+00024 #include <vector>
+00025 
+00026 #ifndef __CHANNELS_H__
+00027 #define __CHANNELS_H__
+00028 
+00032 class HostItem
+00033 {
+00034  public:
+00035         time_t set_time;
+00036         char set_by[NICKMAX];
+00037         char data[MAXBUF];
+00038 
+00039         HostItem() { /* stub */ }
+00040         virtual ~HostItem() { /* stub */ }
+00041 };
 00042 
-00045 class BanItem : public HostItem
-00046 {
-00047 };
-00048 
-00049 // same with this...
-00050 
-00053 class ExemptItem : public HostItem
-00054 {
-00055 };
-00056 
-00057 // and this...
-00058 
-00061 class InviteItem : public HostItem
-00062 {
-00063 };
-00064 
-00065 
-00068 typedef vector<BanItem>         BanList;
-00069 
-00072 typedef vector<ExemptItem>      ExemptList;
-00073 
-00076 typedef vector<InviteItem>      InviteList;
-00077 
-00082 class chanrec
-00083 {
-00084  public:
-00087         char name[CHANMAX]; /* channel name */
-00091         char custom_modes[MAXMODES];     /* modes handled by modules */
-00095         char topic[MAXBUF];
-00098         time_t created;
-00102         time_t topicset;
-00106         char setby[NICKMAX];
-00107 
-00111         long limit;
-00112         
-00116         char key[32];
-00117         
-00120         short int topiclock;
-00121         
-00124         short int noexternal;
-00125         
-00128         short int inviteonly;
-00129         
-00132         short int moderated;
-00133         
-00137         short int secret;
-00138         
-00142         short int c_private;
-00143         
-00146         BanList bans;
-00147 
-00150         chanrec()
-00151         {
-00152                 strcpy(name,"");
-00153                 strcpy(custom_modes,"");
-00154                 strcpy(topic,"");
-00155                 strcpy(setby,"");
-00156                 strcpy(key,"");
-00157                 created = topicset = limit = 0;
-00158                 topiclock = noexternal = inviteonly = moderated = secret = c_private = false;
-00159         }
-00160 
-00161         virtual ~chanrec() { /* stub */ }
-00162 };
+00043 // banlist is inherited from HostList mainly for readability
+00044 // reasons only
+00045 
+00048 class BanItem : public HostItem
+00049 {
+00050 };
+00051 
+00052 // same with this...
+00053 
+00056 class ExemptItem : public HostItem
+00057 {
+00058 };
+00059 
+00060 // and this...
+00061 
+00064 class InviteItem : public HostItem
+00065 {
+00066 };
+00067 
+00068 
+00071 typedef vector<BanItem>         BanList;
+00072 
+00075 typedef vector<ExemptItem>      ExemptList;
+00076 
+00079 typedef vector<InviteItem>      InviteList;
+00080 
+00085 class chanrec
+00086 {
+00087  public:
+00090         char name[CHANMAX]; /* channel name */
+00094         char custom_modes[MAXMODES];     /* modes handled by modules */
+00098         char topic[MAXBUF];
+00101         time_t created;
+00105         time_t topicset;
+00109         char setby[NICKMAX];
+00110 
+00114         long limit;
+00115         
+00119         char key[32];
+00120         
+00123         short int topiclock;
+00124         
+00127         short int noexternal;
+00128         
+00131         short int inviteonly;
+00132         
+00135         short int moderated;
+00136         
+00140         short int secret;
+00141         
+00145         short int c_private;
+00146         
+00149         BanList bans;
+00150 
+00153         chanrec()
+00154         {
+00155                 strcpy(name,"");
+00156                 strcpy(custom_modes,"");
+00157                 strcpy(topic,"");
+00158                 strcpy(setby,"");
+00159                 strcpy(key,"");
+00160                 created = topicset = limit = 0;
+00161                 topiclock = noexternal = inviteonly = moderated = secret = c_private = false;
+00162         }
 00163 
-00164 /* used to hold a channel and a users modes on that channel, e.g. +v, +h, +o
-00165  * needs to come AFTER struct chanrec */
+00164         virtual ~chanrec() { /* stub */ }
+00165 };
 00166 
-00167 #define UCMODE_OP      1
-00168 #define UCMODE_VOICE   2
-00169 #define UCMODE_HOP     4
-00170 #define UCMODE_PROTECT 8
-00171 #define UCMODE_FOUNDER 16
-00172  
-00178 class ucrec
-00179 {
-00180  public:
-00184         long uc_modes;
-00185         
-00189         chanrec *channel;
-00190 
-00191         ucrec() { /* stub */ }
-00192         virtual ~ucrec() { /* stub */ }
-00193 };
-00194 
-00195 #endif
-00196 
-

Generated on Wed Jan 22 20:56:46 2003 for InspIRCd by +00167 /* used to hold a channel and a users modes on that channel, e.g. +v, +h, +o +00168 * needs to come AFTER struct chanrec */ +00169 +00170 #define UCMODE_OP 1 +00171 #define UCMODE_VOICE 2 +00172 #define UCMODE_HOP 4 +00173 #define UCMODE_PROTECT 8 +00174 #define UCMODE_FOUNDER 16 +00175 +00181 class ucrec +00182 { +00183 public: +00187 long uc_modes; +00188 +00192 chanrec *channel; +00193 +00194 ucrec() { /* stub */ } +00195 virtual ~ucrec() { /* stub */ } +00196 }; +00197 +00198 #endif +00199 +
Generated on Thu Jan 23 20:28:57 2003 for InspIRCd by doxygen1.3-rc2
diff --git a/docs/module-doc/channels_8h.html b/docs/module-doc/channels_8h.html index 1eadc5857..63eca174c 100644 --- a/docs/module-doc/channels_8h.html +++ b/docs/module-doc/channels_8h.html @@ -62,7 +62,7 @@

-Definition at line 171 of file channels.h. +Definition at line 174 of file channels.h.

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

-Definition at line 169 of file channels.h. +Definition at line 172 of file channels.h.

@@ -110,7 +110,7 @@ Definition at line 169 o

-Definition at line 167 of file channels.h. +Definition at line 170 of file channels.h.

@@ -134,7 +134,7 @@ Definition at line 167 o

-Definition at line 170 of file channels.h. +Definition at line 173 of file channels.h.

@@ -158,7 +158,7 @@ Definition at line 170 o

-Definition at line 168 of file channels.h. +Definition at line 171 of file channels.h.


Typedef Documentation

@@ -185,7 +185,7 @@ Holds a complete ban list.

-Definition at line 68 of file channels.h. +Definition at line 71 of file channels.h.

@@ -211,7 +211,7 @@ Holds a complete exempt list.

-Definition at line 72 of file channels.h. +Definition at line 75 of file channels.h.

@@ -237,10 +237,10 @@ Holds a complete invite list.

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


Generated on Wed Jan 22 20:56:47 2003 for InspIRCd by +
Generated on Thu Jan 23 20:28:58 2003 for InspIRCd by doxygen1.3-rc2
diff --git a/docs/module-doc/classAdmin-members.html b/docs/module-doc/classAdmin-members.html index 39b406601..c83a2591b 100644 --- a/docs/module-doc/classAdmin-members.html +++ b/docs/module-doc/classAdmin-members.html @@ -11,7 +11,7 @@ EmailAdmin NameAdmin NickAdmin -
Generated on Wed Jan 22 20:56:47 2003 for InspIRCd by +
Generated on Thu Jan 23 20:28:58 2003 for InspIRCd by doxygen1.3-rc2
diff --git a/docs/module-doc/classAdmin.html b/docs/module-doc/classAdmin.html index 663193311..bd8b5fe31 100644 --- a/docs/module-doc/classAdmin.html +++ b/docs/module-doc/classAdmin.html @@ -27,7 +27,7 @@ It is constructed by class Server, and

-Definition at line 67 of file modules.h.


Constructor & Destructor Documentation

+Definition at line 73 of file modules.h.

Constructor & Destructor Documentation

@@ -71,9 +71,9 @@ Definition at line 67 of

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

-

00033 : Name(name), Email(email), Nick(nick) { };
+
00036 : Name(name), Email(email), Nick(nick) { };
 
@@ -99,7 +99,7 @@ Definition at line 33 o

-Definition at line 70 of file modules.h. +Definition at line 76 of file modules.h.

@@ -123,7 +123,7 @@ Definition at line 70 of

-Definition at line 70 of file modules.h. +Definition at line 76 of file modules.h.

@@ -147,12 +147,12 @@ Definition at line 70 of

-Definition at line 70 of file modules.h. +Definition at line 76 of file modules.h.


The documentation for this class was generated from the following files: -
Generated on Wed Jan 22 20:56:47 2003 for InspIRCd by +
Generated on Thu Jan 23 20:28:58 2003 for InspIRCd by doxygen1.3-rc2
diff --git a/docs/module-doc/classBanItem-members.html b/docs/module-doc/classBanItem-members.html index 11295cdc7..a78f2f8f7 100644 --- a/docs/module-doc/classBanItem-members.html +++ b/docs/module-doc/classBanItem-members.html @@ -12,7 +12,7 @@ set_byHostItem set_timeHostItem ~HostItem()HostItem [inline, virtual] -
Generated on Wed Jan 22 20:56:47 2003 for InspIRCd by +
Generated on Thu Jan 23 20:28:58 2003 for InspIRCd by doxygen1.3-rc2
diff --git a/docs/module-doc/classBanItem.html b/docs/module-doc/classBanItem.html index 194010968..00ab8839e 100644 --- a/docs/module-doc/classBanItem.html +++ b/docs/module-doc/classBanItem.html @@ -24,9 +24,9 @@ A subclass of HostItem designed to h

-Definition at line 45 of file channels.h.


The documentation for this class was generated from the following file:
    +Definition at line 48 of file channels.h.
    The documentation for this class was generated from the following file: -
    Generated on Wed Jan 22 20:56:47 2003 for InspIRCd by +
    Generated on Thu Jan 23 20:28:58 2003 for InspIRCd by doxygen1.3-rc2
    diff --git a/docs/module-doc/classConfigReader-members.html b/docs/module-doc/classConfigReader-members.html index d27bbd43e..1559b9b12 100644 --- a/docs/module-doc/classConfigReader-members.html +++ b/docs/module-doc/classConfigReader-members.html @@ -14,7 +14,7 @@ ReadValue(string tag, string name, int index)ConfigReader Verify()ConfigReader ~ConfigReader()ConfigReader -
    Generated on Wed Jan 22 20:56:47 2003 for InspIRCd by +
    Generated on Thu Jan 23 20:28:58 2003 for InspIRCd by doxygen1.3-rc2
    diff --git a/docs/module-doc/classConfigReader.html b/docs/module-doc/classConfigReader.html index f0221a1a1..b0f5848a6 100644 --- a/docs/module-doc/classConfigReader.html +++ b/docs/module-doc/classConfigReader.html @@ -37,7 +37,7 @@ It may either be instantiated with one parameter or none. Constructing the class

    -Definition at line 226 of file modules.h.


    Constructor & Destructor Documentation

    +Definition at line 232 of file modules.h.

    Constructor & Destructor Documentation

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

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

    -Definition at line 161 of file modules.cpp. +Definition at line 164 of file modules.cpp.

    -References fname. +References fname.

    -

    00162 {
    -00163         fname = CONFIG_FILE;
    -00164 }
    +
    00165 {
    +00166         fname = CONFIG_FILE;
    +00167 }
     
    @@ -107,9 +107,9 @@ Overloaded constructor.

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

    -Definition at line 172 of file modules.cpp. +Definition at line 175 of file modules.cpp.

    -

    00172 : fname(filename) { };
    +
    00175 : fname(filename) { };
     
    @@ -142,10 +142,10 @@ Default destructor.

    This method destroys the ConfigReader class.

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

    -

    00168 {
    -00169 }
    +
    00171 {
    +00172 }
     
    @@ -180,13 +180,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 183 of file modules.cpp. +Definition at line 186 of file modules.cpp.

    -References fname. +References fname.

    -

    00184 {
    -00185         return EnumConf(fname.c_str(),tag.c_str());
    -00186 }
    +
    00187 {
    +00188         return EnumConf(fname.c_str(),tag.c_str());
    +00189 }
     
    @@ -235,16 +235,16 @@ 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 174 of file modules.cpp. +Definition at line 177 of file modules.cpp.

    -References fname. +References fname.

    -

    00175 {
    -00176         char val[MAXBUF];
    -00177         ReadConf(fname.c_str(),tag.c_str(),name.c_str(),index,val);
    -00178         string s = val;
    -00179         return s;
    -00180 }
    +
    00178 {
    +00179         char val[MAXBUF];
    +00180         ReadConf(fname.c_str(),tag.c_str(),name.c_str(),index,val);
    +00181         string s = val;
    +00182         return s;
    +00183 }
     
    @@ -277,11 +277,11 @@ Returns true if a config file is valid.

    This method is unimplemented and will always return true.

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

    -

    00190 {
    -00191         return true;
    -00192 }
    +
    00193 {
    +00194         return true;
    +00195 }
     
    @@ -309,14 +309,14 @@ The filename of the configuration file, as set by the constructor.

    -Definition at line 231 of file modules.h. +Definition at line 237 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 Wed Jan 22 20:56:47 2003 for InspIRCd by +
    Generated on Thu Jan 23 20:28:58 2003 for InspIRCd by doxygen1.3-rc2
    diff --git a/docs/module-doc/classConnectClass-members.html b/docs/module-doc/classConnectClass-members.html index f8b7a913a..94847bf83 100644 --- a/docs/module-doc/classConnectClass-members.html +++ b/docs/module-doc/classConnectClass-members.html @@ -10,7 +10,7 @@ hostConnectClass passConnectClass typeConnectClass -
    Generated on Wed Jan 22 20:56:47 2003 for InspIRCd by +
    Generated on Thu Jan 23 20:28:59 2003 for InspIRCd by doxygen1.3-rc2
    diff --git a/docs/module-doc/classConnectClass.html b/docs/module-doc/classConnectClass.html index 7fd64062e..2c4690186 100644 --- a/docs/module-doc/classConnectClass.html +++ b/docs/module-doc/classConnectClass.html @@ -23,7 +23,7 @@ Holds information relevent to <connect allow> and <connect deny> tag

    -Definition at line 56 of file users.h.


    Member Data Documentation

    +Definition at line 59 of file users.h.

    Member Data Documentation

    @@ -45,7 +45,7 @@ Definition at line 56 of fi

    -Definition at line 60 of file users.h. +Definition at line 63 of file users.h.

    @@ -69,7 +69,7 @@ Definition at line 60 of fi

    -Definition at line 61 of file users.h. +Definition at line 64 of file users.h.

    @@ -93,12 +93,12 @@ Definition at line 61 of fi

    -Definition at line 59 of file users.h. +Definition at line 62 of file users.h.


    The documentation for this class was generated from the following file: -
    Generated on Wed Jan 22 20:56:47 2003 for InspIRCd by +
    Generated on Thu Jan 23 20:28:58 2003 for InspIRCd by doxygen1.3-rc2
    diff --git a/docs/module-doc/classExemptItem-members.html b/docs/module-doc/classExemptItem-members.html index 37ac533e3..31ca9025c 100644 --- a/docs/module-doc/classExemptItem-members.html +++ b/docs/module-doc/classExemptItem-members.html @@ -12,7 +12,7 @@ set_byHostItem set_timeHostItem ~HostItem()HostItem [inline, virtual] -
    Generated on Wed Jan 22 20:56:48 2003 for InspIRCd by +
    Generated on Thu Jan 23 20:28:59 2003 for InspIRCd by doxygen1.3-rc2
    diff --git a/docs/module-doc/classExemptItem.html b/docs/module-doc/classExemptItem.html index de865231d..cb674c035 100644 --- a/docs/module-doc/classExemptItem.html +++ b/docs/module-doc/classExemptItem.html @@ -24,9 +24,9 @@ A subclass of HostItem designed to h

    -Definition at line 53 of file channels.h.


    The documentation for this class was generated from the following file:
      +Definition at line 56 of file channels.h.
      The documentation for this class was generated from the following file: -
      Generated on Wed Jan 22 20:56:48 2003 for InspIRCd by +
      Generated on Thu Jan 23 20:28:59 2003 for InspIRCd by doxygen1.3-rc2
      diff --git a/docs/module-doc/classFileReader-members.html b/docs/module-doc/classFileReader-members.html index e61cf78d8..74cbb18fc 100644 --- a/docs/module-doc/classFileReader-members.html +++ b/docs/module-doc/classFileReader-members.html @@ -14,7 +14,7 @@ GetLine(int x)FileReader LoadFile(string filename)FileReader ~FileReader()FileReader -
      Generated on Wed Jan 22 20:56:48 2003 for InspIRCd by +
      Generated on Thu Jan 23 20:28:59 2003 for InspIRCd by doxygen1.3-rc2
      diff --git a/docs/module-doc/classFileReader.html b/docs/module-doc/classFileReader.html index ee84a6d74..9b2a4f528 100644 --- a/docs/module-doc/classFileReader.html +++ b/docs/module-doc/classFileReader.html @@ -36,7 +36,7 @@ This class contains methods for read-only manipulation of a text file in memory.

      -Definition at line 271 of file modules.h.


      Constructor & Destructor Documentation

      +Definition at line 277 of file modules.h.

      Constructor & Destructor Documentation

      @@ -66,10 +66,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 202 of file modules.cpp. +Definition at line 205 of file modules.cpp.

      -

      00203 {
      -00204 }
      +
      00206 {
      +00207 }
       
      @@ -103,15 +103,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 195 of file modules.cpp. +Definition at line 198 of file modules.cpp.

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

      -

      00196 {
      -00197         file_cache c;
      -00198         readfile(c,filename.c_str());
      -00199         this->fc = c;
      -00200 }
      +
      00199 {
      +00200         file_cache c;
      +00201         readfile(c,filename.c_str());
      +00202         this->fc = c;
      +00203 }
       
      @@ -144,10 +144,10 @@ Default destructor.

      This deletes the memory allocated to the file.

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

      -

      00214 {
      -00215 }
      +
      00217 {
      +00218 }
       
      @@ -181,13 +181,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 224 of file modules.cpp. +Definition at line 227 of file modules.cpp.

      -References fc. +References fc.

      -

      00225 {
      -00226         return fc.size();
      -00227 }
      +
      00228 {
      +00229         return fc.size();
      +00230 }
       
      @@ -221,15 +221,15 @@ 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 217 of file modules.cpp. +Definition at line 220 of file modules.cpp.

      -References fc. +References fc.

      -

      00218 {
      -00219         if ((x<0) || (x>fc.size()))
      -00220                 return "";
      -00221         return fc[x];
      -00222 }
      +
      00221 {
      +00222         if ((x<0) || (x>fc.size()))
      +00223                 return "";
      +00224         return fc[x];
      +00225 }
       
      @@ -263,15 +263,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 206 of file modules.cpp. +Definition at line 209 of file modules.cpp.

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

      -

      00207 {
      -00208         file_cache c;
      -00209         readfile(c,filename.c_str());
      -00210         this->fc = c;
      -00211 }
      +
      00210 {
      +00211         file_cache c;
      +00212         readfile(c,filename.c_str());
      +00213         this->fc = c;
      +00214 }
       
      @@ -297,14 +297,14 @@ References fc, and

      -Definition at line 273 of file modules.h. +Definition at line 279 of file modules.h.

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


      The documentation for this class was generated from the following files: -
      Generated on Wed Jan 22 20:56:48 2003 for InspIRCd by +
      Generated on Thu Jan 23 20:28:59 2003 for InspIRCd by doxygen1.3-rc2
      diff --git a/docs/module-doc/classHostItem-members.html b/docs/module-doc/classHostItem-members.html index bf8242760..d7f393919 100644 --- a/docs/module-doc/classHostItem-members.html +++ b/docs/module-doc/classHostItem-members.html @@ -12,7 +12,7 @@ set_byHostItem set_timeHostItem ~HostItem()HostItem [inline, virtual] -
      Generated on Wed Jan 22 20:56:48 2003 for InspIRCd by +
      Generated on Thu Jan 23 20:28:59 2003 for InspIRCd by doxygen1.3-rc2
      diff --git a/docs/module-doc/classHostItem.html b/docs/module-doc/classHostItem.html index de0e216f6..101dfcbd9 100644 --- a/docs/module-doc/classHostItem.html +++ b/docs/module-doc/classHostItem.html @@ -35,7 +35,7 @@ This class contains a single element in a channel list, such as a banlist.

      -Definition at line 29 of file channels.h.


      Constructor & Destructor Documentation

      +Definition at line 32 of file channels.h.

      Constructor & Destructor Documentation

      @@ -63,9 +63,9 @@ Definition at line 29 of

      -Definition at line 36 of file channels.h. +Definition at line 39 of file channels.h.

      -

      00036 { /* stub */ }
      +
      00039 { /* stub */ }
       
      @@ -96,9 +96,9 @@ Definition at line 36 of

      -Definition at line 37 of file channels.h. +Definition at line 40 of file channels.h.

      -

      00037 { /* stub */ }
      +
      00040 { /* stub */ }
       
      @@ -124,7 +124,7 @@ Definition at line 37 of

      -Definition at line 34 of file channels.h. +Definition at line 37 of file channels.h.

      @@ -148,7 +148,7 @@ Definition at line 34 of

      -Definition at line 33 of file channels.h. +Definition at line 36 of file channels.h.

      @@ -172,12 +172,12 @@ Definition at line 33 of

      -Definition at line 32 of file channels.h. +Definition at line 35 of file channels.h.


      The documentation for this class was generated from the following file: -
      Generated on Wed Jan 22 20:56:48 2003 for InspIRCd by +
      Generated on Thu Jan 23 20:28:59 2003 for InspIRCd by doxygen1.3-rc2
      diff --git a/docs/module-doc/classInviteItem-members.html b/docs/module-doc/classInviteItem-members.html index a65d27fc8..059800c47 100644 --- a/docs/module-doc/classInviteItem-members.html +++ b/docs/module-doc/classInviteItem-members.html @@ -12,7 +12,7 @@ set_byHostItem set_timeHostItem ~HostItem()HostItem [inline, virtual] -
      Generated on Wed Jan 22 20:56:48 2003 for InspIRCd by +
      Generated on Thu Jan 23 20:28:59 2003 for InspIRCd by doxygen1.3-rc2
      diff --git a/docs/module-doc/classInviteItem.html b/docs/module-doc/classInviteItem.html index 80336bca9..378a39e1c 100644 --- a/docs/module-doc/classInviteItem.html +++ b/docs/module-doc/classInviteItem.html @@ -24,9 +24,9 @@ A subclass of HostItem designed to h

      -Definition at line 61 of file channels.h.


      The documentation for this class was generated from the following file:
        +Definition at line 64 of file channels.h.
        The documentation for this class was generated from the following file: -
        Generated on Wed Jan 22 20:56:48 2003 for InspIRCd by +
        Generated on Thu Jan 23 20:28:59 2003 for InspIRCd by doxygen1.3-rc2
        diff --git a/docs/module-doc/classInvited-members.html b/docs/module-doc/classInvited-members.html index bd4003b69..3c6933fd6 100644 --- a/docs/module-doc/classInvited-members.html +++ b/docs/module-doc/classInvited-members.html @@ -8,7 +8,7 @@ Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

        Invited Member List

        This is the complete list of members for Invited, including all inherited members. -
        channelInvited

        Generated on Wed Jan 22 20:56:48 2003 for InspIRCd by +
        Generated on Thu Jan 23 20:28:59 2003 for InspIRCd by doxygen1.3-rc2
        diff --git a/docs/module-doc/classInvited.html b/docs/module-doc/classInvited.html index c6d945068..e72b2ffae 100644 --- a/docs/module-doc/classInvited.html +++ b/docs/module-doc/classInvited.html @@ -21,7 +21,7 @@ Holds a channel name to which a user has been invited.

        -Definition at line 47 of file users.h.


        Member Data Documentation

        +Definition at line 50 of file users.h.

        Member Data Documentation

        @@ -43,14 +43,14 @@ Definition at line 47 of fi

        -Definition at line 50 of file users.h. +Definition at line 53 of file users.h.

        -Referenced by userrec::InviteTo(). +Referenced by userrec::InviteTo().


        The documentation for this class was generated from the following file: -
        Generated on Wed Jan 22 20:56:48 2003 for InspIRCd by +
        Generated on Thu Jan 23 20:28:59 2003 for InspIRCd by doxygen1.3-rc2
        diff --git a/docs/module-doc/classModule-members.html b/docs/module-doc/classModule-members.html index 3a1f87ed4..43e881053 100644 --- a/docs/module-doc/classModule-members.html +++ b/docs/module-doc/classModule-members.html @@ -14,7 +14,7 @@ OnUserPart(userrec *user, chanrec *channel)Module [virtual] OnUserQuit(userrec *user)Module [virtual] ~Module()Module [virtual] -
        Generated on Wed Jan 22 20:56:48 2003 for InspIRCd by +
        Generated on Thu Jan 23 20:28:59 2003 for InspIRCd by doxygen1.3-rc2
        diff --git a/docs/module-doc/classModule.html b/docs/module-doc/classModule.html index 519fbeb27..77f703241 100644 --- a/docs/module-doc/classModule.html +++ b/docs/module-doc/classModule.html @@ -36,7 +36,7 @@ All modules must inherit from this class, its methods will be called when irc se

        -Definition at line 79 of file modules.h.


        Constructor & Destructor Documentation

        +Definition at line 85 of file modules.h.

        Constructor & Destructor Documentation

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

        -Definition at line 40 of file modules.cpp. +Definition at line 43 of file modules.cpp.

        -

        00040 { }
        +
        00043 { }
         
        @@ -101,9 +101,9 @@ Default destructor destroys a module class.

        -Definition at line 41 of file modules.cpp. +Definition at line 44 of file modules.cpp.

        -

        00041 { }
        +
        00044 { }
         
        @@ -137,9 +137,9 @@ 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 46 of file modules.cpp. +Definition at line 49 of file modules.cpp.

        -

        00046 { return Version(1,0,0,0); }
        +
        00049 { return Version(1,0,0,0); }
         
        @@ -173,9 +173,9 @@ Called when a user connects.

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

        -Definition at line 42 of file modules.cpp. +Definition at line 45 of file modules.cpp.

        -

        00042 { }
        +
        00045 { }
         
        @@ -218,9 +218,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 44 of file modules.cpp. +Definition at line 47 of file modules.cpp.

        -

        00044 { }
        +
        00047 { }
         
        @@ -263,9 +263,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 45 of file modules.cpp. +Definition at line 48 of file modules.cpp.

        -

        00045 { }
        +
        00048 { }
         
        @@ -299,15 +299,15 @@ Called when a user quits.

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

        -Definition at line 43 of file modules.cpp. +Definition at line 46 of file modules.cpp.

        -

        00043 { }
        +
        00046 { }
         

        The documentation for this class was generated from the following files: -
        Generated on Wed Jan 22 20:56:48 2003 for InspIRCd by +
        Generated on Thu Jan 23 20:28:59 2003 for InspIRCd by doxygen1.3-rc2
        diff --git a/docs/module-doc/classModuleFactory-members.html b/docs/module-doc/classModuleFactory-members.html index bd8a7618c..62b87671d 100644 --- a/docs/module-doc/classModuleFactory-members.html +++ b/docs/module-doc/classModuleFactory-members.html @@ -10,7 +10,7 @@ CreateModule()=0ModuleFactory [pure virtual] ModuleFactory()ModuleFactory [inline] ~ModuleFactory()ModuleFactory [inline, virtual] -
        Generated on Wed Jan 22 20:56:48 2003 for InspIRCd by +
        Generated on Thu Jan 23 20:28:59 2003 for InspIRCd by doxygen1.3-rc2
        diff --git a/docs/module-doc/classModuleFactory.html b/docs/module-doc/classModuleFactory.html index 12bf82cef..e3f4b4777 100644 --- a/docs/module-doc/classModuleFactory.html +++ b/docs/module-doc/classModuleFactory.html @@ -26,7 +26,7 @@ This is to allow for modules to create many different variants of

        -Definition at line 316 of file modules.h.


        Constructor & Destructor Documentation

        +Definition at line 322 of file modules.h.

        Constructor & Destructor Documentation

        @@ -54,9 +54,9 @@ Definition at line 316 of

        -Definition at line 319 of file modules.h. +Definition at line 325 of file modules.h.

        -

        00319 { }
        +
        00325 { }
         
        @@ -87,9 +87,9 @@ Definition at line 319 of

        -Definition at line 320 of file modules.h. +Definition at line 326 of file modules.h.

        -

        00320 { }
        +
        00326 { }
         
        @@ -126,7 +126,7 @@ Your inherited class of ModuleFactory must return a pointer to your modules.h
      -
      Generated on Wed Jan 22 20:56:48 2003 for InspIRCd by +
      Generated on Thu Jan 23 20:28:59 2003 for InspIRCd by doxygen1.3-rc2
      diff --git a/docs/module-doc/classServer-members.html b/docs/module-doc/classServer-members.html index 63c331106..2cef181d3 100644 --- a/docs/module-doc/classServer-members.html +++ b/docs/module-doc/classServer-members.html @@ -26,7 +26,7 @@ SendWallops(userrec *User, string text)Server [virtual] Server()Server ~Server()Server [virtual] -
      Generated on Wed Jan 22 20:56:48 2003 for InspIRCd by +
      Generated on Thu Jan 23 20:28:59 2003 for InspIRCd by doxygen1.3-rc2
      diff --git a/docs/module-doc/classServer.html b/docs/module-doc/classServer.html index d7a809046..9e7a519d6 100644 --- a/docs/module-doc/classServer.html +++ b/docs/module-doc/classServer.html @@ -60,7 +60,7 @@ All modules should instantiate at least one copy of this class, and use its memb

      -Definition at line 121 of file modules.h.


      Constructor & Destructor Documentation

      +Definition at line 127 of file modules.h.

      Constructor & Destructor Documentation

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

      Creates a Server object.

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

      -

      00053 {
      -00054 }
      +
      00056 {
      +00057 }
       
      @@ -126,10 +126,10 @@ Default destructor.

      Destroys a Server object.

      -Definition at line 56 of file modules.cpp. +Definition at line 59 of file modules.cpp.

      -

      00057 {
      -00058 }
      +
      00060 {
      +00061 }
       
      @@ -173,12 +173,12 @@ 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 139 of file modules.cpp. +Definition at line 142 of file modules.cpp.

      -

      00140 {
      -00141         string mode = cmode(User,Chan);
      -00142         return mode;
      -00143 }
      +
      00143 {
      +00144         string mode = cmode(User,Chan);
      +00145         return mode;
      +00146 }
       
      @@ -221,11 +221,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 102 of file modules.cpp. +Definition at line 105 of file modules.cpp.

      -

      00103 {
      -00104         return (common_channels(u1,u2) != 0);
      -00105 }
      +
      00106 {
      +00107         return (common_channels(u1,u2) != 0);
      +00108 }
       
      @@ -259,11 +259,11 @@ Sends a debug string.

      This method writes a line of text to the debug log. If debugging is disabled in the configuration, this command has no effect.

      -Definition at line 65 of file modules.cpp. +Definition at line 68 of file modules.cpp.

      -

      00066 {
      -00067         debug("%s",s.c_str());
      -00068 }
      +
      00069 {
      +00070         debug("%s",s.c_str());
      +00071 }
       
      @@ -297,11 +297,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 134 of file modules.cpp. +Definition at line 137 of file modules.cpp.

      -

      00135 {
      -00136         return FindChan(channel.c_str());
      -00137 }
      +
      00138 {
      +00139         return FindChan(channel.c_str());
      +00140 }
       
      @@ -335,11 +335,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 129 of file modules.cpp. +Definition at line 132 of file modules.cpp.

      -

      00130 {
      -00131         return Find(nick);
      -00132 }
      +
      00133 {
      +00134         return Find(nick);
      +00135 }
       
      @@ -372,11 +372,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 155 of file modules.cpp. +Definition at line 158 of file modules.cpp.

      -

      00156 {
      -00157         return Admin(getadminname(),getadminemail(),getadminnick());
      -00158 }
      +
      00159 {
      +00160         return Admin(getadminname(),getadminemail(),getadminnick());
      +00161 }
       
      @@ -409,11 +409,11 @@ Returns the network name, global to all linked servers.

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

      -

      00151 {
      -00152         return getnetworkname();
      -00153 }
      +
      00154 {
      +00155         return getnetworkname();
      +00156 }
       
      @@ -446,11 +446,11 @@ Returns the server name of the server where the module is loaded.

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

      -

      00146 {
      -00147         return getservername();
      -00148 }
      +
      00149 {
      +00150         return getservername();
      +00151 }
       
      @@ -484,11 +484,11 @@ Returns true if a nick is valid.

      Nicks for unregistered connections will return false.

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

      -

      00125 {
      -00126         return (isnick(nick.c_str()) != 0);
      -00127 }
      +
      00128 {
      +00129         return (isnick(nick.c_str()) != 0);
      +00130 }
       
      @@ -531,11 +531,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 70 of file modules.cpp. +Definition at line 73 of file modules.cpp.

      -

      00071 {
      -00072         Write(Socket,"%s",s.c_str());
      -00073 }
      +
      00074 {
      +00075         Write(Socket,"%s",s.c_str());
      +00076 }
       
      @@ -590,18 +590,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 90 of file modules.cpp. -

      -

      00091 {
      -00092         if (IncludeSender)
      -00093         {
      -00094                 WriteChannel(Channel,User,"%s",s.c_str());
      -00095         }
      -00096         else
      -00097         {
      -00098                 ChanExceptSender(Channel,User,"%s",s.c_str());
      -00099         }
      -00100 }
      +Definition at line 93 of file modules.cpp.
      +

      +

      00094 {
      +00095         if (IncludeSender)
      +00096         {
      +00097                 WriteChannel(Channel,User,"%s",s.c_str());
      +00098         }
      +00099         else
      +00100         {
      +00101                 ChanExceptSender(Channel,User,"%s",s.c_str());
      +00102         }
      +00103 }
       
      @@ -650,18 +650,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 107 of file modules.cpp. -

      -

      00108 {
      -00109         if (IncludeSender)
      -00110         {
      -00111                 WriteCommon(User,"%s",text.c_str());
      -00112         }
      -00113         else
      -00114         {
      -00115                 WriteCommonExcept(User,"%s",text.c_str());
      -00116         }
      -00117 }
      +Definition at line 110 of file modules.cpp.
      +

      +

      00111 {
      +00112         if (IncludeSender)
      +00113         {
      +00114                 WriteCommon(User,"%s",text.c_str());
      +00115         }
      +00116         else
      +00117         {
      +00118                 WriteCommonExcept(User,"%s",text.c_str());
      +00119         }
      +00120 }
       
      @@ -710,11 +710,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 80 of file modules.cpp. +Definition at line 83 of file modules.cpp.

      -

      00081 {
      -00082         WriteFrom(Socket,User,"%s",s.c_str());
      -00083 }
      +
      00084 {
      +00085         WriteFrom(Socket,User,"%s",s.c_str());
      +00086 }
       
      @@ -748,11 +748,11 @@ Sends text to all opers.

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

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

      -

      00061 {
      -00062         WriteOpers("%s",s.c_str());
      -00063 }
      +
      00064 {
      +00065         WriteOpers("%s",s.c_str());
      +00066 }
       
      @@ -795,11 +795,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 75 of file modules.cpp. +Definition at line 78 of file modules.cpp.

      -

      00076 {
      -00077         WriteServ(Socket,"%s",s.c_str());
      -00078 }
      +
      00079 {
      +00080         WriteServ(Socket,"%s",s.c_str());
      +00081 }
       
      @@ -848,11 +848,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 85 of file modules.cpp. +Definition at line 88 of file modules.cpp.

      -

      00086 {
      -00087         WriteTo(Source,Dest,"%s",s.c_str());
      -00088 }
      +
      00089 {
      +00090         WriteTo(Source,Dest,"%s",s.c_str());
      +00091 }
       
      @@ -895,17 +895,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 119 of file modules.cpp. +Definition at line 122 of file modules.cpp.

      -

      00120 {
      -00121         WriteWallOps(User,"%s",text.c_str());
      -00122 }
      +
      00123 {
      +00124         WriteWallOps(User,"%s",text.c_str());
      +00125 }
       

      The documentation for this class was generated from the following files: -
      Generated on Wed Jan 22 20:56:48 2003 for InspIRCd by +
      Generated on Thu Jan 23 20:28:59 2003 for InspIRCd by doxygen1.3-rc2
      diff --git a/docs/module-doc/classVersion-members.html b/docs/module-doc/classVersion-members.html index 438f2645f..f0284a3b5 100644 --- a/docs/module-doc/classVersion-members.html +++ b/docs/module-doc/classVersion-members.html @@ -12,7 +12,7 @@ MinorVersion RevisionVersion Version(int major, int minor, int revision, int build)Version -
      Generated on Wed Jan 22 20:56:48 2003 for InspIRCd by +
      Generated on Thu Jan 23 20:29:00 2003 for InspIRCd by doxygen1.3-rc2
      diff --git a/docs/module-doc/classVersion.html b/docs/module-doc/classVersion.html index 3c3e53d8c..bb853c74a 100644 --- a/docs/module-doc/classVersion.html +++ b/docs/module-doc/classVersion.html @@ -28,7 +28,7 @@ A class of type Version is returned by the GetVersion method of the 54 of file modules.h.

      Constructor & Destructor Documentation

      +Definition at line 60 of file modules.h.

      Constructor & Destructor Documentation

      @@ -78,9 +78,9 @@ Definition at line 54 of

      -Definition at line 29 of file modules.cpp. +Definition at line 32 of file modules.cpp.

      -

      00029 : Major(major), Minor(minor), Revision(revision), Build(build) { };
      +
      00032 : Major(major), Minor(minor), Revision(revision), Build(build) { };
       
      @@ -106,7 +106,7 @@ Definition at line 29 o

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

      @@ -130,7 +130,7 @@ Definition at line 57 of

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

      @@ -154,7 +154,7 @@ Definition at line 57 of

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

      @@ -178,12 +178,12 @@ Definition at line 57 of

      -Definition at line 57 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 Wed Jan 22 20:56:48 2003 for InspIRCd by +
      Generated on Thu Jan 23 20:29:00 2003 for InspIRCd by doxygen1.3-rc2
      diff --git a/docs/module-doc/classchanrec-members.html b/docs/module-doc/classchanrec-members.html index 7d34a88a0..8801bdf44 100644 --- a/docs/module-doc/classchanrec-members.html +++ b/docs/module-doc/classchanrec-members.html @@ -24,7 +24,7 @@ topiclockchanrec topicsetchanrec ~chanrec()chanrec [inline, virtual] -
      Generated on Wed Jan 22 20:56:47 2003 for InspIRCd by +
      Generated on Thu Jan 23 20:28:58 2003 for InspIRCd by doxygen1.3-rc2
      diff --git a/docs/module-doc/classchanrec.html b/docs/module-doc/classchanrec.html index bf8299560..2c9e2efcb 100644 --- a/docs/module-doc/classchanrec.html +++ b/docs/module-doc/classchanrec.html @@ -56,7 +56,7 @@ This class represents a channel, and contains its name, modes, time created, top

      -Definition at line 82 of file channels.h.


      Constructor & Destructor Documentation

      +Definition at line 85 of file channels.h.

      Constructor & Destructor Documentation

      @@ -86,17 +86,17 @@ Creates a channel record and initialises it with default values.

      -Definition at line 150 of file channels.h. -

      -

      00151         {
      -00152                 strcpy(name,"");
      -00153                 strcpy(custom_modes,"");
      -00154                 strcpy(topic,"");
      -00155                 strcpy(setby,"");
      -00156                 strcpy(key,"");
      -00157                 created = topicset = limit = 0;
      -00158                 topiclock = noexternal = inviteonly = moderated = secret = c_private = false;
      -00159         }
      +Definition at line 153 of file channels.h.
      +

      +

      00154         {
      +00155                 strcpy(name,"");
      +00156                 strcpy(custom_modes,"");
      +00157                 strcpy(topic,"");
      +00158                 strcpy(setby,"");
      +00159                 strcpy(key,"");
      +00160                 created = topicset = limit = 0;
      +00161                 topiclock = noexternal = inviteonly = moderated = secret = c_private = false;
      +00162         }
       
      @@ -127,9 +127,9 @@ Definition at line 150 o

      -Definition at line 161 of file channels.h. +Definition at line 164 of file channels.h.

      -

      00161 { /* stub */ }
      +
      00164 { /* stub */ }
       
      @@ -157,7 +157,7 @@ The list of all bans set on the channel.

      -Definition at line 146 of file channels.h. +Definition at line 149 of file channels.h.

      @@ -183,7 +183,7 @@ Nonzero if the mode +p is set.

      This value cannot be set at the same time as chanrec::secret

      -Definition at line 142 of file channels.h. +Definition at line 145 of file channels.h.

      @@ -209,7 +209,7 @@ Creation time.

      -Definition at line 98 of file channels.h. +Definition at line 101 of file channels.h.

      @@ -235,7 +235,7 @@ Custom modes for the channel.

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

      -Definition at line 91 of file channels.h. +Definition at line 94 of file channels.h.

      @@ -261,7 +261,7 @@ Nonzero if the mode +i is set.

      -Definition at line 128 of file channels.h. +Definition at line 131 of file channels.h.

      @@ -287,7 +287,7 @@ Contains the channel key.

      If this value is an empty string, there is no channel key in place.

      -Definition at line 116 of file channels.h. +Definition at line 119 of file channels.h.

      @@ -313,7 +313,7 @@ Contains the channel user limit.

      If this value is zero, there is no limit in place.

      -Definition at line 111 of file channels.h. +Definition at line 114 of file channels.h.

      @@ -339,7 +339,7 @@ Nonzero if the mode +m is set.

      -Definition at line 132 of file channels.h. +Definition at line 135 of file channels.h.

      @@ -365,7 +365,7 @@ The channels name.

      -Definition at line 87 of file channels.h. +Definition at line 90 of file channels.h.

      @@ -391,7 +391,7 @@ Nonzero if the mode +n is set.

      -Definition at line 124 of file channels.h. +Definition at line 127 of file channels.h.

      @@ -417,7 +417,7 @@ Nonzero if the mode +s is set.

      This value cannot be set at the same time as chanrec::c_private

      -Definition at line 137 of file channels.h. +Definition at line 140 of file channels.h.

      @@ -443,7 +443,7 @@ The last user to set the topic.

      If this member is an empty string, no topic was ever set.

      -Definition at line 106 of file channels.h. +Definition at line 109 of file channels.h.

      @@ -469,7 +469,7 @@ Channel topic.

      If this is an empty string, no channel topic is set.

      -Definition at line 95 of file channels.h. +Definition at line 98 of file channels.h.

      @@ -495,7 +495,7 @@ Nonzero if the mode +t is set.

      -Definition at line 120 of file channels.h. +Definition at line 123 of file channels.h.

      @@ -521,12 +521,12 @@ Time topic was set.

      If no topic was ever set, this will be equal to chanrec::created

      -Definition at line 102 of file channels.h. +Definition at line 105 of file channels.h.


      The documentation for this class was generated from the following file: -
      Generated on Wed Jan 22 20:56:47 2003 for InspIRCd by +
      Generated on Thu Jan 23 20:28:58 2003 for InspIRCd by doxygen1.3-rc2
      diff --git a/docs/module-doc/classes.html b/docs/module-doc/classes.html index d305624f7..b6c75ff2d 100644 --- a/docs/module-doc/classes.html +++ b/docs/module-doc/classes.html @@ -18,7 +18,7 @@
        V  
        C  
        F  
      -InviteItem   Server   Version   chanrec   FileReader   
      Generated on Wed Jan 22 20:56:47 2003 for InspIRCd by +InviteItem   Server   Version   chanrec   FileReader   
      Generated on Thu Jan 23 20:28:58 2003 for InspIRCd by doxygen1.3-rc2
      diff --git a/docs/module-doc/classucrec-members.html b/docs/module-doc/classucrec-members.html index 43e5c1cca..ffde8fdd4 100644 --- a/docs/module-doc/classucrec-members.html +++ b/docs/module-doc/classucrec-members.html @@ -11,7 +11,7 @@ uc_modesucrec ucrec()ucrec [inline] ~ucrec()ucrec [inline, virtual] -
      Generated on Wed Jan 22 20:56:48 2003 for InspIRCd by +
      Generated on Thu Jan 23 20:28:59 2003 for InspIRCd by doxygen1.3-rc2
      diff --git a/docs/module-doc/classucrec.html b/docs/module-doc/classucrec.html index c95b8a3b6..865b1a708 100644 --- a/docs/module-doc/classucrec.html +++ b/docs/module-doc/classucrec.html @@ -29,7 +29,7 @@ The uc_modes member holds a bitmask of which privilages the user has on the chan

      -Definition at line 178 of file channels.h.


      Constructor & Destructor Documentation

      +Definition at line 181 of file channels.h.

      Constructor & Destructor Documentation

      @@ -57,9 +57,9 @@ Definition at line 178 o

      -Definition at line 191 of file channels.h. +Definition at line 194 of file channels.h.

      -

      00191 { /* stub */ }
      +
      00194 { /* stub */ }
       
      @@ -90,9 +90,9 @@ Definition at line 191 o

      -Definition at line 192 of file channels.h. +Definition at line 195 of file channels.h.

      -

      00192 { /* stub */ }
      +
      00195 { /* stub */ }
       
      @@ -120,9 +120,9 @@ Points to the channel record where the given modes apply.

      If the record is not in use, this value will be NULL.

      -Definition at line 189 of file channels.h. +Definition at line 192 of file channels.h.

      -Referenced by userrec::userrec(). +Referenced by userrec::userrec().

      @@ -148,12 +148,12 @@ Contains a bitmask of the UCMODE_OP ...

      UCMODE_FOUNDER values. If this value is zero, the user has no privilages upon the channel.

      -Definition at line 184 of file channels.h. +Definition at line 187 of file channels.h.


      The documentation for this class was generated from the following file: -
      Generated on Wed Jan 22 20:56:48 2003 for InspIRCd by +
      Generated on Thu Jan 23 20:28:59 2003 for InspIRCd by doxygen1.3-rc2
      diff --git a/docs/module-doc/classuserrec-members.html b/docs/module-doc/classuserrec-members.html index 78781c9e8..72c404672 100644 --- a/docs/module-doc/classuserrec-members.html +++ b/docs/module-doc/classuserrec-members.html @@ -39,7 +39,7 @@ signonuserrec userrec()userrec ~userrec()userrec [inline, virtual] -
      Generated on Wed Jan 22 20:56:48 2003 for InspIRCd by +
      Generated on Thu Jan 23 20:29:00 2003 for InspIRCd by doxygen1.3-rc2
      diff --git a/docs/module-doc/classuserrec.html b/docs/module-doc/classuserrec.html index d4be7912e..c241c89f9 100644 --- a/docs/module-doc/classuserrec.html +++ b/docs/module-doc/classuserrec.html @@ -86,7 +86,7 @@ Everything about a connection is stored here primarily, from the user's socket I

      -Definition at line 80 of file users.h.


      Constructor & Destructor Documentation

      +Definition at line 83 of file users.h.

      Constructor & Destructor Documentation

      @@ -114,32 +114,32 @@ Definition at line 80 of fi

      -Definition at line 23 of file users.cpp. -

      -References bytes_in, bytes_out, ucrec::channel, chans, cmds_in, cmds_out, fd, haspassed, idle_lastmsg, invites, ip, lastping, nping, port, registered, and signon. -

      -

      00024 {
      -00025         // the PROPER way to do it, AVOID bzero at *ALL* costs
      -00026         strcpy(nick,"");
      -00027         ip = 0;
      -00028         strcpy(ident,"");
      -00029         strcpy(host,"");
      -00030         strcpy(dhost,"");
      -00031         strcpy(fullname,"");
      -00032         strcpy(modes,"");
      -00033         strcpy(inbuf,"");
      -00034         strcpy(server,"");
      -00035         strcpy(awaymsg,"");
      -00036         fd = lastping = signon = idle_lastmsg = nping = registered = 0;
      -00037         port = bytes_in = bytes_out = cmds_in = cmds_out = 0;
      -00038         haspassed = false;
      -00039         strcpy(result,"");
      -00040         for (int i = 0; i < MAXCHANS; i++)
      -00041         {
      -00042                 chans[i].channel = NULL;
      -00043         }
      -00044         invites.clear();
      -00045 }
      +Definition at line 26 of file users.cpp.
      +

      +References bytes_in, bytes_out, ucrec::channel, chans, cmds_in, cmds_out, fd, haspassed, idle_lastmsg, invites, ip, lastping, nping, port, registered, and signon. +

      +

      00027 {
      +00028         // the PROPER way to do it, AVOID bzero at *ALL* costs
      +00029         strcpy(nick,"");
      +00030         ip = 0;
      +00031         strcpy(ident,"");
      +00032         strcpy(host,"");
      +00033         strcpy(dhost,"");
      +00034         strcpy(fullname,"");
      +00035         strcpy(modes,"");
      +00036         strcpy(inbuf,"");
      +00037         strcpy(server,"");
      +00038         strcpy(awaymsg,"");
      +00039         fd = lastping = signon = idle_lastmsg = nping = registered = 0;
      +00040         port = bytes_in = bytes_out = cmds_in = cmds_out = 0;
      +00041         haspassed = false;
      +00042         strcpy(result,"");
      +00043         for (int i = 0; i < MAXCHANS; i++)
      +00044         {
      +00045                 chans[i].channel = NULL;
      +00046         }
      +00047         invites.clear();
      +00048 }
       
      @@ -170,9 +170,9 @@ References bytes_in,

      -Definition at line 213 of file users.h. +Definition at line 216 of file users.h.

      -

      00213 {  }
      +
      00216 {  }
       
      @@ -206,14 +206,14 @@ Returns the full displayed host of the user This member function returns the hos

      -Definition at line 48 of file users.cpp. +Definition at line 51 of file users.cpp.

      -References result. +References result.

      -

      00049 {
      -00050         sprintf(result,"%s!%s@%s",nick,ident,dhost);
      -00051         return result;
      -00052 }
      +
      00052 {
      +00053         sprintf(result,"%s!%s@%s",nick,ident,dhost);
      +00054         return result;
      +00055 }
       
      @@ -246,14 +246,14 @@ Returns the full real host of the user This member function returns the hostname

      If any form of hostname cloaking is in operation, e.g. through a module, then this method will ignore it and return the true hostname.

      -Definition at line 55 of file users.cpp. +Definition at line 58 of file users.cpp.

      -References result. +References result.

      -

      00056 {
      -00057         sprintf(result,"%s!%s@%s",nick,ident,host);
      -00058         return result;
      -00059 }
      +
      00059 {
      +00060         sprintf(result,"%s!%s@%s",nick,ident,host);
      +00061         return result;
      +00062 }
       
      @@ -287,15 +287,15 @@ Adds a channel to a users invite list (invites them to a channel).

      -Definition at line 72 of file users.cpp. +Definition at line 75 of file users.cpp.

      -References Invited::channel, and invites. +References Invited::channel, and invites.

      -

      00073 {
      -00074         Invited i;
      -00075         strcpy(i.channel,channel);
      -00076         invites.push_back(i);
      -00077 }
      +
      00076 {
      +00077         Invited i;
      +00078         strcpy(i.channel,channel);
      +00079         invites.push_back(i);
      +00080 }
       
      @@ -329,19 +329,19 @@ Returns true if a user is invited to a channel.

      -Definition at line 61 of file users.cpp. +Definition at line 64 of file users.cpp.

      -References invites. +References invites.

      -

      00062 {
      -00063         for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++)
      -00064         {
      -00065                 if (!strcasecmp(i->channel,channel))
      -00066                 {
      -00067                         return true;
      -00068                 }
      -00069         }
      -00070 }
      +
      00065 {
      +00066         for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++)
      +00067         {
      +00068                 if (!strcasecmp(i->channel,channel))
      +00069                 {
      +00070                         return true;
      +00071                 }
      +00072         }
      +00073 }
       
      @@ -375,20 +375,20 @@ Removes a channel from a users invite list.

      This member function is called on successfully joining an invite only channel to which the user has previously been invited, to clear the invitation.

      -Definition at line 79 of file users.cpp. +Definition at line 82 of file users.cpp.

      -References invites. +References invites.

      -

      00080 {
      -00081         for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++)
      -00082         {
      -00083                 if (!strcasecmp(i->channel,channel))
      -00084                 {
      -00085                         invites.erase(i);
      -00086                         return;
      -00087                 }
      -00088         }
      -00089 }
      +
      00083 {
      +00084         for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++)
      +00085         {
      +00086                 if (!strcasecmp(i->channel,channel))
      +00087                 {
      +00088                         invites.erase(i);
      +00089                         return;
      +00090                 }
      +00091         }
      +00092 }
       
      @@ -416,7 +416,7 @@ The user's away message.

      If this string is empty, the user is not marked as away.

      -Definition at line 174 of file users.h. +Definition at line 177 of file users.h.

      @@ -442,9 +442,9 @@ Stores the number of incoming bytes from the connection.

      Used by /STATS

      -Definition at line 183 of file users.h. +Definition at line 186 of file users.h.

      -Referenced by userrec(). +Referenced by userrec().

      @@ -470,9 +470,9 @@ Stores the number of outgoing bytes to the connection.

      Used by /STATS

      -Definition at line 188 of file users.h. +Definition at line 191 of file users.h.

      -Referenced by userrec(). +Referenced by userrec().

      @@ -498,9 +498,9 @@ A list of the channels the user is currently on.

      If any of these values are NULL, the record is not in use and may be associated with a channel by the JOIN command. see RFC 1459.

      -Definition at line 165 of file users.h. +Definition at line 168 of file users.h.

      -Referenced by userrec(). +Referenced by userrec().

      @@ -526,9 +526,9 @@ Stores the number of incoming commands from the connection.

      Used by /STATS

      -Definition at line 193 of file users.h. +Definition at line 196 of file users.h.

      -Referenced by userrec(). +Referenced by userrec().

      @@ -554,9 +554,9 @@ Stores the number of outgoing commands to the connection.

      Used by /STATS

      -Definition at line 198 of file users.h. +Definition at line 201 of file users.h.

      -Referenced by userrec(). +Referenced by userrec().

      @@ -582,7 +582,7 @@ The host displayed to non-opers (used for cloaking etc).

      This usually matches the value of userrec::host.

      -Definition at line 110 of file users.h. +Definition at line 113 of file users.h.

      @@ -608,9 +608,9 @@ The users file descriptor.

      If this is zero, the socket has been closed and the core has not yet realised and removed the record from memory.

      -Definition at line 120 of file users.h. +Definition at line 123 of file users.h.

      -Referenced by userrec(). +Referenced by userrec().

      @@ -636,7 +636,7 @@ The users full name.

      -Definition at line 114 of file users.h. +Definition at line 117 of file users.h.

      @@ -662,9 +662,9 @@ True if a correct password has been given using PASS command.

      If the user is a member of a connection class that does not require a password, the value stored here is of no use.

      -Definition at line 209 of file users.h. +Definition at line 212 of file users.h.

      -Referenced by userrec(). +Referenced by userrec().

      @@ -690,7 +690,7 @@ The users hostname, or ip address in string form.

      -Definition at line 105 of file users.h. +Definition at line 108 of file users.h.

      @@ -716,7 +716,7 @@ The users ident reply.

      -Definition at line 101 of file users.h. +Definition at line 104 of file users.h.

      @@ -742,9 +742,9 @@ The time the user last sent a message.

      See also userrec::lastping and userrec::signon

      -Definition at line 147 of file users.h. +Definition at line 150 of file users.h.

      -Referenced by userrec(). +Referenced by userrec().

      @@ -770,7 +770,7 @@ The users input buffer.

      Used by the C recv() function.

      -Definition at line 131 of file users.h. +Definition at line 134 of file users.h.

      @@ -796,9 +796,9 @@ A list of channels the user has a pending invite to.

      -Definition at line 86 of file users.h. +Definition at line 89 of file users.h.

      -Referenced by InviteTo(), IsInvited(), RemoveInvite(), and userrec(). +Referenced by InviteTo(), IsInvited(), RemoveInvite(), and userrec().

      @@ -824,9 +824,9 @@ The users ip address in network order.

      -Definition at line 97 of file users.h. +Definition at line 100 of file users.h.

      -Referenced by userrec(). +Referenced by userrec().

      @@ -852,9 +852,9 @@ The last time the user was pinged by the core.

      When this value is more than 120 seconds difference from 'time(NULL)', a ping is sent to the client. If the user has an outstanding PING request the next time this event occurs after 4 total minutes, they are disconnected.

      -Definition at line 138 of file users.h. +Definition at line 141 of file users.h.

      -Referenced by userrec(). +Referenced by userrec().

      @@ -880,7 +880,7 @@ The user's mode string.

      This may contain any of the following RFC characters: o, w, s, i Your module may define other mode characters as it sees fit.

      -Definition at line 126 of file users.h. +Definition at line 129 of file users.h.

      @@ -906,7 +906,7 @@ The users nickname.

      An invalid nickname indicates an unregistered connection prior to the NICK command.

      -Definition at line 93 of file users.h. +Definition at line 96 of file users.h.

      @@ -932,9 +932,9 @@ True if the user replied to their last ping.

      If this is true, the user can be sent another ping at the specified time, otherwise they will be discnnected. See also userrec::lastping

      -Definition at line 153 of file users.h. +Definition at line 156 of file users.h.

      -Referenced by userrec(). +Referenced by userrec().

      @@ -960,9 +960,9 @@ The port that the user connected to.

      -Definition at line 178 of file users.h. +Definition at line 181 of file users.h.

      -Referenced by userrec(). +Referenced by userrec().

      @@ -988,9 +988,9 @@ Bit 1 is set if the user sent a NICK command, bit 2 is set if the user sent a US

      If both bits are set then the connection is awaiting MOTD. Sending of MOTD sets bit 3, and makes the value of userrec::registered == 7, showing a fully established client session.

      -Definition at line 159 of file users.h. +Definition at line 162 of file users.h.

      -Referenced by userrec(). +Referenced by userrec().

      @@ -1016,9 +1016,9 @@ Stores the result of the last GetFullHost or GetRealHost call.

      You may use this to increase the speed of use of this class.

      -Definition at line 203 of file users.h. +Definition at line 206 of file users.h.

      -Referenced by GetFullHost(), and GetFullRealHost(). +Referenced by GetFullHost(), and GetFullRealHost().

      @@ -1044,7 +1044,7 @@ The server the user is connected to.

      -Definition at line 169 of file users.h. +Definition at line 172 of file users.h.

      @@ -1070,14 +1070,14 @@ The users signon time.

      -Definition at line 142 of file users.h. +Definition at line 145 of file users.h.

      -Referenced by userrec(). +Referenced by userrec().


      The documentation for this class was generated from the following files: -
      Generated on Wed Jan 22 20:56:48 2003 for InspIRCd by +
      Generated on Thu Jan 23 20:28:59 2003 for InspIRCd by doxygen1.3-rc2
      diff --git a/docs/module-doc/files.html b/docs/module-doc/files.html index ba6de9b92..31ac8df78 100644 --- a/docs/module-doc/files.html +++ b/docs/module-doc/files.html @@ -13,7 +13,7 @@ users.cpp [code] users.h [code] -
      Generated on Wed Jan 22 20:56:46 2003 for InspIRCd by +
      Generated on Thu Jan 23 20:28:57 2003 for InspIRCd by doxygen1.3-rc2
      diff --git a/docs/module-doc/functions.html b/docs/module-doc/functions.html index 668617b78..027e56f17 100644 --- a/docs/module-doc/functions.html +++ b/docs/module-doc/functions.html @@ -183,7 +183,7 @@ Here is a list of all class members with links to the classes they belong to:

      Server
    • ~ucrec() : ucrec
    • ~userrec() : userrec
    -
    Generated on Wed Jan 22 20:56:47 2003 for InspIRCd by +
    Generated on Thu Jan 23 20:28:58 2003 for InspIRCd by doxygen1.3-rc2
    diff --git a/docs/module-doc/globals.html b/docs/module-doc/globals.html index 6a9878c0d..9881f92d0 100644 --- a/docs/module-doc/globals.html +++ b/docs/module-doc/globals.html @@ -49,7 +49,7 @@ Here is a list of all file members with links to the files they belong to:

    channels.h
  • UCMODE_PROTECT : channels.h
  • UCMODE_VOICE : channels.h
-
Generated on Wed Jan 22 20:56:49 2003 for InspIRCd by +
Generated on Thu Jan 23 20:29:00 2003 for InspIRCd by doxygen1.3-rc2
diff --git a/docs/module-doc/hierarchy.html b/docs/module-doc/hierarchy.html index 35e1d316c..cc9867d06 100644 --- a/docs/module-doc/hierarchy.html +++ b/docs/module-doc/hierarchy.html @@ -26,7 +26,7 @@
  • userrec
  • Version -
    Generated on Wed Jan 22 20:56:47 2003 for InspIRCd by +
    Generated on Thu Jan 23 20:28:58 2003 for InspIRCd by doxygen1.3-rc2
    diff --git a/docs/module-doc/main.html b/docs/module-doc/main.html index 2080402f5..9e672e9cc 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 Wed Jan 22 20:56:46 2003 for InspIRCd by +
    Generated on Thu Jan 23 20:28:57 2003 for InspIRCd by doxygen1.3-rc2
    diff --git a/docs/module-doc/modules_8cpp-source.html b/docs/module-doc/modules_8cpp-source.html index b651919d5..9b47e41e7 100644 --- a/docs/module-doc/modules_8cpp-source.html +++ b/docs/module-doc/modules_8cpp-source.html @@ -9,239 +9,239 @@

    modules.cpp

    Go to the documentation of this file.
    00001 /*
     00002 
     00003 $Log$
    -00003 Revision 1.1  2003/01/23 19:45:58  brain
    -00003 Initial revision
    -00003 
    -00003 Revision 1.9  2003/01/22 20:59:12  brain
    -00003 Added FileReader class documentation
    +00003 Revision 1.2  2003/01/23 20:38:00  brain
    +00003 Updated documentation scripts
     00003 
    -00004 Revision 1.7  2003/01/22 20:49:16  brain
    -00005 Added FileReader file-caching class
    -00006 Changed m_randquote to use FileReader class
    -00007 
    -00008 Revision 1.6  2003/01/21 20:31:24  brain
    -00009 Modified to add documentation
    -00010 Added ConfigReader class for modules
    -00011 
    -00012 Revision 1.5  2003/01/13 22:30:50  brain
    -00013 Added Admin class (holds /admin info for modules)
    -00014 Added methods to Server class
    -00015 
    -00016 
    -00017 */
    -00018 
    -00019 
    -00020 
    -00021 #include <typeinfo>
    -00022 #include <iostream.h>
    -00023 #include "globals.h"
    -00024 #include "modules.h"
    -00025 #include "inspircd_io.h"
    -00026 
    -00027 // version is a simple class for holding a modules version number
    -00028 
    -00029 Version::Version(int major, int minor, int revision, int build) : Major(major), Minor(minor), Revision(revision), Build(build) { };
    -00030 
    -00031 // admin is a simple class for holding a server's administrative info
    -00032 
    -00033 Admin::Admin(string name, string email, string nick) : Name(name), Email(email), Nick(nick) { };
    -00034 
    -00035 //
    -00036 // Announce to the world that the Module base
    -00037 // class has been created or destroyed
    +00004 Revision 1.1.1.1  2003/01/23 19:45:58  brain
    +00005 InspIRCd second source tree
    +00006 
    +00007 Revision 1.7  2003/01/22 20:49:16  brain
    +00008 Added FileReader file-caching class
    +00009 Changed m_randquote to use FileReader class
    +00010 
    +00011 Revision 1.6  2003/01/21 20:31:24  brain
    +00012 Modified to add documentation
    +00013 Added ConfigReader class for modules
    +00014 
    +00015 Revision 1.5  2003/01/13 22:30:50  brain
    +00016 Added Admin class (holds /admin info for modules)
    +00017 Added methods to Server class
    +00018 
    +00019 
    +00020 */
    +00021 
    +00022 
    +00023 
    +00024 #include <typeinfo>
    +00025 #include <iostream.h>
    +00026 #include "globals.h"
    +00027 #include "modules.h"
    +00028 #include "inspircd_io.h"
    +00029 
    +00030 // version is a simple class for holding a modules version number
    +00031 
    +00032 Version::Version(int major, int minor, int revision, int build) : Major(major), Minor(minor), Revision(revision), Build(build) { };
    +00033 
    +00034 // admin is a simple class for holding a server's administrative info
    +00035 
    +00036 Admin::Admin(string name, string email, string nick) : Name(name), Email(email), Nick(nick) { };
    +00037 
     00038 //
    -00039 
    -00040 Module::Module() { }
    -00041 Module::~Module() { }
    -00042 void Module::OnUserConnect(userrec* user) { }
    -00043 void Module::OnUserQuit(userrec* user) { }
    -00044 void Module::OnUserJoin(userrec* user, chanrec* channel) { }
    -00045 void Module::OnUserPart(userrec* user, chanrec* channel) { }
    -00046 Version Module::GetVersion() { return Version(1,0,0,0); }
    -00047 
    -00048 // server is a wrapper class that provides methods to all of the C-style
    -00049 // exports in the core
    -00050 //
    -00051 
    -00052 Server::Server()
    -00053 {
    -00054 }
    -00055 
    -00056 Server::~Server()
    -00057 {
    -00058 }
    -00059 
    -00060 void Server::SendOpers(string s)
    -00061 {
    -00062         WriteOpers("%s",s.c_str());
    -00063 }
    -00064 
    -00065 void Server::Debug(string s)
    -00066 {
    -00067         debug("%s",s.c_str());
    -00068 }
    -00069 
    -00070 void Server::Send(int Socket, string s)
    -00071 {
    -00072         Write(Socket,"%s",s.c_str());
    -00073 }
    -00074 
    -00075 void Server::SendServ(int Socket, string s)
    -00076 {
    -00077         WriteServ(Socket,"%s",s.c_str());
    -00078 }
    -00079 
    -00080 void Server::SendFrom(int Socket, userrec* User, string s)
    -00081 {
    -00082         WriteFrom(Socket,User,"%s",s.c_str());
    -00083 }
    -00084 
    -00085 void Server::SendTo(userrec* Source, userrec* Dest, string s)
    -00086 {
    -00087         WriteTo(Source,Dest,"%s",s.c_str());
    -00088 }
    -00089 
    -00090 void Server::SendChannel(userrec* User, chanrec* Channel, string s,bool IncludeSender)
    -00091 {
    -00092         if (IncludeSender)
    -00093         {
    -00094                 WriteChannel(Channel,User,"%s",s.c_str());
    -00095         }
    -00096         else
    -00097         {
    -00098                 ChanExceptSender(Channel,User,"%s",s.c_str());
    -00099         }
    -00100 }
    -00101 
    -00102 bool Server::CommonChannels(userrec* u1, userrec* u2)
    -00103 {
    -00104         return (common_channels(u1,u2) != 0);
    -00105 }
    -00106 
    -00107 void Server::SendCommon(userrec* User, string text,bool IncludeSender)
    -00108 {
    -00109         if (IncludeSender)
    -00110         {
    -00111                 WriteCommon(User,"%s",text.c_str());
    -00112         }
    -00113         else
    -00114         {
    -00115                 WriteCommonExcept(User,"%s",text.c_str());
    -00116         }
    -00117 }
    -00118 
    -00119 void Server::SendWallops(userrec* User, string text)
    -00120 {
    -00121         WriteWallOps(User,"%s",text.c_str());
    -00122 }
    -00123 
    -00124 bool Server::IsNick(string nick)
    -00125 {
    -00126         return (isnick(nick.c_str()) != 0);
    -00127 }
    -00128 
    -00129 userrec* Server::FindNick(string nick)
    -00130 {
    -00131         return Find(nick);
    -00132 }
    -00133 
    -00134 chanrec* Server::FindChannel(string channel)
    -00135 {
    -00136         return FindChan(channel.c_str());
    -00137 }
    -00138 
    -00139 string Server::ChanMode(userrec* User, chanrec* Chan)
    -00140 {
    -00141         string mode = cmode(User,Chan);
    -00142         return mode;
    -00143 }
    -00144 
    -00145 string Server::GetServerName()
    -00146 {
    -00147         return getservername();
    -00148 }
    -00149 
    -00150 string Server::GetNetworkName()
    -00151 {
    -00152         return getnetworkname();
    -00153 }
    -00154 
    -00155 Admin Server::GetAdmin()
    -00156 {
    -00157         return Admin(getadminname(),getadminemail(),getadminnick());
    -00158 }
    -00159 
    -00160 
    -00161 ConfigReader::ConfigReader()
    -00162 {
    -00163         fname = CONFIG_FILE;
    -00164 }
    -00165 
    -00166 
    -00167 ConfigReader::~ConfigReader()
    -00168 {
    -00169 }
    -00170 
    -00171 
    -00172 ConfigReader::ConfigReader(string filename) : fname(filename) { };
    +00039 // Announce to the world that the Module base
    +00040 // class has been created or destroyed
    +00041 //
    +00042 
    +00043 Module::Module() { }
    +00044 Module::~Module() { }
    +00045 void Module::OnUserConnect(userrec* user) { }
    +00046 void Module::OnUserQuit(userrec* user) { }
    +00047 void Module::OnUserJoin(userrec* user, chanrec* channel) { }
    +00048 void Module::OnUserPart(userrec* user, chanrec* channel) { }
    +00049 Version Module::GetVersion() { return Version(1,0,0,0); }
    +00050 
    +00051 // server is a wrapper class that provides methods to all of the C-style
    +00052 // exports in the core
    +00053 //
    +00054 
    +00055 Server::Server()
    +00056 {
    +00057 }
    +00058 
    +00059 Server::~Server()
    +00060 {
    +00061 }
    +00062 
    +00063 void Server::SendOpers(string s)
    +00064 {
    +00065         WriteOpers("%s",s.c_str());
    +00066 }
    +00067 
    +00068 void Server::Debug(string s)
    +00069 {
    +00070         debug("%s",s.c_str());
    +00071 }
    +00072 
    +00073 void Server::Send(int Socket, string s)
    +00074 {
    +00075         Write(Socket,"%s",s.c_str());
    +00076 }
    +00077 
    +00078 void Server::SendServ(int Socket, string s)
    +00079 {
    +00080         WriteServ(Socket,"%s",s.c_str());
    +00081 }
    +00082 
    +00083 void Server::SendFrom(int Socket, userrec* User, string s)
    +00084 {
    +00085         WriteFrom(Socket,User,"%s",s.c_str());
    +00086 }
    +00087 
    +00088 void Server::SendTo(userrec* Source, userrec* Dest, string s)
    +00089 {
    +00090         WriteTo(Source,Dest,"%s",s.c_str());
    +00091 }
    +00092 
    +00093 void Server::SendChannel(userrec* User, chanrec* Channel, string s,bool IncludeSender)
    +00094 {
    +00095         if (IncludeSender)
    +00096         {
    +00097                 WriteChannel(Channel,User,"%s",s.c_str());
    +00098         }
    +00099         else
    +00100         {
    +00101                 ChanExceptSender(Channel,User,"%s",s.c_str());
    +00102         }
    +00103 }
    +00104 
    +00105 bool Server::CommonChannels(userrec* u1, userrec* u2)
    +00106 {
    +00107         return (common_channels(u1,u2) != 0);
    +00108 }
    +00109 
    +00110 void Server::SendCommon(userrec* User, string text,bool IncludeSender)
    +00111 {
    +00112         if (IncludeSender)
    +00113         {
    +00114                 WriteCommon(User,"%s",text.c_str());
    +00115         }
    +00116         else
    +00117         {
    +00118                 WriteCommonExcept(User,"%s",text.c_str());
    +00119         }
    +00120 }
    +00121 
    +00122 void Server::SendWallops(userrec* User, string text)
    +00123 {
    +00124         WriteWallOps(User,"%s",text.c_str());
    +00125 }
    +00126 
    +00127 bool Server::IsNick(string nick)
    +00128 {
    +00129         return (isnick(nick.c_str()) != 0);
    +00130 }
    +00131 
    +00132 userrec* Server::FindNick(string nick)
    +00133 {
    +00134         return Find(nick);
    +00135 }
    +00136 
    +00137 chanrec* Server::FindChannel(string channel)
    +00138 {
    +00139         return FindChan(channel.c_str());
    +00140 }
    +00141 
    +00142 string Server::ChanMode(userrec* User, chanrec* Chan)
    +00143 {
    +00144         string mode = cmode(User,Chan);
    +00145         return mode;
    +00146 }
    +00147 
    +00148 string Server::GetServerName()
    +00149 {
    +00150         return getservername();
    +00151 }
    +00152 
    +00153 string Server::GetNetworkName()
    +00154 {
    +00155         return getnetworkname();
    +00156 }
    +00157 
    +00158 Admin Server::GetAdmin()
    +00159 {
    +00160         return Admin(getadminname(),getadminemail(),getadminnick());
    +00161 }
    +00162 
    +00163 
    +00164 ConfigReader::ConfigReader()
    +00165 {
    +00166         fname = CONFIG_FILE;
    +00167 }
    +00168 
    +00169 
    +00170 ConfigReader::~ConfigReader()
    +00171 {
    +00172 }
     00173 
    -00174 string ConfigReader::ReadValue(string tag, string name, int index)
    -00175 {
    -00176         char val[MAXBUF];
    -00177         ReadConf(fname.c_str(),tag.c_str(),name.c_str(),index,val);
    -00178         string s = val;
    -00179         return s;
    -00180 }
    -00181 
    -00182 
    -00183 int ConfigReader::Enumerate(string tag)
    -00184 {
    -00185         return EnumConf(fname.c_str(),tag.c_str());
    -00186 }
    -00187 
    -00188 
    -00189 bool ConfigReader::Verify()
    -00190 {
    -00191         return true;
    -00192 }
    -00193 
    -00194 
    -00195 FileReader::FileReader(string filename)
    -00196 {
    -00197         file_cache c;
    -00198         readfile(c,filename.c_str());
    -00199         this->fc = c;
    -00200 }
    -00201 
    -00202 FileReader::FileReader()
    -00203 {
    -00204 }
    -00205 
    -00206 void FileReader::LoadFile(string filename)
    -00207 {
    -00208         file_cache c;
    -00209         readfile(c,filename.c_str());
    -00210         this->fc = c;
    -00211 }
    -00212 
    -00213 FileReader::~FileReader()
    -00214 {
    -00215 }
    -00216 
    -00217 string FileReader::GetLine(int x)
    -00218 {
    -00219         if ((x<0) || (x>fc.size()))
    -00220                 return "";
    -00221         return fc[x];
    -00222 }
    -00223 
    -00224 int FileReader::FileSize()
    -00225 {
    -00226         return fc.size();
    -00227 }
    -00228 
    -00229 
    -

    Generated on Wed Jan 22 20:56:47 2003 for InspIRCd by +00174 +00175 ConfigReader::ConfigReader(string filename) : fname(filename) { }; +00176 +00177 string ConfigReader::ReadValue(string tag, string name, int index) +00178 { +00179 char val[MAXBUF]; +00180 ReadConf(fname.c_str(),tag.c_str(),name.c_str(),index,val); +00181 string s = val; +00182 return s; +00183 } +00184 +00185 +00186 int ConfigReader::Enumerate(string tag) +00187 { +00188 return EnumConf(fname.c_str(),tag.c_str()); +00189 } +00190 +00191 +00192 bool ConfigReader::Verify() +00193 { +00194 return true; +00195 } +00196 +00197 +00198 FileReader::FileReader(string filename) +00199 { +00200 file_cache c; +00201 readfile(c,filename.c_str()); +00202 this->fc = c; +00203 } +00204 +00205 FileReader::FileReader() +00206 { +00207 } +00208 +00209 void FileReader::LoadFile(string filename) +00210 { +00211 file_cache c; +00212 readfile(c,filename.c_str()); +00213 this->fc = c; +00214 } +00215 +00216 FileReader::~FileReader() +00217 { +00218 } +00219 +00220 string FileReader::GetLine(int x) +00221 { +00222 if ((x<0) || (x>fc.size())) +00223 return ""; +00224 return fc[x]; +00225 } +00226 +00227 int FileReader::FileSize() +00228 { +00229 return fc.size(); +00230 } +00231 +00232 +
    Generated on Thu Jan 23 20:28:57 2003 for InspIRCd by doxygen1.3-rc2
    diff --git a/docs/module-doc/modules_8cpp.html b/docs/module-doc/modules_8cpp.html index cfa3fa3a3..add6315ef 100644 --- a/docs/module-doc/modules_8cpp.html +++ b/docs/module-doc/modules_8cpp.html @@ -16,7 +16,7 @@ Go to the source code of this file.
    -
    Generated on Wed Jan 22 20:56:47 2003 for InspIRCd by +
    Generated on Thu Jan 23 20:28:58 2003 for InspIRCd by doxygen1.3-rc2
    diff --git a/docs/module-doc/modules_8h-source.html b/docs/module-doc/modules_8h-source.html index 9f80e2ea5..6c4a1e489 100644 --- a/docs/module-doc/modules_8h-source.html +++ b/docs/module-doc/modules_8h-source.html @@ -9,149 +9,152 @@

    modules.h

    Go to the documentation of this file.
    00001 /*
     00002 
     00003 $Log$
    -00003 Revision 1.1  2003/01/23 19:45:58  brain
    -00003 Initial revision
    -00003 
    -00003 Revision 1.9  2003/01/22 20:59:12  brain
    -00003 Added FileReader class documentation
    +00003 Revision 1.2  2003/01/23 20:38:00  brain
    +00003 Updated documentation scripts
     00003 
    -00004 Revision 1.11  2003/01/22 20:49:16  brain
    -00005 Added FileReader file-caching class
    -00006 Changed m_randquote to use FileReader class
    -00007 
    -00008 Revision 1.10  2003/01/22 00:57:27  brain
    -00009 Changes to documentation
    -00010 
    -00011 Revision 1.9  2003/01/22 00:44:26  brain
    -00012 Added documentation comments
    +00004 Revision 1.1.1.1  2003/01/23 19:45:58  brain
    +00005 InspIRCd second source tree
    +00006 
    +00007 Revision 1.12  2003/01/22 20:59:10  brain
    +00008 Added FileReader class documentation
    +00009 
    +00010 Revision 1.11  2003/01/22 20:49:16  brain
    +00011 Added FileReader file-caching class
    +00012 Changed m_randquote to use FileReader class
     00013 
    -00014 Revision 1.8  2003/01/21 20:31:24  brain
    -00015 Modified to add documentation
    -00016 Added ConfigReader class for modules
    -00017 
    -00018 Revision 1.7  2003/01/15 22:47:44  brain
    -00019 Changed user and channel structs to classes (finally)
    -00020 
    -00021 Revision 1.6  2003/01/13 22:30:50  brain
    -00022 Added Admin class (holds /admin info for modules)
    -00023 Added methods to Server class
    -00024 
    -00025 
    -00026 */
    -00027 
    -00028 
    -00029 #ifndef __PLUGIN_H
    -00030 #define __PLUGIN_H
    -00031 
    -00032 #include "dynamic.h"
    -00033 #include <string>
    -00034 #include <deque>
    -00035 
    -00038 typedef deque<string> file_cache;
    -00039 
    -00040 
    -00041 // This #define allows us to call a method in all
    -00042 // loaded modules in a readable simple way, e.g.:
    -00043 // 'FOREACH_MOD OnConnect(user);'
    -00044 
    -00045 #define FOREACH_MOD for (int i = 0; i <= MODCOUNT; i++) modules[i]->
    -00046 
    -00047 // class Version holds the version information of a Module, returned
    -00048 // by Module::GetVersion (thanks RD)
    -00049 
    -00054 class Version
    -00055 {
    -00056  public:
    -00057          const int Major, Minor, Revision, Build;
    -00058          Version(int major, int minor, int revision, int build);
    -00059 };
    -00060 
    -00061 
    -00067 class Admin
    -00068 {
    -00069  public:
    -00070          const string Name, Email, Nick;
    -00071          Admin(string name,string email,string nick);
    -00072 };
    -00073 
    -00079 class Module
    -00080 {
    -00081  public:
    -00085         Module();
    -00089         virtual ~Module();
    -00094         virtual Version GetVersion();
    -00098         virtual void OnUserConnect(userrec* user);
    -00102         virtual void OnUserQuit(userrec* user);
    -00107         virtual void OnUserJoin(userrec* user, chanrec* channel);
    -00112         virtual void OnUserPart(userrec* user, chanrec* channel);
    -00113 };
    -00114 
    -00115 
    -00121 class Server
    -00122 {
    -00123  public:
    -00127         Server();
    -00131         virtual ~Server();
    -00132 
    -00136         virtual void SendOpers(string s);
    -00141         virtual void Debug(string s);
    -00146         virtual void Send(int Socket, string s);
    -00151         virtual void SendServ(int Socket, string s);
    -00156         virtual void SendFrom(int Socket, userrec* User, string s);
    -00161         virtual void SendTo(userrec* Source, userrec* Dest, string s);
    -00168         virtual void SendChannel(userrec* User, chanrec* Channel, string s,bool IncludeSender);
    -00173         virtual bool CommonChannels(userrec* u1, userrec* u2);
    -00181         virtual void SendCommon(userrec* User, string text,bool IncludeSender);
    -00186         virtual void SendWallops(userrec* User, string text);
    -00187 
    -00191         virtual bool IsNick(string nick);
    -00195         virtual userrec* FindNick(string nick);
    -00199         virtual chanrec* FindChannel(string channel);
    -00204         virtual string ChanMode(userrec* User, chanrec* Chan);
    -00207         virtual string GetServerName();
    -00210         virtual string GetNetworkName();
    -00216         virtual Admin GetAdmin();
    -00217          
    -00218 };
    -00219 
    -00226 class ConfigReader
    -00227 {
    -00228   protected:
    -00231         string fname;
    -00232   public:
    -00237         ConfigReader();                 // default constructor reads ircd.conf
    -00241         ConfigReader(string filename);  // read a module-specific config
    -00245         ~ConfigReader();
    -00250         string ReadValue(string tag, string name, int index);
    -00257         int Enumerate(string tag);
    -00261         bool Verify();
    -00262 };
    -00263 
    -00264 
    -00265 
    -00271 class FileReader
    -00272 {
    -00273  file_cache fc;
    -00274  public:
    -00279          FileReader();
    -00285          FileReader(string filename);
    -00289          ~FileReader();
    -00295          void LoadFile(string filename);
    -00300          string GetLine(int x);
    -00306          int FileSize();
    -00307 };
    -00308 
    -00309 
    -00316 class ModuleFactory
    -00317 {
    -00318  public:
    -00319         ModuleFactory() { }
    -00320         virtual ~ModuleFactory() { }
    -00325         virtual Module * CreateModule() = 0;
    -00326 };
    -00327 
    -00328 #endif
    -

    Generated on Wed Jan 22 20:56:47 2003 for InspIRCd by +00014 Revision 1.10 2003/01/22 00:57:27 brain +00015 Changes to documentation +00016 +00017 Revision 1.9 2003/01/22 00:44:26 brain +00018 Added documentation comments +00019 +00020 Revision 1.8 2003/01/21 20:31:24 brain +00021 Modified to add documentation +00022 Added ConfigReader class for modules +00023 +00024 Revision 1.7 2003/01/15 22:47:44 brain +00025 Changed user and channel structs to classes (finally) +00026 +00027 Revision 1.6 2003/01/13 22:30:50 brain +00028 Added Admin class (holds /admin info for modules) +00029 Added methods to Server class +00030 +00031 +00032 */ +00033 +00034 +00035 #ifndef __PLUGIN_H +00036 #define __PLUGIN_H +00037 +00038 #include "dynamic.h" +00039 #include <string> +00040 #include <deque> +00041 +00044 typedef deque<string> file_cache; +00045 +00046 +00047 // This #define allows us to call a method in all +00048 // loaded modules in a readable simple way, e.g.: +00049 // 'FOREACH_MOD OnConnect(user);' +00050 +00051 #define FOREACH_MOD for (int i = 0; i <= MODCOUNT; i++) modules[i]-> +00052 +00053 // class Version holds the version information of a Module, returned +00054 // by Module::GetVersion (thanks RD) +00055 +00060 class Version +00061 { +00062 public: +00063 const int Major, Minor, Revision, Build; +00064 Version(int major, int minor, int revision, int build); +00065 }; +00066 +00067 +00073 class Admin +00074 { +00075 public: +00076 const string Name, Email, Nick; +00077 Admin(string name,string email,string nick); +00078 }; +00079 +00085 class Module +00086 { +00087 public: +00091 Module(); +00095 virtual ~Module(); +00100 virtual Version GetVersion(); +00104 virtual void OnUserConnect(userrec* user); +00108 virtual void OnUserQuit(userrec* user); +00113 virtual void OnUserJoin(userrec* user, chanrec* channel); +00118 virtual void OnUserPart(userrec* user, chanrec* channel); +00119 }; +00120 +00121 +00127 class Server +00128 { +00129 public: +00133 Server(); +00137 virtual ~Server(); +00138 +00142 virtual void SendOpers(string s); +00147 virtual void Debug(string s); +00152 virtual void Send(int Socket, string s); +00157 virtual void SendServ(int Socket, string s); +00162 virtual void SendFrom(int Socket, userrec* User, string s); +00167 virtual void SendTo(userrec* Source, userrec* Dest, string s); +00174 virtual void SendChannel(userrec* User, chanrec* Channel, string s,bool IncludeSender); +00179 virtual bool CommonChannels(userrec* u1, userrec* u2); +00187 virtual void SendCommon(userrec* User, string text,bool IncludeSender); +00192 virtual void SendWallops(userrec* User, string text); +00193 +00197 virtual bool IsNick(string nick); +00201 virtual userrec* FindNick(string nick); +00205 virtual chanrec* FindChannel(string channel); +00210 virtual string ChanMode(userrec* User, chanrec* Chan); +00213 virtual string GetServerName(); +00216 virtual string GetNetworkName(); +00222 virtual Admin GetAdmin(); +00223 +00224 }; +00225 +00232 class ConfigReader +00233 { +00234 protected: +00237 string fname; +00238 public: +00243 ConfigReader(); // default constructor reads ircd.conf +00247 ConfigReader(string filename); // read a module-specific config +00251 ~ConfigReader(); +00256 string ReadValue(string tag, string name, int index); +00263 int Enumerate(string tag); +00267 bool Verify(); +00268 }; +00269 +00270 +00271 +00277 class FileReader +00278 { +00279 file_cache fc; +00280 public: +00285 FileReader(); +00291 FileReader(string filename); +00295 ~FileReader(); +00301 void LoadFile(string filename); +00306 string GetLine(int x); +00312 int FileSize(); +00313 }; +00314 +00315 +00322 class ModuleFactory +00323 { +00324 public: +00325 ModuleFactory() { } +00326 virtual ~ModuleFactory() { } +00331 virtual Module * CreateModule() = 0; +00332 }; +00333 +00334 #endif +
    Generated on Thu Jan 23 20:28:57 2003 for InspIRCd by doxygen1.3-rc2
    diff --git a/docs/module-doc/modules_8h.html b/docs/module-doc/modules_8h.html index 6c9237a27..e0fbb0817 100644 --- a/docs/module-doc/modules_8h.html +++ b/docs/module-doc/modules_8h.html @@ -56,7 +56,7 @@

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


    Typedef Documentation

    @@ -83,12 +83,12 @@ Low level definition of a FileReader

    -Definition at line 38 of file modules.h. +Definition at line 44 of file modules.h.

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


    Generated on Wed Jan 22 20:56:47 2003 for InspIRCd by +
    Generated on Thu Jan 23 20:28:58 2003 for InspIRCd by doxygen1.3-rc2
    diff --git a/docs/module-doc/users_8cpp-source.html b/docs/module-doc/users_8cpp-source.html index 8575303e7..9557e2486 100644 --- a/docs/module-doc/users_8cpp-source.html +++ b/docs/module-doc/users_8cpp-source.html @@ -9,99 +9,99 @@

    users.cpp

    Go to the documentation of this file.
    00001 /*
     00002 
     00003 $Log$
    -00003 Revision 1.1  2003/01/23 19:45:58  brain
    -00003 Initial revision
    -00003 
    -00003 Revision 1.6  2003/01/22 20:59:12  brain
    -00003 Added FileReader class documentation
    +00003 Revision 1.2  2003/01/23 20:38:00  brain
    +00003 Updated documentation scripts
     00003 
    -00004 Revision 1.3  2003/01/17 13:21:38  brain
    -00005 Added CONNECT ALLOW and CONNECT DENY config tags
    -00006 Added PASS command
    -00007 
    -00008 Revision 1.2  2003/01/17 10:37:55  brain
    -00009 Added /INVITE command and relevent structures
    +00004 Revision 1.1.1.1  2003/01/23 19:45:58  brain
    +00005 InspIRCd second source tree
    +00006 
    +00007 Revision 1.3  2003/01/17 13:21:38  brain
    +00008 Added CONNECT ALLOW and CONNECT DENY config tags
    +00009 Added PASS command
     00010 
    -00011 Revision 1.1  2003/01/16 01:10:04  brain
    -00012 forgot to add this
    +00011 Revision 1.2  2003/01/17 10:37:55  brain
    +00012 Added /INVITE command and relevent structures
     00013 
    -00014 
    -00015 */
    -00016 
    -00017 #include "inspircd_config.h" 
    -00018 #include "channels.h"
    -00019 #include "users.h"
    -00020 #include "inspircd.h"
    -00021 #include <stdio.h>
    -00022 
    -00023 userrec::userrec()
    -00024 {
    -00025         // the PROPER way to do it, AVOID bzero at *ALL* costs
    -00026         strcpy(nick,"");
    -00027         ip = 0;
    -00028         strcpy(ident,"");
    -00029         strcpy(host,"");
    -00030         strcpy(dhost,"");
    -00031         strcpy(fullname,"");
    -00032         strcpy(modes,"");
    -00033         strcpy(inbuf,"");
    -00034         strcpy(server,"");
    -00035         strcpy(awaymsg,"");
    -00036         fd = lastping = signon = idle_lastmsg = nping = registered = 0;
    -00037         port = bytes_in = bytes_out = cmds_in = cmds_out = 0;
    -00038         haspassed = false;
    -00039         strcpy(result,"");
    -00040         for (int i = 0; i < MAXCHANS; i++)
    -00041         {
    -00042                 chans[i].channel = NULL;
    -00043         }
    -00044         invites.clear();
    -00045 }
    -00046 
    -00047  
    -00048 char* userrec::GetFullHost()
    -00049 {
    -00050         sprintf(result,"%s!%s@%s",nick,ident,dhost);
    -00051         return result;
    -00052 }
    -00053 
    -00054 
    -00055 char* userrec::GetFullRealHost()
    -00056 {
    -00057         sprintf(result,"%s!%s@%s",nick,ident,host);
    -00058         return result;
    -00059 }
    -00060 
    -00061 bool userrec::IsInvited(char* channel)
    -00062 {
    -00063         for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++)
    -00064         {
    -00065                 if (!strcasecmp(i->channel,channel))
    -00066                 {
    -00067                         return true;
    -00068                 }
    -00069         }
    -00070 }
    -00071 
    -00072 void userrec::InviteTo(char* channel)
    -00073 {
    -00074         Invited i;
    -00075         strcpy(i.channel,channel);
    -00076         invites.push_back(i);
    -00077 }
    -00078 
    -00079 void userrec::RemoveInvite(char* channel)
    -00080 {
    -00081         for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++)
    -00082         {
    -00083                 if (!strcasecmp(i->channel,channel))
    -00084                 {
    -00085                         invites.erase(i);
    -00086                         return;
    -00087                 }
    -00088         }
    -00089 }
    -

    Generated on Wed Jan 22 20:56:47 2003 for InspIRCd by +00014 Revision 1.1 2003/01/16 01:10:04 brain +00015 forgot to add this +00016 +00017 +00018 */ +00019 +00020 #include "inspircd_config.h" +00021 #include "channels.h" +00022 #include "users.h" +00023 #include "inspircd.h" +00024 #include <stdio.h> +00025 +00026 userrec::userrec() +00027 { +00028 // the PROPER way to do it, AVOID bzero at *ALL* costs +00029 strcpy(nick,""); +00030 ip = 0; +00031 strcpy(ident,""); +00032 strcpy(host,""); +00033 strcpy(dhost,""); +00034 strcpy(fullname,""); +00035 strcpy(modes,""); +00036 strcpy(inbuf,""); +00037 strcpy(server,""); +00038 strcpy(awaymsg,""); +00039 fd = lastping = signon = idle_lastmsg = nping = registered = 0; +00040 port = bytes_in = bytes_out = cmds_in = cmds_out = 0; +00041 haspassed = false; +00042 strcpy(result,""); +00043 for (int i = 0; i < MAXCHANS; i++) +00044 { +00045 chans[i].channel = NULL; +00046 } +00047 invites.clear(); +00048 } +00049 +00050 +00051 char* userrec::GetFullHost() +00052 { +00053 sprintf(result,"%s!%s@%s",nick,ident,dhost); +00054 return result; +00055 } +00056 +00057 +00058 char* userrec::GetFullRealHost() +00059 { +00060 sprintf(result,"%s!%s@%s",nick,ident,host); +00061 return result; +00062 } +00063 +00064 bool userrec::IsInvited(char* channel) +00065 { +00066 for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++) +00067 { +00068 if (!strcasecmp(i->channel,channel)) +00069 { +00070 return true; +00071 } +00072 } +00073 } +00074 +00075 void userrec::InviteTo(char* channel) +00076 { +00077 Invited i; +00078 strcpy(i.channel,channel); +00079 invites.push_back(i); +00080 } +00081 +00082 void userrec::RemoveInvite(char* channel) +00083 { +00084 for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++) +00085 { +00086 if (!strcasecmp(i->channel,channel)) +00087 { +00088 invites.erase(i); +00089 return; +00090 } +00091 } +00092 } +
    Generated on Thu Jan 23 20:28:57 2003 for InspIRCd by doxygen1.3-rc2
    diff --git a/docs/module-doc/users_8cpp.html b/docs/module-doc/users_8cpp.html index 10c198675..10f8a7134 100644 --- a/docs/module-doc/users_8cpp.html +++ b/docs/module-doc/users_8cpp.html @@ -16,7 +16,7 @@ Go to the source code of this file.
    -
    Generated on Wed Jan 22 20:56:47 2003 for InspIRCd by +
    Generated on Thu Jan 23 20:28:58 2003 for InspIRCd by doxygen1.3-rc2
    diff --git a/docs/module-doc/users_8h-source.html b/docs/module-doc/users_8h-source.html index 446423af1..966673141 100644 --- a/docs/module-doc/users_8h-source.html +++ b/docs/module-doc/users_8h-source.html @@ -9,148 +9,148 @@

    users.h

    Go to the documentation of this file.
    00001 /*
     00002 
     00003 $Log$
    -00003 Revision 1.1  2003/01/23 19:45:58  brain
    -00003 Initial revision
    -00003 
    -00003 Revision 1.6  2003/01/22 20:59:12  brain
    -00003 Added FileReader class documentation
    +00003 Revision 1.2  2003/01/23 20:38:00  brain
    +00003 Updated documentation scripts
     00003 
    -00004 Revision 1.9  2003/01/22 00:44:26  brain
    -00005 Added documentation comments
    +00004 Revision 1.1.1.1  2003/01/23 19:45:58  brain
    +00005 InspIRCd second source tree
     00006 
    -00007 Revision 1.8  2003/01/21 21:11:17  brain
    -00008 Added documentation
    +00007 Revision 1.9  2003/01/22 00:44:26  brain
    +00008 Added documentation comments
     00009 
    -00010 Revision 1.7  2003/01/17 13:21:38  brain
    -00011 Added CONNECT ALLOW and CONNECT DENY config tags
    -00012 Added PASS command
    -00013 
    -00014 Revision 1.6  2003/01/17 10:37:55  brain
    -00015 Added /INVITE command and relevent structures
    +00010 Revision 1.8  2003/01/21 21:11:17  brain
    +00011 Added documentation
    +00012 
    +00013 Revision 1.7  2003/01/17 13:21:38  brain
    +00014 Added CONNECT ALLOW and CONNECT DENY config tags
    +00015 Added PASS command
     00016 
    -00017 Revision 1.5  2003/01/16 20:11:56  brain
    -00018 fixed some ugly pointer bugs (thanks dblack and a|KK|y!)
    +00017 Revision 1.6  2003/01/17 10:37:55  brain
    +00018 Added /INVITE command and relevent structures
     00019 
    -00020 Revision 1.4  2003/01/15 22:47:44  brain
    -00021 Changed user and channel structs to classes (finally)
    +00020 Revision 1.5  2003/01/16 20:11:56  brain
    +00021 fixed some ugly pointer bugs (thanks dblack and a|KK|y!)
     00022 
    -00023 Revision 1.3  2003/01/14 21:14:30  brain
    -00024 added /ISON command (for mIRC etc basic notify)
    +00023 Revision 1.4  2003/01/15 22:47:44  brain
    +00024 Changed user and channel structs to classes (finally)
     00025 
    -00026 
    -00027 */
    -00028 
    -00029 #include "inspircd_config.h" 
    -00030 #include "channels.h"
    +00026 Revision 1.3  2003/01/14 21:14:30  brain
    +00027 added /ISON command (for mIRC etc basic notify)
    +00028 
    +00029 
    +00030 */
     00031 
    -00032 #include <string>
    -00033  
    -00034 #ifndef __USERS_H__ 
    -00035 #define __USERS_H__ 
    -00036  
    -00037 #define STATUS_OP       4
    -00038 #define STATUS_HOP      2
    -00039 #define STATUS_VOICE    1
    -00040 #define STATUS_NORMAL   0
    -00041 
    -00042 #define CC_ALLOW        0
    -00043 #define CC_DENY         1
    +00032 #include "inspircd_config.h" 
    +00033 #include "channels.h"
    +00034 
    +00035 #include <string>
    +00036  
    +00037 #ifndef __USERS_H__ 
    +00038 #define __USERS_H__ 
    +00039  
    +00040 #define STATUS_OP       4
    +00041 #define STATUS_HOP      2
    +00042 #define STATUS_VOICE    1
    +00043 #define STATUS_NORMAL   0
     00044 
    -00047 class Invited
    -00048 {
    -00049  public:
    -00050         char channel[CHANMAX];
    -00051 };
    -00052 
    -00053 
    -00056 class ConnectClass
    -00057 {
    -00058  public:
    -00059         int type;
    -00060         char host[MAXBUF];
    -00061         char pass[MAXBUF];
    -00062 };
    -00063 
    -00066 typedef vector<Invited> InvitedList;
    -00067 
    -00068 
    -00069 
    -00072 typedef vector<ConnectClass> ClassVector;
    -00073 
    -00080 class userrec
    -00081 {
    -00082  private:
    -00083 
    -00086         InvitedList invites;
    -00087  public:
    -00088         
    -00093         char nick[NICKMAX];
    -00094         
    -00097         unsigned long ip;
    -00098 
    -00101         char ident[64];
    -00102 
    -00105         char host[256];
    -00106         
    -00110         char dhost[256];
    -00111         
    -00114         char fullname[128];
    -00115         
    -00120         int fd;
    -00121         
    -00126         char modes[32];
    -00127         
    -00131         char inbuf[MAXBUF];
    -00132         
    -00138         time_t lastping;
    -00139         
    -00142         time_t signon;
    -00143         
    -00147         time_t idle_lastmsg;
    -00148         
    -00153         time_t nping;
    -00154         
    -00159         int registered;
    -00160         
    -00165         ucrec chans[MAXCHANS];
    -00166         
    -00169         char server[256];
    -00170         
    -00174         char awaymsg[512];
    -00175         
    -00178         int port;
    -00179         
    -00183         long bytes_in;
    -00184         
    -00188         long bytes_out;
    -00189         
    -00193         long cmds_in;
    -00194         
    -00198         long cmds_out;
    -00199         
    -00203         char result[256];
    -00204         
    -00209         bool haspassed;
    -00210 
    -00211         userrec();
    -00212         
    -00213         virtual ~userrec() {  }
    -00214         
    -00219         virtual char* GetFullHost();
    -00220         
    -00226         virtual char* GetFullRealHost();
    -00227         
    -00230         virtual bool IsInvited(char* channel);
    -00231         
    -00234         virtual void InviteTo(char* channel);
    -00235         
    -00240         virtual void RemoveInvite(char* channel);
    -00241         
    -00242 };
    -00243 
    -00244 
    -00245 #endif
    -

    Generated on Wed Jan 22 20:56:47 2003 for InspIRCd by +00045 #define CC_ALLOW 0 +00046 #define CC_DENY 1 +00047 +00050 class Invited +00051 { +00052 public: +00053 char channel[CHANMAX]; +00054 }; +00055 +00056 +00059 class ConnectClass +00060 { +00061 public: +00062 int type; +00063 char host[MAXBUF]; +00064 char pass[MAXBUF]; +00065 }; +00066 +00069 typedef vector<Invited> InvitedList; +00070 +00071 +00072 +00075 typedef vector<ConnectClass> ClassVector; +00076 +00083 class userrec +00084 { +00085 private: +00086 +00089 InvitedList invites; +00090 public: +00091 +00096 char nick[NICKMAX]; +00097 +00100 unsigned long ip; +00101 +00104 char ident[64]; +00105 +00108 char host[256]; +00109 +00113 char dhost[256]; +00114 +00117 char fullname[128]; +00118 +00123 int fd; +00124 +00129 char modes[32]; +00130 +00134 char inbuf[MAXBUF]; +00135 +00141 time_t lastping; +00142 +00145 time_t signon; +00146 +00150 time_t idle_lastmsg; +00151 +00156 time_t nping; +00157 +00162 int registered; +00163 +00168 ucrec chans[MAXCHANS]; +00169 +00172 char server[256]; +00173 +00177 char awaymsg[512]; +00178 +00181 int port; +00182 +00186 long bytes_in; +00187 +00191 long bytes_out; +00192 +00196 long cmds_in; +00197 +00201 long cmds_out; +00202 +00206 char result[256]; +00207 +00212 bool haspassed; +00213 +00214 userrec(); +00215 +00216 virtual ~userrec() { } +00217 +00222 virtual char* GetFullHost(); +00223 +00229 virtual char* GetFullRealHost(); +00230 +00233 virtual bool IsInvited(char* channel); +00234 +00237 virtual void InviteTo(char* channel); +00238 +00243 virtual void RemoveInvite(char* channel); +00244 +00245 }; +00246 +00247 +00248 #endif +
    Generated on Thu Jan 23 20:28:58 2003 for InspIRCd by doxygen1.3-rc2
    diff --git a/docs/module-doc/users_8h.html b/docs/module-doc/users_8h.html index 2593a2dcb..7a13bf4a7 100644 --- a/docs/module-doc/users_8h.html +++ b/docs/module-doc/users_8h.html @@ -55,7 +55,7 @@

    -Definition at line 42 of file users.h. +Definition at line 45 of file users.h.

    @@ -79,7 +79,7 @@ Definition at line 42 of fi

    -Definition at line 43 of file users.h. +Definition at line 46 of file users.h.

    @@ -103,7 +103,7 @@ Definition at line 43 of fi

    -Definition at line 38 of file users.h. +Definition at line 41 of file users.h.

    @@ -127,7 +127,7 @@ Definition at line 38 of fi

    -Definition at line 40 of file users.h. +Definition at line 43 of file users.h.

    @@ -151,7 +151,7 @@ Definition at line 40 of fi

    -Definition at line 37 of file users.h. +Definition at line 40 of file users.h.

    @@ -175,7 +175,7 @@ Definition at line 37 of fi

    -Definition at line 39 of file users.h. +Definition at line 42 of file users.h.


    Typedef Documentation

    @@ -202,7 +202,7 @@ Holds a complete list of all allow and deny tags from the configuration file (co

    -Definition at line 72 of file users.h. +Definition at line 75 of file users.h.

    @@ -228,10 +228,10 @@ Holds a complete list of all channels to which a user has been invited and has n

    -Definition at line 66 of file users.h. +Definition at line 69 of file users.h. -


    Generated on Wed Jan 22 20:56:47 2003 for InspIRCd by +
    Generated on Thu Jan 23 20:28:58 2003 for InspIRCd by doxygen1.3-rc2
    -- cgit v1.2.3