From 08e384bb24398224856c44baa51b51977644de9d Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 9 Feb 2003 12:49:00 +0000 Subject: [PATCH] Documentation update, 09/02/03 git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@167 e03df62e-2008-0410-955e-edbf42e46eb7 --- docs/module-doc/annotated.html | 9 +- docs/module-doc/base_8h-source.html | 45 +- docs/module-doc/base_8h.html | 3 +- docs/module-doc/channels_8h-source.html | 247 ++++----- 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 +- .../module-doc/classConfigReader-members.html | 2 +- docs/module-doc/classConfigReader.html | 62 +-- .../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 | 76 +-- 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 | 5 +- docs/module-doc/classModule.html | 126 ++++- .../classModuleFactory-members.html | 2 +- docs/module-doc/classModuleFactory.html | 12 +- docs/module-doc/classServer-members.html | 4 +- docs/module-doc/classServer.html | 263 +++++----- 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 | 58 +- docs/module-doc/classclassbase-members.html | 2 +- docs/module-doc/classclassbase.html | 35 +- docs/module-doc/classclassbase.png | Bin 1753 -> 1842 bytes docs/module-doc/classcommand__t-members.html | 2 +- docs/module-doc/classcommand__t.html | 44 +- docs/module-doc/classconnection-members.html | 42 +- docs/module-doc/classconnection.html | 494 +++++++++++++++--- docs/module-doc/classes.html | 17 +- docs/module-doc/classserverrec-members.html | 61 ++- docs/module-doc/classserverrec.html | 362 ++++--------- docs/module-doc/classucrec-members.html | 2 +- docs/module-doc/classucrec.html | 18 +- docs/module-doc/classuserrec-members.html | 42 +- docs/module-doc/classuserrec.html | 168 +++--- docs/module-doc/connection_8h-source.html | 116 ++-- docs/module-doc/connection_8h.html | 87 ++- docs/module-doc/ctables_8h-source.html | 74 +-- docs/module-doc/ctables_8h.html | 5 +- docs/module-doc/files.html | 2 +- docs/module-doc/functions.html | 122 +++-- docs/module-doc/globals.html | 41 +- docs/module-doc/hierarchy.html | 3 +- docs/module-doc/main.html | 2 +- docs/module-doc/modules_8cpp-source.html | 432 ++++++++------- docs/module-doc/modules_8cpp.html | 91 +++- docs/module-doc/modules_8h-source.html | 271 +++++----- docs/module-doc/modules_8h.html | 170 +++++- docs/module-doc/servers_8cpp-source.html | 104 ++-- docs/module-doc/servers_8cpp.html | 2 +- docs/module-doc/servers_8h-source.html | 93 ++-- docs/module-doc/servers_8h.html | 11 +- docs/module-doc/tree.js | 2 + docs/module-doc/users_8cpp-source.html | 170 +++--- docs/module-doc/users_8cpp.html | 2 +- docs/module-doc/users_8h-source.html | 205 +++----- docs/module-doc/users_8h.html | 18 +- include/base.h | 10 +- include/ctables.h | 28 +- include/servers.h | 40 +- 72 files changed, 2525 insertions(+), 1895 deletions(-) diff --git a/docs/module-doc/annotated.html b/docs/module-doc/annotated.html index 788dc101e..c3e7b5bdb 100644 --- a/docs/module-doc/annotated.html +++ b/docs/module-doc/annotated.html @@ -10,8 +10,8 @@ AdminHolds /ADMIN data This class contains the admin details of the local server BanItemA subclass of HostItem designed to hold channel bans (+b) chanrecHolds all relevent information for a channel - classbase - command_t + classbaseThe base class for all inspircd classes + command_tA structure that defines a command ConfigReaderAllows reading of values from configuration files This class allows a module to read from either the main configuration file (inspircd.conf) or from a module-specified configuration file ConnectClassHolds information relevent to <connect allow> and <connect deny> tags in the config file connection @@ -22,13 +22,14 @@ InviteItemA subclass of HostItem designed to hold channel invites (+I) ModuleBase class for all InspIRCd modules This class is the base class for InspIRCd modules ModuleFactoryInstantiates classes inherited from Module This class creates a class inherited from type Module, using new + packet ServerAllows server output and query functions This class contains methods which allow a module to query the state of the irc server, and produce output to users and other servers - serverrec + serverrecA class that defines the local server or a remote server ucrecHolds a user's modes on a channel This class associates a users privilages with a channel by creating a pointer link between a userrec and chanrec class 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 Mon Jan 27 00:23:11 2003 for InspIRCd by +
Generated on Sun Feb 9 12:48:16 2003 for InspIRCd by doxygen1.3-rc2
diff --git a/docs/module-doc/base_8h-source.html b/docs/module-doc/base_8h-source.html index d98c95631..5580e7e0a 100644 --- a/docs/module-doc/base_8h-source.html +++ b/docs/module-doc/base_8h-source.html @@ -8,35 +8,28 @@ Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

base.h

Go to the documentation of this file.
00001 /*
 00002 
-00003 $Log$
-00003 Revision 1.3  2003/01/27 00:28:57  brain
-00003 ...
 00003 
-00004 Revision 1.1  2003/01/26 23:52:59  brain
-00005 Modified documentation for base classes
-00006 Added base classes
-00007 
-00008 
-00009 */
-00010 
-00011 #include "inspircd_config.h" 
-00012 #include <time.h>
-00013  
-00014 #ifndef __BASE_H__ 
-00015 #define __BASE_H__ 
-00016  
-00017 class classbase
-00018 {
-00019  public:
+00004 */
+00005 
+00006 #include "inspircd_config.h" 
+00007 #include <time.h>
+00008  
+00009 #ifndef __BASE_H__ 
+00010 #define __BASE_H__ 
+00011 
+00012 
+00015 class classbase
+00016 {
+00017  public:
 00020         time_t age;
 00021 
-00022         classbase() { age = time(NULL); }
-00023         ~classbase() { }
-00024 };
-00025 
-00026 #endif
-00027 
-

Generated on Mon Jan 27 00:23:10 2003 for InspIRCd by +00025 classbase() { age = time(NULL); } +00026 ~classbase() { } +00027 }; +00028 +00029 #endif +00030 +
Generated on Sun Feb 9 12:48:15 2003 for InspIRCd by doxygen1.3-rc2
diff --git a/docs/module-doc/base_8h.html b/docs/module-doc/base_8h.html index 3e3f948aa..9128555d9 100644 --- a/docs/module-doc/base_8h.html +++ b/docs/module-doc/base_8h.html @@ -14,8 +14,9 @@

Compounds

class  classbaseThe base class for all inspircd classes. More...

-
Generated on Mon Jan 27 00:23:11 2003 for InspIRCd by +
Generated on Sun Feb 9 12:48:16 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 3a203ce1f..63373103f 100644 --- a/docs/module-doc/channels_8h-source.html +++ b/docs/module-doc/channels_8h-source.html @@ -8,142 +8,119 @@ Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

channels.h

Go to the documentation of this file.
00001 /*
 00002 
-00003 $Log$
-00003 Revision 1.5  2003/01/27 00:28:57  brain
-00003 ...
-00003 
-00004 Revision 1.2  2003/01/26 23:52:59  brain
-00005 Modified documentation for base classes
-00006 Added base classes
-00007 
-00008 Revision 1.1.1.1  2003/01/23 19:45:58  brain
-00009 InspIRCd second source tree
-00010 
-00011 Revision 1.7  2003/01/22 00:44:26  brain
-00012 Added documentation comments
-00013 
-00014 Revision 1.6  2003/01/21 21:11:17  brain
-00015 Added documentation
-00016 
-00017 Revision 1.5  2003/01/16 20:11:55  brain
-00018 fixed some ugly pointer bugs (thanks dblack and a|KK|y!)
-00019 
-00020 Revision 1.4  2003/01/15 22:47:44  brain
-00021 Changed user and channel structs to classes (finally)
-00022 
-00023    
-00024 */
-00025 
-00026 #include "inspircd_config.h"
-00027 #include "base.h"
-00028 #include <time.h>
-00029 #include <vector>
+00003    
+00004 */
+00005 
+00006 #include "inspircd_config.h"
+00007 #include "base.h"
+00008 #include <time.h>
+00009 #include <vector>
+00010 
+00011 #ifndef __CHANNELS_H__
+00012 #define __CHANNELS_H__
+00013 
+00017 class HostItem : public classbase
+00018 {
+00019  public:
+00020         time_t set_time;
+00021         char set_by[NICKMAX];
+00022         char data[MAXBUF];
+00023 
+00024         HostItem() { /* stub */ }
+00025         virtual ~HostItem() { /* stub */ }
+00026 };
+00027 
+00028 // banlist is inherited from HostList mainly for readability
+00029 // reasons only
 00030 
-00031 #ifndef __CHANNELS_H__
-00032 #define __CHANNELS_H__
-00033 
-00037 class HostItem : public classbase
-00038 {
-00039  public:
-00040         time_t set_time;
-00041         char set_by[NICKMAX];
-00042         char data[MAXBUF];
-00043 
-00044         HostItem() { /* stub */ }
-00045         virtual ~HostItem() { /* stub */ }
-00046 };
-00047 
-00048 // banlist is inherited from HostList mainly for readability
-00049 // reasons only
-00050 
-00053 class BanItem : public HostItem
-00054 {
-00055 };
-00056 
-00057 // same with this...
-00058 
-00061 class ExemptItem : public HostItem
-00062 {
-00063 };
-00064 
-00065 // and this...
-00066 
-00069 class InviteItem : public HostItem
-00070 {
-00071 };
-00072 
-00073 
-00076 typedef vector<BanItem>         BanList;
-00077 
-00080 typedef vector<ExemptItem>      ExemptList;
-00081 
-00084 typedef vector<InviteItem>      InviteList;
-00085 
-00090 class chanrec : public classbase
-00091 {
-00092  public:
-00095         char name[CHANMAX]; /* channel name */
-00099         char custom_modes[MAXMODES];     /* modes handled by modules */
-00103         char topic[MAXBUF];
-00106         time_t created;
-00110         time_t topicset;
-00114         char setby[NICKMAX];
-00115 
-00119         long limit;
-00120         
-00124         char key[32];
-00125         
-00128         short int topiclock;
-00129         
-00132         short int noexternal;
-00133         
-00136         short int inviteonly;
-00137         
-00140         short int moderated;
-00141         
-00145         short int secret;
-00146         
-00150         short int c_private;
-00151         
-00154         BanList bans;
-00155 
-00158         chanrec()
-00159         {
-00160                 strcpy(name,"");
-00161                 strcpy(custom_modes,"");
-00162                 strcpy(topic,"");
-00163                 strcpy(setby,"");
-00164                 strcpy(key,"");
-00165                 created = topicset = limit = 0;
-00166                 topiclock = noexternal = inviteonly = moderated = secret = c_private = false;
-00167         }
-00168 
-00169         virtual ~chanrec() { /* stub */ }
-00170 };
-00171 
-00172 /* used to hold a channel and a users modes on that channel, e.g. +v, +h, +o
-00173  * needs to come AFTER struct chanrec */
-00174 
-00175 #define UCMODE_OP      1
-00176 #define UCMODE_VOICE   2
-00177 #define UCMODE_HOP     4
-00178 #define UCMODE_PROTECT 8
-00179 #define UCMODE_FOUNDER 16
-00180  
-00186 class ucrec : public classbase
-00187 {
-00188  public:
-00192         long uc_modes;
-00193         
-00197         chanrec *channel;
-00198 
-00199         ucrec() { /* stub */ }
-00200         virtual ~ucrec() { /* stub */ }
-00201 };
-00202 
-00203 #endif
-00204 
-

Generated on Mon Jan 27 00:23:10 2003 for InspIRCd by +00033 class BanItem : public HostItem +00034 { +00035 }; +00036 +00037 // same with this... +00038 +00041 class ExemptItem : public HostItem +00042 { +00043 }; +00044 +00045 // and this... +00046 +00049 class InviteItem : public HostItem +00050 { +00051 }; +00052 +00053 +00056 typedef vector<BanItem> BanList; +00057 +00060 typedef vector<ExemptItem> ExemptList; +00061 +00064 typedef vector<InviteItem> InviteList; +00065 +00070 class chanrec : public classbase +00071 { +00072 public: +00075 char name[CHANMAX]; /* channel name */ +00079 char custom_modes[MAXMODES]; /* modes handled by modules */ +00083 char topic[MAXBUF]; +00086 time_t created; +00090 time_t topicset; +00094 char setby[NICKMAX]; +00095 +00099 long limit; +00100 +00104 char key[32]; +00105 +00108 short int topiclock; +00109 +00112 short int noexternal; +00113 +00116 short int inviteonly; +00117 +00120 short int moderated; +00121 +00125 short int secret; +00126 +00130 short int c_private; +00131 +00134 BanList bans; +00135 +00138 chanrec() +00139 { +00140 strcpy(name,""); +00141 strcpy(custom_modes,""); +00142 strcpy(topic,""); +00143 strcpy(setby,""); +00144 strcpy(key,""); +00145 created = topicset = limit = 0; +00146 topiclock = noexternal = inviteonly = moderated = secret = c_private = false; +00147 } +00148 +00149 virtual ~chanrec() { /* stub */ } +00150 }; +00151 +00152 /* used to hold a channel and a users modes on that channel, e.g. +v, +h, +o +00153 * needs to come AFTER struct chanrec */ +00154 +00155 #define UCMODE_OP 1 +00156 #define UCMODE_VOICE 2 +00157 #define UCMODE_HOP 4 +00158 #define UCMODE_PROTECT 8 +00159 #define UCMODE_FOUNDER 16 +00160 +00166 class ucrec : public classbase +00167 { +00168 public: +00172 long uc_modes; +00173 +00177 chanrec *channel; +00178 +00179 ucrec() { /* stub */ } +00180 virtual ~ucrec() { /* stub */ } +00181 }; +00182 +00183 #endif +00184 +
Generated on Sun Feb 9 12:48:15 2003 for InspIRCd by doxygen1.3-rc2
diff --git a/docs/module-doc/channels_8h.html b/docs/module-doc/channels_8h.html index 181b61f62..a804e2684 100644 --- a/docs/module-doc/channels_8h.html +++ b/docs/module-doc/channels_8h.html @@ -63,7 +63,7 @@

-Definition at line 179 of file channels.h. +Definition at line 159 of file channels.h.

@@ -87,7 +87,7 @@ Definition at line 179 o

-Definition at line 177 of file channels.h. +Definition at line 157 of file channels.h.

@@ -111,7 +111,7 @@ Definition at line 177 o

-Definition at line 175 of file channels.h. +Definition at line 155 of file channels.h.

@@ -135,7 +135,7 @@ Definition at line 175 o

-Definition at line 178 of file channels.h. +Definition at line 158 of file channels.h.

@@ -159,7 +159,7 @@ Definition at line 178 o

-Definition at line 176 of file channels.h. +Definition at line 156 of file channels.h.


Typedef Documentation

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

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

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

-Definition at line 80 of file channels.h. +Definition at line 60 of file channels.h.

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

-Definition at line 84 of file channels.h. +Definition at line 64 of file channels.h. -


Generated on Mon Jan 27 00:23:11 2003 for InspIRCd by +
Generated on Sun Feb 9 12:48:16 2003 for InspIRCd by doxygen1.3-rc2
diff --git a/docs/module-doc/classAdmin-members.html b/docs/module-doc/classAdmin-members.html index 84be3bb34..58b71a52e 100644 --- a/docs/module-doc/classAdmin-members.html +++ b/docs/module-doc/classAdmin-members.html @@ -14,7 +14,7 @@ NameAdmin NickAdmin ~classbase()classbase [inline] -
Generated on Mon Jan 27 00:23:12 2003 for InspIRCd by +
Generated on Sun Feb 9 12:48:17 2003 for InspIRCd by doxygen1.3-rc2
diff --git a/docs/module-doc/classAdmin.html b/docs/module-doc/classAdmin.html index db34ff821..54cf85837 100644 --- a/docs/module-doc/classAdmin.html +++ b/docs/module-doc/classAdmin.html @@ -32,7 +32,7 @@ It is constructed by class Server, and

-Definition at line 78 of file modules.h.


Constructor & Destructor Documentation

+Definition at line 53 of file modules.h.

Constructor & Destructor Documentation

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

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

-

00036 : Name(name), Email(email), Nick(nick) { };
+
00020 : Name(name), Email(email), Nick(nick) { };
 
@@ -104,7 +104,7 @@ Definition at line 36 o

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

@@ -128,7 +128,7 @@ Definition at line 81 of

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

@@ -152,12 +152,12 @@ Definition at line 81 of

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


The documentation for this class was generated from the following files: -
Generated on Mon Jan 27 00:23:12 2003 for InspIRCd by +
Generated on Sun Feb 9 12:48:17 2003 for InspIRCd by doxygen1.3-rc2
diff --git a/docs/module-doc/classBanItem-members.html b/docs/module-doc/classBanItem-members.html index 479c3c0b2..13a1580a8 100644 --- a/docs/module-doc/classBanItem-members.html +++ b/docs/module-doc/classBanItem-members.html @@ -15,7 +15,7 @@ set_timeHostItem ~classbase()classbase [inline] ~HostItem()HostItem [inline, virtual] -
Generated on Mon Jan 27 00:23:12 2003 for InspIRCd by +
Generated on Sun Feb 9 12:48:17 2003 for InspIRCd by doxygen1.3-rc2
diff --git a/docs/module-doc/classBanItem.html b/docs/module-doc/classBanItem.html index c62638b42..abf3fa706 100644 --- a/docs/module-doc/classBanItem.html +++ b/docs/module-doc/classBanItem.html @@ -25,9 +25,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 33 of file channels.h.
    The documentation for this class was generated from the following file: -
    Generated on Mon Jan 27 00:23:12 2003 for InspIRCd by +
    Generated on Sun Feb 9 12:48:17 2003 for InspIRCd by doxygen1.3-rc2
    diff --git a/docs/module-doc/classConfigReader-members.html b/docs/module-doc/classConfigReader-members.html index 93ae1013f..118ac4b89 100644 --- a/docs/module-doc/classConfigReader-members.html +++ b/docs/module-doc/classConfigReader-members.html @@ -17,7 +17,7 @@ Verify()ConfigReader ~classbase()classbase [inline] ~ConfigReader()ConfigReader -
    Generated on Mon Jan 27 00:23:13 2003 for InspIRCd by +
    Generated on Sun Feb 9 12:48:18 2003 for InspIRCd by doxygen1.3-rc2
    diff --git a/docs/module-doc/classConfigReader.html b/docs/module-doc/classConfigReader.html index 800978c24..6ae16f47a 100644 --- a/docs/module-doc/classConfigReader.html +++ b/docs/module-doc/classConfigReader.html @@ -42,7 +42,7 @@ It may either be instantiated with one parameter or none. Constructing the class

    -Definition at line 237 of file modules.h.


    Constructor & Destructor Documentation

    +Definition at line 218 of file modules.h.

    Constructor & Destructor Documentation

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

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

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

    -References fname. +References fname.

    -

    00165 {
    -00166         fname = CONFIG_FILE;
    -00167 }
    +
    00152 {
    +00153         fname = CONFIG_FILE;
    +00154 }
     
    @@ -112,9 +112,9 @@ Overloaded constructor.

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

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

    -

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

    This method destroys the ConfigReader class.

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

    -

    00171 {
    -00172 }
    +
    00158 {
    +00159 }
     
    @@ -185,13 +185,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 186 of file modules.cpp. +Definition at line 173 of file modules.cpp.

    -References fname. +References fname.

    -

    00187 {
    -00188         return EnumConf(fname.c_str(),tag.c_str());
    -00189 }
    +
    00174 {
    +00175         return EnumConf(fname.c_str(),tag.c_str());
    +00176 }
     
    @@ -240,16 +240,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 177 of file modules.cpp. +Definition at line 164 of file modules.cpp.

    -References fname. +References fname.

    -

    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 }
    +
    00165 {
    +00166         char val[MAXBUF];
    +00167         ReadConf(fname.c_str(),tag.c_str(),name.c_str(),index,val);
    +00168         string s = val;
    +00169         return s;
    +00170 }
     
    @@ -282,11 +282,11 @@ Returns true if a config file is valid.

    This method is unimplemented and will always return true.

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

    -

    00193 {
    -00194         return true;
    -00195 }
    +
    00180 {
    +00181         return true;
    +00182 }
     
    @@ -314,14 +314,14 @@ The filename of the configuration file, as set by the constructor.

    -Definition at line 242 of file modules.h. +Definition at line 223 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 Mon Jan 27 00:23:13 2003 for InspIRCd by +
    Generated on Sun Feb 9 12:48:17 2003 for InspIRCd by doxygen1.3-rc2
    diff --git a/docs/module-doc/classConnectClass-members.html b/docs/module-doc/classConnectClass-members.html index 6dc9ed900..849b00f52 100644 --- a/docs/module-doc/classConnectClass-members.html +++ b/docs/module-doc/classConnectClass-members.html @@ -13,7 +13,7 @@ passConnectClass typeConnectClass ~classbase()classbase [inline] -
    Generated on Mon Jan 27 00:23:13 2003 for InspIRCd by +
    Generated on Sun Feb 9 12:48:18 2003 for InspIRCd by doxygen1.3-rc2
    diff --git a/docs/module-doc/classConnectClass.html b/docs/module-doc/classConnectClass.html index dc8d24db6..ade7d3f0a 100644 --- a/docs/module-doc/classConnectClass.html +++ b/docs/module-doc/classConnectClass.html @@ -28,7 +28,7 @@ Holds information relevent to <connect allow> and <connect deny> tag

    -Definition at line 68 of file users.h.


    Member Data Documentation

    +Definition at line 34 of file users.h.

    Member Data Documentation

    @@ -50,7 +50,7 @@ Definition at line 68 of fi

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

    @@ -74,7 +74,7 @@ Definition at line 72 of fi

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

    @@ -98,12 +98,12 @@ Definition at line 73 of fi

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


    The documentation for this class was generated from the following file: -
    Generated on Mon Jan 27 00:23:13 2003 for InspIRCd by +
    Generated on Sun Feb 9 12:48:18 2003 for InspIRCd by doxygen1.3-rc2
    diff --git a/docs/module-doc/classExemptItem-members.html b/docs/module-doc/classExemptItem-members.html index 97864f2f3..19091ceb7 100644 --- a/docs/module-doc/classExemptItem-members.html +++ b/docs/module-doc/classExemptItem-members.html @@ -15,7 +15,7 @@ set_timeHostItem ~classbase()classbase [inline] ~HostItem()HostItem [inline, virtual] -
    Generated on Mon Jan 27 00:23:13 2003 for InspIRCd by +
    Generated on Sun Feb 9 12:48:18 2003 for InspIRCd by doxygen1.3-rc2
    diff --git a/docs/module-doc/classExemptItem.html b/docs/module-doc/classExemptItem.html index 8c56c9c18..daa23b034 100644 --- a/docs/module-doc/classExemptItem.html +++ b/docs/module-doc/classExemptItem.html @@ -25,9 +25,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 41 of file channels.h.
      The documentation for this class was generated from the following file: -
      Generated on Mon Jan 27 00:23:13 2003 for InspIRCd by +
      Generated on Sun Feb 9 12:48:18 2003 for InspIRCd by doxygen1.3-rc2
      diff --git a/docs/module-doc/classFileReader-members.html b/docs/module-doc/classFileReader-members.html index 3ed03368a..0e8e2ea57 100644 --- a/docs/module-doc/classFileReader-members.html +++ b/docs/module-doc/classFileReader-members.html @@ -17,7 +17,7 @@ LoadFile(string filename)FileReader ~classbase()classbase [inline] ~FileReader()FileReader -
      Generated on Mon Jan 27 00:23:13 2003 for InspIRCd by +
      Generated on Sun Feb 9 12:48:18 2003 for InspIRCd by doxygen1.3-rc2
      diff --git a/docs/module-doc/classFileReader.html b/docs/module-doc/classFileReader.html index ac40e03b9..64b7ecd9c 100644 --- a/docs/module-doc/classFileReader.html +++ b/docs/module-doc/classFileReader.html @@ -32,7 +32,7 @@ int FileSize ()  Returns the size of the file in lines.


      Private Attributes

      -file_cache fc +file_cache fc

      Detailed Description

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

      -Definition at line 282 of file modules.h.


      Constructor & Destructor Documentation

      +Definition at line 263 of file modules.h.

      Constructor & Destructor Documentation

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

      -

      00206 {
      -00207 }
      +
      00193 {
      +00194 }
       
      @@ -108,15 +108,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 198 of file modules.cpp. +Definition at line 185 of file modules.cpp.

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

      -

      00199 {
      -00200         file_cache c;
      -00201         readfile(c,filename.c_str());
      -00202         this->fc = c;
      -00203 }
      +
      00186 {
      +00187         file_cache c;
      +00188         readfile(c,filename.c_str());
      +00189         this->fc = c;
      +00190 }
       
      @@ -149,10 +149,10 @@ Default destructor.

      This deletes the memory allocated to the file.

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

      -

      00217 {
      -00218 }
      +
      00204 {
      +00205 }
       
      @@ -186,13 +186,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 227 of file modules.cpp. +Definition at line 214 of file modules.cpp.

      -References fc. +References fc.

      -

      00228 {
      -00229         return fc.size();
      -00230 }
      +
      00215 {
      +00216         return fc.size();
      +00217 }
       
      @@ -226,15 +226,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 220 of file modules.cpp. +Definition at line 207 of file modules.cpp.

      -References fc. +References fc.

      -

      00221 {
      -00222         if ((x<0) || (x>fc.size()))
      -00223                 return "";
      -00224         return fc[x];
      -00225 }
      +
      00208 {
      +00209         if ((x<0) || (x>fc.size()))
      +00210                 return "";
      +00211         return fc[x];
      +00212 }
       
      @@ -268,15 +268,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 209 of file modules.cpp. +Definition at line 196 of file modules.cpp.

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

      -

      00210 {
      -00211         file_cache c;
      -00212         readfile(c,filename.c_str());
      -00213         this->fc = c;
      -00214 }
      +
      00197 {
      +00198         file_cache c;
      +00199         readfile(c,filename.c_str());
      +00200         this->fc = c;
      +00201 }
       
      @@ -287,7 +287,7 @@ References fc, and -
      file_cache FileReader::fc [private] + file_cache FileReader::fc [private]
      @@ -302,14 +302,14 @@ References
      fc, and

      -Definition at line 284 of file modules.h. +Definition at line 265 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 Mon Jan 27 00:23:13 2003 for InspIRCd by +
      Generated on Sun Feb 9 12:48:18 2003 for InspIRCd by doxygen1.3-rc2
      diff --git a/docs/module-doc/classHostItem-members.html b/docs/module-doc/classHostItem-members.html index bfd0899d3..b49c51521 100644 --- a/docs/module-doc/classHostItem-members.html +++ b/docs/module-doc/classHostItem-members.html @@ -15,7 +15,7 @@ set_timeHostItem ~classbase()classbase [inline] ~HostItem()HostItem [inline, virtual] -
      Generated on Mon Jan 27 00:23:13 2003 for InspIRCd by +
      Generated on Sun Feb 9 12:48:18 2003 for InspIRCd by doxygen1.3-rc2
      diff --git a/docs/module-doc/classHostItem.html b/docs/module-doc/classHostItem.html index ba03e8ccd..11a15f68b 100644 --- a/docs/module-doc/classHostItem.html +++ b/docs/module-doc/classHostItem.html @@ -36,7 +36,7 @@ This class contains a single element in a channel list, such as a banlist.

      -Definition at line 37 of file channels.h.


      Constructor & Destructor Documentation

      +Definition at line 17 of file channels.h.

      Constructor & Destructor Documentation

      @@ -64,9 +64,9 @@ Definition at line 37 of

      -Definition at line 44 of file channels.h. +Definition at line 24 of file channels.h.

      -

      00044 { /* stub */ }
      +
      00024 { /* stub */ }
       
      @@ -97,9 +97,9 @@ Definition at line 44 of

      -Definition at line 45 of file channels.h. +Definition at line 25 of file channels.h.

      -

      00045 { /* stub */ }
      +
      00025 { /* stub */ }
       
      @@ -125,7 +125,7 @@ Definition at line 45 of

      -Definition at line 42 of file channels.h. +Definition at line 22 of file channels.h.

      @@ -149,7 +149,7 @@ Definition at line 42 of

      -Definition at line 41 of file channels.h. +Definition at line 21 of file channels.h.

      @@ -173,12 +173,12 @@ Definition at line 41 of

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


      The documentation for this class was generated from the following file: -
      Generated on Mon Jan 27 00:23:13 2003 for InspIRCd by +
      Generated on Sun Feb 9 12:48:18 2003 for InspIRCd by doxygen1.3-rc2
      diff --git a/docs/module-doc/classInviteItem-members.html b/docs/module-doc/classInviteItem-members.html index c225b6d0d..5e9733a8f 100644 --- a/docs/module-doc/classInviteItem-members.html +++ b/docs/module-doc/classInviteItem-members.html @@ -15,7 +15,7 @@ set_timeHostItem ~classbase()classbase [inline] ~HostItem()HostItem [inline, virtual] -
      Generated on Mon Jan 27 00:23:13 2003 for InspIRCd by +
      Generated on Sun Feb 9 12:48:18 2003 for InspIRCd by doxygen1.3-rc2
      diff --git a/docs/module-doc/classInviteItem.html b/docs/module-doc/classInviteItem.html index 422017781..ffb25afac 100644 --- a/docs/module-doc/classInviteItem.html +++ b/docs/module-doc/classInviteItem.html @@ -25,9 +25,9 @@ A subclass of HostItem designed to h

      -Definition at line 69 of file channels.h.


      The documentation for this class was generated from the following file:
        +Definition at line 49 of file channels.h.
        The documentation for this class was generated from the following file: -
        Generated on Mon Jan 27 00:23:13 2003 for InspIRCd by +
        Generated on Sun Feb 9 12:48:18 2003 for InspIRCd by doxygen1.3-rc2
        diff --git a/docs/module-doc/classInvited-members.html b/docs/module-doc/classInvited-members.html index 87c4aa8da..c0cfa131d 100644 --- a/docs/module-doc/classInvited-members.html +++ b/docs/module-doc/classInvited-members.html @@ -11,7 +11,7 @@ channelInvited classbase()classbase [inline] ~classbase()classbase [inline] -
        Generated on Mon Jan 27 00:23:13 2003 for InspIRCd by +
        Generated on Sun Feb 9 12:48:18 2003 for InspIRCd by doxygen1.3-rc2
        diff --git a/docs/module-doc/classInvited.html b/docs/module-doc/classInvited.html index eb44fc070..2a3c36321 100644 --- a/docs/module-doc/classInvited.html +++ b/docs/module-doc/classInvited.html @@ -26,7 +26,7 @@ Holds a channel name to which a user has been invited.

        -Definition at line 59 of file users.h.


        Member Data Documentation

        +Definition at line 25 of file users.h.

        Member Data Documentation

        @@ -48,14 +48,14 @@ Definition at line 59 of fi

        -Definition at line 62 of file users.h. +Definition at line 28 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 Mon Jan 27 00:23:13 2003 for InspIRCd by +
        Generated on Sun Feb 9 12:48:18 2003 for InspIRCd by doxygen1.3-rc2
        diff --git a/docs/module-doc/classModule-members.html b/docs/module-doc/classModule-members.html index ff26be760..6a1f488fd 100644 --- a/docs/module-doc/classModule-members.html +++ b/docs/module-doc/classModule-members.html @@ -11,13 +11,16 @@ classbase()classbase [inline] GetVersion()Module [virtual] Module()Module + Module::OnPacketReceive(char *p)Module [virtual] + Module::OnPacketTransmit(char *p)Module [virtual] + OnRehash()Module [virtual] OnUserConnect(userrec *user)Module [virtual] OnUserJoin(userrec *user, chanrec *channel)Module [virtual] OnUserPart(userrec *user, chanrec *channel)Module [virtual] OnUserQuit(userrec *user)Module [virtual] ~classbase()classbase [inline] ~Module()Module [virtual] -
        Generated on Mon Jan 27 00:23:13 2003 for InspIRCd by +
        Generated on Sun Feb 9 12:48:18 2003 for InspIRCd by doxygen1.3-rc2
        diff --git a/docs/module-doc/classModule.html b/docs/module-doc/classModule.html index b3c969821..0441e84de 100644 --- a/docs/module-doc/classModule.html +++ b/docs/module-doc/classModule.html @@ -33,6 +33,9 @@  Called when a user joins a channel.

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

        +virtual void Module::OnPacketTransmit (char *p) +virtual void Module::OnPacketReceive (char *p) +virtual void OnRehash ()

        Detailed Description

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

        -Definition at line 90 of file modules.h.


        Constructor & Destructor Documentation

        +Definition at line 65 of file modules.h.

        Constructor & Destructor Documentation

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

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

        -

        00043 { }
        +
        00027 { }
         
        @@ -106,9 +109,9 @@ Default destructor destroys a module class.

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

        -

        00044 { }
        +
        00028 { }
         
        @@ -142,9 +145,100 @@ 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 49 of file modules.cpp. +Definition at line 36 of file modules.cpp.

        -

        00049 { return Version(1,0,0,0); }
        +
        00036 { return Version(1,0,0,0); }
        +
        + + +

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

        +

        +

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

        +

        +

        + + + + +
        + + + + + + + + + +
        void Module::OnRehash   [virtual]
        +
        + + + +
        +   + + +

        + +

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

        +

        00035 { }
         
        @@ -178,9 +272,9 @@ Called when a user connects.

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

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

        -

        00045 { }
        +
        00029 { }
         
        @@ -223,9 +317,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 47 of file modules.cpp. +Definition at line 31 of file modules.cpp.

        -

        00047 { }
        +
        00031 { }
         
        @@ -268,9 +362,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 48 of file modules.cpp. +Definition at line 32 of file modules.cpp.

        -

        00048 { }
        +
        00032 { }
         
        @@ -304,15 +398,15 @@ Called when a user quits.

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

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

        -

        00046 { }
        +
        00030 { }
         

        The documentation for this class was generated from the following files: -
        Generated on Mon Jan 27 00:23:13 2003 for InspIRCd by +
        Generated on Sun Feb 9 12:48:18 2003 for InspIRCd by doxygen1.3-rc2
        diff --git a/docs/module-doc/classModuleFactory-members.html b/docs/module-doc/classModuleFactory-members.html index 99dfc7fdd..01dcc108d 100644 --- a/docs/module-doc/classModuleFactory-members.html +++ b/docs/module-doc/classModuleFactory-members.html @@ -13,7 +13,7 @@ ModuleFactory()ModuleFactory [inline] ~classbase()classbase [inline] ~ModuleFactory()ModuleFactory [inline, virtual] -
        Generated on Mon Jan 27 00:23:13 2003 for InspIRCd by +
        Generated on Sun Feb 9 12:48:18 2003 for InspIRCd by doxygen1.3-rc2
        diff --git a/docs/module-doc/classModuleFactory.html b/docs/module-doc/classModuleFactory.html index 222986dde..cfc0bbd09 100644 --- a/docs/module-doc/classModuleFactory.html +++ b/docs/module-doc/classModuleFactory.html @@ -31,7 +31,7 @@ This is to allow for modules to create many different variants of

        -Definition at line 327 of file modules.h.


        Constructor & Destructor Documentation

        +Definition at line 308 of file modules.h.

        Constructor & Destructor Documentation

        @@ -59,9 +59,9 @@ Definition at line 327 of

        -Definition at line 330 of file modules.h. +Definition at line 311 of file modules.h.

        -

        00330 { }
        +
        00311 { }
         
        @@ -92,9 +92,9 @@ Definition at line 330 of

        -Definition at line 331 of file modules.h. +Definition at line 312 of file modules.h.

        -

        00331 { }
        +
        00312 { }
         
        @@ -131,7 +131,7 @@ Your inherited class of ModuleFactory must return a pointer to your modules.h
      -
      Generated on Mon Jan 27 00:23:13 2003 for InspIRCd by +
      Generated on Sun Feb 9 12:48:18 2003 for InspIRCd by doxygen1.3-rc2
      diff --git a/docs/module-doc/classServer-members.html b/docs/module-doc/classServer-members.html index 1a76f5550..fe0b3416b 100644 --- a/docs/module-doc/classServer-members.html +++ b/docs/module-doc/classServer-members.html @@ -11,13 +11,13 @@ ChanMode(userrec *User, chanrec *Chan)Server [virtual] classbase()classbase [inline] CommonChannels(userrec *u1, userrec *u2)Server [virtual] - Debug(string s)Server [virtual] FindChannel(string channel)Server [virtual] FindNick(string nick)Server [virtual] GetAdmin()Server [virtual] GetNetworkName()Server [virtual] GetServerName()Server [virtual] IsNick(string nick)Server [virtual] + Log(int level, string s)Server [virtual] Send(int Socket, string s)Server [virtual] SendChannel(userrec *User, chanrec *Channel, string s, bool IncludeSender)Server [virtual] SendCommon(userrec *User, string text, bool IncludeSender)Server [virtual] @@ -29,7 +29,7 @@ Server()Server ~classbase()classbase [inline] ~Server()Server [virtual] -
      Generated on Mon Jan 27 00:23:14 2003 for InspIRCd by +
      Generated on Sun Feb 9 12:48:19 2003 for InspIRCd by doxygen1.3-rc2
      diff --git a/docs/module-doc/classServer.html b/docs/module-doc/classServer.html index 53060b08c..0cc7a88d7 100644 --- a/docs/module-doc/classServer.html +++ b/docs/module-doc/classServer.html @@ -25,8 +25,8 @@  Default destructor.

      virtual void SendOpers (string s)  Sends text to all opers.

      -virtual void Debug (string s) - Sends a debug string.

      +virtual void Log (int level, string s) + Writes a log string.

      virtual void Send (int Socket, string s)  Sends a line of text down a TCP/IP socket.

      virtual void SendServ (int Socket, string s) @@ -65,7 +65,7 @@ All modules should instantiate at least one copy of this class, and use its memb

      -Definition at line 132 of file modules.h.


      Constructor & Destructor Documentation

      +Definition at line 113 of file modules.h.

      Constructor & Destructor Documentation

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

      Creates a Server object.

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

      -

      00056 {
      -00057 }
      +
      00043 {
      +00044 }
       
      @@ -131,10 +131,10 @@ Default destructor.

      Destroys a Server object.

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

      -

      00060 {
      -00061 }
      +
      00047 {
      +00048 }
       
      @@ -178,12 +178,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 142 of file modules.cpp. +Definition at line 129 of file modules.cpp.

      -

      00143 {
      -00144         string mode = cmode(User,Chan);
      -00145         return mode;
      -00146 }
      +
      00130 {
      +00131         string mode = cmode(User,Chan);
      +00132         return mode;
      +00133 }
       
      @@ -226,49 +226,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 105 of file modules.cpp. +Definition at line 92 of file modules.cpp.

      -

      00106 {
      -00107         return (common_channels(u1,u2) != 0);
      -00108 }
      -
      - - -

      - - - - -
      - - - - - - - - - - -
      void Server::Debug string   s [virtual]
      -
      - - - -
      -   - - -

      -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 68 of file modules.cpp. -

      -

      00069 {
      -00070         debug("%s",s.c_str());
      -00071 }
      +
      00093 {
      +00094         return (common_channels(u1,u2) != 0);
      +00095 }
       
      @@ -302,11 +264,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 137 of file modules.cpp. +Definition at line 124 of file modules.cpp.

      -

      00138 {
      -00139         return FindChan(channel.c_str());
      -00140 }
      +
      00125 {
      +00126         return FindChan(channel.c_str());
      +00127 }
       
      @@ -340,11 +302,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 132 of file modules.cpp. +Definition at line 119 of file modules.cpp.

      -

      00133 {
      -00134         return Find(nick);
      -00135 }
      +
      00120 {
      +00121         return Find(nick);
      +00122 }
       
      @@ -377,11 +339,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 158 of file modules.cpp. +Definition at line 145 of file modules.cpp.

      -

      00159 {
      -00160         return Admin(getadminname(),getadminemail(),getadminnick());
      -00161 }
      +
      00146 {
      +00147         return Admin(getadminname(),getadminemail(),getadminnick());
      +00148 }
       
      @@ -414,11 +376,11 @@ Returns the network name, global to all linked servers.

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

      -

      00154 {
      -00155         return getnetworkname();
      -00156 }
      +
      00141 {
      +00142         return getnetworkname();
      +00143 }
       
      @@ -451,11 +413,11 @@ Returns the server name of the server where the module is loaded.

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

      -

      00149 {
      -00150         return getservername();
      -00151 }
      +
      00136 {
      +00137         return getservername();
      +00138 }
       
      @@ -489,11 +451,58 @@ Returns true if a nick is valid.

      Nicks for unregistered connections will return false.

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

      -

      00128 {
      -00129         return (isnick(nick.c_str()) != 0);
      -00130 }
      +
      00115 {
      +00116         return (isnick(nick.c_str()) != 0);
      +00117 }
      +
      + + +

      + + + + +
      + + + + + + + + + + + + + + + + + + + +
      void Server::Log int   level,
      string   s
      [virtual]
      +
      + + + +
      +   + + +

      +Writes a log string. +

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

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

      +

      00056 {
      +00057         log(level,"%s",s.c_str());
      +00058 }
       
      @@ -536,11 +545,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 73 of file modules.cpp. +Definition at line 60 of file modules.cpp.

      -

      00074 {
      -00075         Write(Socket,"%s",s.c_str());
      -00076 }
      +
      00061 {
      +00062         Write(Socket,"%s",s.c_str());
      +00063 }
       
      @@ -595,18 +604,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 93 of file modules.cpp. +Definition at line 80 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 }
      +
      00081 {
      +00082         if (IncludeSender)
      +00083         {
      +00084                 WriteChannel(Channel,User,"%s",s.c_str());
      +00085         }
      +00086         else
      +00087         {
      +00088                 ChanExceptSender(Channel,User,"%s",s.c_str());
      +00089         }
      +00090 }
       
      @@ -655,18 +664,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 110 of file modules.cpp. +Definition at line 97 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 }
      +
      00098 {
      +00099         if (IncludeSender)
      +00100         {
      +00101                 WriteCommon(User,"%s",text.c_str());
      +00102         }
      +00103         else
      +00104         {
      +00105                 WriteCommonExcept(User,"%s",text.c_str());
      +00106         }
      +00107 }
       
      @@ -715,11 +724,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 83 of file modules.cpp. +Definition at line 70 of file modules.cpp.

      -

      00084 {
      -00085         WriteFrom(Socket,User,"%s",s.c_str());
      -00086 }
      +
      00071 {
      +00072         WriteFrom(Socket,User,"%s",s.c_str());
      +00073 }
       
      @@ -753,11 +762,11 @@ Sends text to all opers.

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

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

      -

      00064 {
      -00065         WriteOpers("%s",s.c_str());
      -00066 }
      +
      00051 {
      +00052         WriteOpers("%s",s.c_str());
      +00053 }
       
      @@ -800,11 +809,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 78 of file modules.cpp. +Definition at line 65 of file modules.cpp.

      -

      00079 {
      -00080         WriteServ(Socket,"%s",s.c_str());
      -00081 }
      +
      00066 {
      +00067         WriteServ(Socket,"%s",s.c_str());
      +00068 }
       
      @@ -853,11 +862,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 88 of file modules.cpp. +Definition at line 75 of file modules.cpp.

      -

      00089 {
      -00090         WriteTo(Source,Dest,"%s",s.c_str());
      -00091 }
      +
      00076 {
      +00077         WriteTo(Source,Dest,"%s",s.c_str());
      +00078 }
       
      @@ -900,17 +909,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 122 of file modules.cpp. +Definition at line 109 of file modules.cpp.

      -

      00123 {
      -00124         WriteWallOps(User,"%s",text.c_str());
      -00125 }
      +
      00110 {
      +00111         WriteWallOps(User,"%s",text.c_str());
      +00112 }
       

      The documentation for this class was generated from the following files: -
      Generated on Mon Jan 27 00:23:14 2003 for InspIRCd by +
      Generated on Sun Feb 9 12:48:19 2003 for InspIRCd by doxygen1.3-rc2
      diff --git a/docs/module-doc/classVersion-members.html b/docs/module-doc/classVersion-members.html index b98afd8bd..ff4406d4e 100644 --- a/docs/module-doc/classVersion-members.html +++ b/docs/module-doc/classVersion-members.html @@ -15,7 +15,7 @@ RevisionVersion Version(int major, int minor, int revision, int build)Version ~classbase()classbase [inline] -
      Generated on Mon Jan 27 00:23:14 2003 for InspIRCd by +
      Generated on Sun Feb 9 12:48:19 2003 for InspIRCd by doxygen1.3-rc2
      diff --git a/docs/module-doc/classVersion.html b/docs/module-doc/classVersion.html index 2eaa876d9..b2ce7955d 100644 --- a/docs/module-doc/classVersion.html +++ b/docs/module-doc/classVersion.html @@ -33,7 +33,7 @@ A class of type Version is returned by the GetVersion method of the 65 of file modules.h.

      Constructor & Destructor Documentation

      +Definition at line 40 of file modules.h.

      Constructor & Destructor Documentation

      @@ -83,9 +83,9 @@ Definition at line 65 of

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

      -

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

      -Definition at line 68 of file modules.h. +Definition at line 43 of file modules.h.

      @@ -135,7 +135,7 @@ Definition at line 68 of

      -Definition at line 68 of file modules.h. +Definition at line 43 of file modules.h.

      @@ -159,7 +159,7 @@ Definition at line 68 of

      -Definition at line 68 of file modules.h. +Definition at line 43 of file modules.h.

      @@ -183,12 +183,12 @@ Definition at line 68 of

      -Definition at line 68 of file modules.h. +Definition at line 43 of file modules.h.


      The documentation for this class was generated from the following files: -
      Generated on Mon Jan 27 00:23:14 2003 for InspIRCd by +
      Generated on Sun Feb 9 12:48:19 2003 for InspIRCd by doxygen1.3-rc2
      diff --git a/docs/module-doc/classchanrec-members.html b/docs/module-doc/classchanrec-members.html index f455058d0..2239fd027 100644 --- a/docs/module-doc/classchanrec-members.html +++ b/docs/module-doc/classchanrec-members.html @@ -27,7 +27,7 @@ topicsetchanrec ~chanrec()chanrec [inline, virtual] ~classbase()classbase [inline] -
      Generated on Mon Jan 27 00:23:12 2003 for InspIRCd by +
      Generated on Sun Feb 9 12:48:17 2003 for InspIRCd by doxygen1.3-rc2
      diff --git a/docs/module-doc/classchanrec.html b/docs/module-doc/classchanrec.html index eaeb10865..bbb059682 100644 --- a/docs/module-doc/classchanrec.html +++ b/docs/module-doc/classchanrec.html @@ -61,7 +61,7 @@ This class represents a channel, and contains its name, modes, time created, top

      -Definition at line 90 of file channels.h.


      Constructor & Destructor Documentation

      +Definition at line 70 of file channels.h.

      Constructor & Destructor Documentation

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

      -Definition at line 158 of file channels.h. +Definition at line 138 of file channels.h.

      -

      00159         {
      -00160                 strcpy(name,"");
      -00161                 strcpy(custom_modes,"");
      -00162                 strcpy(topic,"");
      -00163                 strcpy(setby,"");
      -00164                 strcpy(key,"");
      -00165                 created = topicset = limit = 0;
      -00166                 topiclock = noexternal = inviteonly = moderated = secret = c_private = false;
      -00167         }
      +
      00139         {
      +00140                 strcpy(name,"");
      +00141                 strcpy(custom_modes,"");
      +00142                 strcpy(topic,"");
      +00143                 strcpy(setby,"");
      +00144                 strcpy(key,"");
      +00145                 created = topicset = limit = 0;
      +00146                 topiclock = noexternal = inviteonly = moderated = secret = c_private = false;
      +00147         }
       
      @@ -132,9 +132,9 @@ Definition at line 158 o

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

      -

      00169 { /* stub */ }
      +
      00149 { /* stub */ }
       
      @@ -162,7 +162,7 @@ The list of all bans set on the channel.

      -Definition at line 154 of file channels.h. +Definition at line 134 of file channels.h.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      -Definition at line 103 of file channels.h. +Definition at line 83 of file channels.h.

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

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

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

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

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


      The documentation for this class was generated from the following file: -
      Generated on Mon Jan 27 00:23:12 2003 for InspIRCd by +
      Generated on Sun Feb 9 12:48:17 2003 for InspIRCd by doxygen1.3-rc2
      diff --git a/docs/module-doc/classclassbase-members.html b/docs/module-doc/classclassbase-members.html index 7c65e50d2..224affe03 100644 --- a/docs/module-doc/classclassbase-members.html +++ b/docs/module-doc/classclassbase-members.html @@ -10,7 +10,7 @@ ageclassbase classbase()classbase [inline] ~classbase()classbase [inline] -
      Generated on Mon Jan 27 00:23:12 2003 for InspIRCd by +
      Generated on Sun Feb 9 12:48:17 2003 for InspIRCd by doxygen1.3-rc2
      diff --git a/docs/module-doc/classclassbase.html b/docs/module-doc/classclassbase.html index f3ef990c0..cc1c66218 100644 --- a/docs/module-doc/classclassbase.html +++ b/docs/module-doc/classclassbase.html @@ -6,7 +6,10 @@
      Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  
      -

      classbase Class Reference

      #include <base.h> +

      classbase Class Reference

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

      +#include <base.h>

      Inheritance diagram for classbase:

      @@ -22,19 +25,27 @@ Invited Module ModuleFactory -Server -ucrec -Version +packet +Server +ucrec +Version List of all members. + +

      Public Methods

       classbase ()
       Constructor, Sets the object's time.

       ~classbase ()

      Public Attributes

      time_t age
       Time that the object was instantiated (used for TS calculation etc).

      -

      Constructor & Destructor Documentation

      +

      Detailed Description

      +The base class for all inspircd classes. +

      + +

      +Definition at line 15 of file base.h.


      Constructor & Destructor Documentation

      @@ -60,11 +71,13 @@

      +Constructor, Sets the object's time. +

      -Definition at line 22 of file base.h. +Definition at line 25 of file base.h.

      -

      00022 { age = time(NULL); }
      +
      00025 { age = time(NULL); }
       
      @@ -95,9 +108,9 @@ Definition at line 22 of fil

      -Definition at line 23 of file base.h. +Definition at line 26 of file base.h.

      -

      00023 { }
      +
      00026 { }
       
      @@ -121,6 +134,8 @@ Definition at line 23 of fil

      +Time that the object was instantiated (used for TS calculation etc). +

      Definition at line 20 of file base.h. @@ -128,7 +143,7 @@ Definition at line 20 of fil


      The documentation for this class was generated from the following file: -
      Generated on Mon Jan 27 00:23:12 2003 for InspIRCd by +
      Generated on Sun Feb 9 12:48:17 2003 for InspIRCd by doxygen1.3-rc2
      diff --git a/docs/module-doc/classclassbase.png b/docs/module-doc/classclassbase.png index 797d1843124131bce8d8ff4619bb63bcb2ed7f02..db77b4fb8d1447ec282045a8889bf39c40211a66 100644 GIT binary patch literal 1842 zcmZvdc~DbX7RGU9%yfmV98n1fjAT*_2n_@X26`lzMx7^vKm#FyC`)7u36C}6AYIT- zBhm`ANJ2_kqClV{OBz}TiV|SpF^Cc*K#=VTA!Z~bcG%L-u5q-g`&V`AoO}QH>ehG8 zx%a9cKt>%v>FMdAe7_|5BN5Wm+YzyI2a=TzomfSJso$vpADvEzq&i&}mm5)pWWTPi zuCA=dx;bRKEyW)=qxZ$aShSwr?ml1A-vZLvib*PChG3X??#HsY_OwG$`b>PvQrHFE zNw;9HQU{yXJJOB0z`y*V3|DcZ-r>0`m7g1r$zSiG&C0xHHnziV>xyy$*8iz?kyj~yP3z`oJvcg;0A!Y^WcK4(Iq5U(=<EO{l} z-n}`?Q7N>!s#9&G&cnT_!NQrH_Y1>zt=MS6823w-J!3~ zL#@P_eFEjZev27KIn}?P;XNFdMyx7vc>;m5$c17*=NHtv0!xh+O7(P+^M$7CwkcS{L+33i;mI*P28o zp;m!Ag!Yw7wt*JR<`>jB_SO@qkLc$gfvH+$ehCWNtTacxedot)fUj7bwY*g$8sMN{ zYi7FD!)DvBM?E!%B0dYM?HZj3yznRlYK-B~|51psTVN);B%ZaXlyUu8{E^KXP_*A| zMBuICn2KFiQX_R0vx^%Jbk7k>QO_st3c%jRWKG)RFoyH0R}n2Gsx&q&U)2dm_U;c-POL2Ulix)q!&M1ip&UZ4=Uzm^LR7q&d5O zhYuFkZDg`cZ3TaC7z)hhaA{kcdyES-(!8A9+>zbCbwovg0<)rA#o3;BRYt9`mkVZR zFIh+4y7q%AxiD`NH^cgxxHuoLC@|7w#!z)di>$j+Rq(mJytD$QU@sw5Ar&e_*0hAz&D3I*-A|0Vzara zq{F+u;WU`2Mmus&Cz^gP^+4R^hD(l5xn|}s(=V~#Nu!j8CNc9!bJB7*4(NYGJc^i_ zal6v)cteP0-2>NR4vgH)tf>5!neqA@VQ6^5=zcz~)p(|Ftqj5z`$v6e2eogsr}b3- zG-YsBA|C8px2vhJyz2@5D~HMT-c%FOYKaEv)c*swU{>PTSb`$`se?A>rb!3Jj))_8jLgRu`hoDQG>7^=yddet75#QU`$e}rQ zzF>`$7)rxN@Q*ENy?z~UT4kmBXf$wePU7|ntw`%b5ELJa360oa&u;rqdsZ?f#yFI> zuQA^ZeYxhg)c_eeB^-&~XAk3_9S5=|@9@ZG2FYe3bE&@59q_Dc8~yQ+BnBs{K=GyR z*MMMpDePnt8cwyaMRdO3tXVV^H_I49Y~qwbD&ujkh)1bWp_P?xN0yOVBk$G+#t6vO z8eh%*JTB7Z)R|lvtvtwVaKl;SneC+1fpj7}_%?~BL;V-L62My+ld}^xy?X*eS{BA2 z2{yffGM;3~ow?N=$CEcX(4#p|b5v!&GuA2+_LPc>C4X;h>xAtIO0cUQ8$CDapTQqJ zwme-zsj=Qm!8B7uub&T7PJk`RW^Hr>b%<=4Y@>i}TM z^2YXf*=Fmnuj--S4t)h2n*ci&yhPFT#mSzydjo-z8@bC4xB@&;ctm)=cN1rGr%~WE zU_0O=2vYZl)-^;mHQnC|71zd1zTP<6uzuz_s7gKY0-Q|pgl66k#d#H6tJ_wZ<2?A! TK6Nbe!|D0@0HlUv5m$ZzU6{7j literal 1753 zcmZ{ldsNbA7{}S#WZ4esa?^p%ZRX5crD+K=aS7(C`SX&QLQ3Xsc|}nn6+BH-v%G}U zv_Ma@#ni(4jd{;NGx2^QSDF}PKe2-hlTg{OowYh=+vlA3JkR^zbH3m2^S&3{0T*4Q zE(`|KJ^UTP6RIK@Y}1bSHbGr{PqzvxM(*ExIcv3AsMTsaOG{7XLET@cv$Hd)TRRV3 z--+`Cj={c_PKCf=I+VkNgI;vD{Gng$oV{LpKyz_85t~<=ib2`O@2S?R7Gf;$BD-Idk|I#QFKW@qui1yTwBJ)L8AQvJ!O0^VWkOE> zLac~(=l0oJ+yDbeE&#!jx!X8vifGdL2zUU8X^K8T6a~|p*&|_o%d`P{8JPcKy5(VX zXzF_7nc3Odv6wMg1xb>-3_47!H(r#n9cN}tpCtdzywmkJ>g}@9HVGh$p0aDFFf$~= z-;$%}(KNgjrH5>~cAR?p$?B^4iLkuw=wmYb{J1(QVJW^n1*sj_>-ND?rh2;zB4&;6QbMbN%O~erk1#nVCuG|$NhKjU11bgUO215OByZB)1c!4G%i+dv;g_+7 zlr#uk6jLDpj* z<>(3a*Cse=N&*+wtSGqAFFFLTorCIdd~a1u4lQ{v2Kmyo_Zz-ve-%lXVc;8vab=p2 z{JC)+vHfzRU4<;4hBe~VB3n$LHLqk;P;(u9M$tOK-w%YLJlO&H5xz~>WpK!T&;HBa zK26R{2i&ECshyLdm&x4FJ?m?9#Su-Uu(PYHJar8Te}l^;G|gF)&|!b^{o&HwW@g%M zo`XQ4XxHzenJvb#%TA|c4dqscwy_&H*4>YmB0$r9rEXT&-0Zr&X-DmcSjT_W}#5i z_3UL4=1j-=DH{SiyDnh%cbR(%BNxBkumOqn4`(A^W%L5z;6FUL(b>CsBB$TMq~|Wn z$HwLAN!yi=YOW5B)sUJV?{als!AvW`a!I1a`xPSYLQ>>e1}l(1;|+hcTTuGmf)7a~ zQnGK-Qnv;a@2te|*rBwv{M4SGUSwU6WRMVts77FfN%XTGd)0)#cyY0}>WZkIaZyAK(kF2@*N|wpmj~W=0$1mr=m{S`XJ6EpngM(3 zfs5j_{_^a4)-f{e>4LrhZ!D}5t{k+e2f(kk3AM?LiDfYA2fxY4xV5Z0Tq*EFTQiO* z`nq1E8Muo#mN1VxP;=;x=w8Lv4fay82-})F*IEr(o%)6{@YVYZ+9f<6+}Du3 z&B?XW!ouzuk95hxZ*%Q*KI%AUip7`qhO8gxrhh-5SKT*or z&Jy5+EqIK@bY_i)`9>-2k{mm`)E_{$ya_Y>uQYdg+)tvOxph>YX}HjO(`IwEE607y z^#P7&TANs$Pj-`zYB=eSl7o>MgCLD>Kz-PZMDLo{4XHuh&uf s`b~-+^c|lJ?hvCZUm2D2u(WamzNI{!J;O!mKpzq8urom5Ii33PPpBA%v;Y7A diff --git a/docs/module-doc/classcommand__t-members.html b/docs/module-doc/classcommand__t-members.html index b213bebef..96ea04262 100644 --- a/docs/module-doc/classcommand__t-members.html +++ b/docs/module-doc/classcommand__t-members.html @@ -16,7 +16,7 @@ total_bytescommand_t use_countcommand_t ~classbase()classbase [inline] -
      Generated on Mon Jan 27 00:23:12 2003 for InspIRCd by +
      Generated on Sun Feb 9 12:48:17 2003 for InspIRCd by doxygen1.3-rc2
      diff --git a/docs/module-doc/classcommand__t.html b/docs/module-doc/classcommand__t.html index 6e1ab9c18..28fe4e37d 100644 --- a/docs/module-doc/classcommand__t.html +++ b/docs/module-doc/classcommand__t.html @@ -6,7 +6,10 @@
      Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  
      -

      command_t Class Reference

      #include <ctables.h> +

      command_t Class Reference

      A structure that defines a command. +More... +

      +#include <ctables.h>

      Inheritance diagram for command_t:

      @@ -17,13 +20,24 @@

      Public Attributes

      char command [MAXBUF] + Command name.

      handlerfunchandler_functionHandler function as in typedef.

      char flags_neededUser flags needed to execute the command or 0.

      int min_paramsMinimum number of parameters command takes.

      long use_countused by /stats m

      long total_bytesused by /stats m

      -

      Member Data Documentation

      +

      Detailed Description

      +A structure that defines a command. +

      + +

      +Definition at line 27 of file ctables.h.


      Member Data Documentation

      @@ -43,9 +57,11 @@ +Definition at line 32 of file ctables.h.

      +Command name. +

      -Definition at line 51 of file ctables.h.

      @@ -67,9 +83,11 @@ Definition at line 51 of

      +User flags needed to execute the command or 0. +

      -Definition at line 53 of file ctables.h. +Definition at line 38 of file ctables.h.

      @@ -91,9 +109,11 @@ Definition at line 53 of

      +Handler function as in typedef. +

      -Definition at line 52 of file ctables.h. +Definition at line 35 of file ctables.h.

      @@ -115,9 +135,11 @@ Definition at line 52 of

      +Minimum number of parameters command takes. +

      -Definition at line 54 of file ctables.h. +Definition at line 41 of file ctables.h.

      @@ -139,9 +161,11 @@ Definition at line 54 of

      +used by /stats m +

      -Definition at line 56 of file ctables.h. +Definition at line 47 of file ctables.h.

      @@ -163,14 +187,16 @@ Definition at line 56 of

      +used by /stats m +

      -Definition at line 55 of file ctables.h. +Definition at line 44 of file ctables.h.


      The documentation for this class was generated from the following file: -
      Generated on Mon Jan 27 00:23:12 2003 for InspIRCd by +
      Generated on Sun Feb 9 12:48:17 2003 for InspIRCd by doxygen1.3-rc2
      diff --git a/docs/module-doc/classconnection-members.html b/docs/module-doc/classconnection-members.html index 6958e0466..fafd98548 100644 --- a/docs/module-doc/classconnection-members.html +++ b/docs/module-doc/classconnection-members.html @@ -8,24 +8,34 @@ Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

      connection Member List

      This is the complete list of members for connection, including all inherited members. - - + + + - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + -
      ageclassbase
      bytes_inconnection
      bytes_outconnection
      BeginLink(char *targethost, int port, char *password)connection
      bytes_inconnection
      bytes_outconnection
      classbase()classbase [inline]
      cmds_inconnection
      cmds_outconnection
      fdconnection
      haspassedconnection
      hostconnection
      idle_lastmsgconnection
      inbufconnection
      ipconnection
      lastpingconnection
      npingconnection
      portconnection
      registeredconnection
      signonconnection
      cmds_inconnection
      cmds_outconnection
      connection()connection
      CreateListener(char *host, int p)connection
      fdconnection
      GenKey()connection
      haspassedconnection
      hostconnection
      idle_lastmsgconnection
      inbufconnection
      ipconnection
      keyconnection
      lastpingconnection
      npingconnection
      portconnection
      RecvPacket(char *message, char *host, int &prt)connection
      registeredconnection
      SendACK(char *host, int port, int reply_id)connection
      SendPacket(char *message, char *host, int port)connection
      SendSYN(char *host, int port)connection
      signonconnection
      TerminateLink(char *targethost)connection
      ~classbase()classbase [inline]

      Generated on Mon Jan 27 00:23:13 2003 for InspIRCd by +
      Generated on Sun Feb 9 12:48:18 2003 for InspIRCd by doxygen1.3-rc2
      diff --git a/docs/module-doc/classconnection.html b/docs/module-doc/classconnection.html index 252cdd795..8e7cfa97f 100644 --- a/docs/module-doc/classconnection.html +++ b/docs/module-doc/classconnection.html @@ -17,25 +17,375 @@ List of all members. + + + + + + + + + + - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + +

      Public Methods

       connection ()
      bool CreateListener (char *host, int p)
      bool BeginLink (char *targethost, int port, char *password)
      void TerminateLink (char *targethost)
      bool SendPacket (char *message, char *host, int port)
      bool RecvPacket (char *message, char *host, int &prt)
      bool SendSYN (char *host, int port)
      bool SendACK (char *host, int port, int reply_id)
      long GenKey ()

      Public Attributes

      int fd
      char host [256]
      long ip
      char inbuf [MAXBUF]
      long bytes_in
      long bytes_out
      long cmds_in
      long cmds_out
      bool haspassed
      int port
      int registered
      time_t lastping
      time_t signon
      time_t idle_lastmsg
      time_t nping
      long key
      int fd
      char host [256]
      long ip
      char inbuf [MAXBUF]
      long bytes_in
      long bytes_out
      long cmds_in
      long cmds_out
      bool haspassed
      int port
      int registered
      time_t lastping
      time_t signon
      time_t idle_lastmsg
      time_t nping
      +

      Constructor & Destructor Documentation

      +

      + + + + +
      + + + + + + + + + +
      connection::connection  
      +
      + + + + + +
      +   + + +

      +

      +


      Member Function Documentation

      +

      + + + + +
      + + + + + + + + + + + + + + + + + + + + + + + + + +
      bool connection::BeginLink char *   targethost,
      int   port,
      char *   password
      +
      + + + + + +
      +   + + +

      +

      +

      + + + + +
      + + + + + + + + + + + + + + + + + + + +
      bool connection::CreateListener char *   host,
      int   p
      +
      + + + + + +
      +   + + +

      +

      +

      + + + + +
      + + + + + + + + + +
      long connection::GenKey  
      +
      + + + + + +
      +   + + +

      +

      +

      + + + + +
      + + + + + + + + + + + + + + + + + + + + + + + + + +
      bool connection::RecvPacket char *   message,
      char *   host,
      int &   prt
      +
      + + + + + +
      +   + + +

      +

      +

      + + + + +
      + + + + + + + + + + + + + + + + + + + + + + + + + +
      bool connection::SendACK char *   host,
      int   port,
      int   reply_id
      +
      + + + + + +
      +   + + +

      +

      +

      + + + + +
      + + + + + + + + + + + + + + + + + + + + + + + + + +
      bool connection::SendPacket char *   message,
      char *   host,
      int   port
      +
      + + + + + +
      +   + + +

      +

      +

      + + + + +
      + + + + + + + + + + + + + + + + + + + +
      bool connection::SendSYN char *   host,
      int   port
      +
      + + + + + +
      +   + + +

      +

      +

      + + + + +
      + + + + + + + + + + +
      void connection::TerminateLink char *   targethost
      +
      + + + + +
      +   + + +

      +


      Member Data Documentation

      -

      +

      +Referenced by userrec::userrec().
      @@ -56,12 +406,12 @@

      -Definition at line 29 of file connection.h. +Definition at line 46 of file connection.h.

      -Referenced by userrec::userrec().

      -

      +

      +Referenced by userrec::userrec().
      @@ -82,12 +432,12 @@ Referenced by userrec::userre

      -Definition at line 30 of file connection.h. +Definition at line 47 of file connection.h.

      -Referenced by userrec::userrec().

      -

      +

      +Referenced by userrec::userrec().
      @@ -108,12 +458,12 @@ Referenced by userrec::userre

      -Definition at line 31 of file connection.h. +Definition at line 48 of file connection.h.

      -Referenced by userrec::userrec().

      -

      +

      +Referenced by userrec::userrec().
      @@ -134,12 +484,12 @@ Referenced by userrec::userre

      -Definition at line 32 of file connection.h. +Definition at line 49 of file connection.h.

      -Referenced by userrec::userrec().

      -

      +

      +Referenced by serverrec::serverrec(), and userrec::userrec().
      @@ -160,12 +510,12 @@ Referenced by userrec::userre

      -Definition at line 25 of file connection.h. +Definition at line 42 of file connection.h.

      -Referenced by serverrec::serverrec(), and userrec::userrec().

      -

      +

      +Referenced by userrec::userrec().
      @@ -186,12 +536,12 @@ Referenced by serverrec::se

      -Definition at line 33 of file connection.h. +Definition at line 50 of file connection.h.

      -Referenced by userrec::userrec().

      -

      +

      +Definition at line 43 of file connection.h.
      @@ -212,10 +562,10 @@ Referenced by userrec::userre

      -Definition at line 26 of file connection.h.

      -

      +

      +Referenced by userrec::userrec().
      @@ -236,12 +586,12 @@ Definition at line 26

      -Definition at line 38 of file connection.h. +Definition at line 55 of file connection.h.

      -Referenced by userrec::userrec().

      -

      +

      +Definition at line 45 of file connection.h.
      @@ -262,10 +612,10 @@ Referenced by userrec::userre

      -Definition at line 28 of file connection.h.

      -

      +

      +Referenced by userrec::userrec().
      @@ -286,12 +636,36 @@ Definition at line 28

      -Definition at line 27 of file connection.h. +Definition at line 44 of file connection.h.

      -Referenced by userrec::userrec().

      -

      +

      + + + + +
      + + +
      long connection::key +
      +
      + + + + + +
      +   + + +

      + +

      +Definition at line 41 of file connection.h.

      +

      +Referenced by serverrec::serverrec(), and userrec::userrec().
      @@ -312,14 +686,12 @@ Referenced by userrec::userre

      -Reimplemented in serverrec. +Definition at line 53 of file connection.h.

      -Definition at line 36 of file connection.h. -

      -Referenced by userrec::userrec().

      -

      +

      +Referenced by userrec::userrec().
      @@ -340,12 +712,12 @@ Referenced by userrec::userre

      -Definition at line 39 of file connection.h. +Definition at line 56 of file connection.h.

      -Referenced by userrec::userrec().

      -

      +

      +Referenced by userrec::userrec().
      @@ -366,12 +738,12 @@ Referenced by userrec::userre

      -Definition at line 34 of file connection.h. +Definition at line 51 of file connection.h.

      -Referenced by userrec::userrec().

      -

      +

      +Referenced by userrec::userrec().
      @@ -392,12 +764,12 @@ Referenced by userrec::userre

      -Definition at line 35 of file connection.h. +Definition at line 52 of file connection.h.

      -Referenced by userrec::userrec().

      -

      +

      +Referenced by serverrec::serverrec(), and userrec::userrec().
      @@ -418,14 +790,14 @@ Referenced by userrec::userre

      -Definition at line 37 of file connection.h. +Definition at line 54 of file connection.h.

      -Referenced by userrec::userrec().


      The documentation for this class was generated from the following file: -
      Generated on Mon Jan 27 00:23:13 2003 for InspIRCd by +
      Generated on Sun Feb 9 12:48:18 2003 for InspIRCd by doxygen1.3-rc2
      diff --git a/docs/module-doc/classes.html b/docs/module-doc/classes.html index 7a7d10acc..27adc49c0 100644 --- a/docs/module-doc/classes.html +++ b/docs/module-doc/classes.html @@ -8,17 +8,18 @@ Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

      InspIRCd Compound Index

        A  
      -
      command_t   
        F  
      -
      InviteItem   serverrec   
      Admin   ConfigReader   FileReader   
        M  
      -
        U  
      +
      command_t   FileReader   Module   serverrec   
      Admin   ConfigReader   
        H  
      +
      ModuleFactory   
        U  
        B  
      -
      ConnectClass   
        H  
      -
      Module   ucrec   
      BanItem   connection   HostItem   ModuleFactory   userrec   
        C  
      +
      ConnectClass   HostItem   
        P  
      +
      ucrec   
      BanItem   connection   
        I  
      +
      packet   userrec   
        C  
        E  
      -
        I  
      -
        S  
      +
      Invited   
        S  
        V  
      -
      chanrec   ExemptItem   Invited   Server   Version   
      classbase   

      Generated on Mon Jan 27 00:23:11 2003 for InspIRCd by +chanrec   ExemptItem   InviteItem   Server   Version   classbase   
        F  
      +
        M  
      +
      Generated on Sun Feb 9 12:48:16 2003 for InspIRCd by doxygen1.3-rc2
      diff --git a/docs/module-doc/classserverrec-members.html b/docs/module-doc/classserverrec-members.html index 47f6ebc32..8755e2145 100644 --- a/docs/module-doc/classserverrec-members.html +++ b/docs/module-doc/classserverrec-members.html @@ -7,41 +7,46 @@
      Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

      serverrec Member List

      This is the complete list of members for serverrec, including all inherited members. - - - + + + - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + - - + + - - + + + + + + - - - - - + + + + + + -
      AddLeaf(serverrec *child)serverrec
      ageclassbase
      bytes_inconnection
      bytes_outconnection
      BeginLink(char *targethost, int port, char *password)connection
      bytes_inconnection
      bytes_outconnection
      classbase()classbase [inline]
      cmds_inconnection
      cmds_outconnection
      connected_atserverrec
      DelLeaf(string n)serverrec
      fdconnection
      haspassedconnection
      hops_awayserverrec
      hostconnection
      idle_lastmsgconnection
      inbufconnection
      ipconnection
      jupiterserverrec
      lastpingserverrec
      leafserverrec [private]
      linktypeserverrec
      cmds_inconnection
      cmds_outconnection
      connection()connection
      CreateListener(char *host, int p)connection
      fdconnection
      GenKey()connection
      haspassedconnection
      hops_awayserverrec
      hostconnection
      idle_lastmsgconnection
      inbufconnection
      ipconnection
      jupiterserverrec
      keyconnection
      lastpingconnection
      nameserverrec
      npingconnection
      opercountserverrec
      npingconnection
      opercountserverrec
      pingtimeserverrec
      portconnection
      registeredconnection
      portconnection
      RecvPacket(char *message, char *host, int &prt)connection
      registeredconnection
      SendACK(char *host, int port, int reply_id)connection
      SendPacket(char *message, char *host, int port)connection
      SendSYN(char *host, int port)connection
      serverrec()serverrec
      serverrec(char *n, int link_t, long ver, bool jupe)serverrec
      signonconnection
      usercountserverrec
      usercount_iserverrec
      versionserverrec
      serverrec(char *n, long ver, bool jupe)serverrec
      signonconnection
      TerminateLink(char *targethost)connection
      usercountserverrec
      usercount_iserverrec
      versionserverrec
      ~classbase()classbase [inline]
      ~serverrec()serverrec

      Generated on Mon Jan 27 00:23:14 2003 for InspIRCd by +
      Generated on Sun Feb 9 12:48:19 2003 for InspIRCd by doxygen1.3-rc2
      diff --git a/docs/module-doc/classserverrec.html b/docs/module-doc/classserverrec.html index d06a6e52d..b3fc52893 100644 --- a/docs/module-doc/classserverrec.html +++ b/docs/module-doc/classserverrec.html @@ -6,7 +6,10 @@
      Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  
      -

      serverrec Class Reference

      #include <servers.h> +

      serverrec Class Reference

      A class that defines the local server or a remote server. +More... +

      +#include <servers.h>

      Inheritance diagram for serverrec:

      @@ -18,26 +21,35 @@

      Public Methods

       serverrec () - serverrec (char *n, int link_t, long ver, bool jupe) + Constructor.

      serverrec (char *n, long ver, bool jupe) + Constructor which initialises some of the main variables.

       ~serverrec () -void AddLeaf (serverrec *child) -void DelLeaf (string n) + Destructor.


      Public Attributes

      char name [MAXBUF] -int pingtime -int linktype -time_t lastping -long usercount_i -long usercount -long opercount -time_t connected_at -time_t hops_away -long version -bool jupiter -

      Private Attributes

      -map< string, serverrec * > leafserver name

      +long pingtimelast ping response (ms)

      +long usercount_iinvisible users on server

      +long usercountnon-invisible users on server

      +long opercountopers on server

      +int hops_awaynumber of hops away (for quick access)

      +long versionircd version

      +bool jupiteris a JUPE server (faked to enforce a server ban)

      -

      Constructor & Destructor Documentation

      +

      Detailed Description

      +A class that defines the local server or a remote server. +

      + +

      +Definition at line 19 of file servers.h.


      Constructor & Destructor Documentation

      @@ -63,24 +75,24 @@

      +Constructor. +

      -Definition at line 20 of file servers.cpp. +Definition at line 12 of file servers.cpp.

      -References connected_at, connection::fd, hops_away, jupiter, lastping, leaf, LINK_ACTIVE, linktype, opercount, pingtime, usercount, usercount_i, and version. +References connection::fd, hops_away, jupiter, connection::lastping, opercount, pingtime, connection::signon, usercount, usercount_i, and version.

      -

      00021 {
      -00022         leaf.clear();
      -00023         strcpy(name,"");
      -00024         pingtime = 0;
      -00025         linktype = LINK_ACTIVE;
      -00026         lastping = time(NULL);
      -00027         usercount_i = usercount = opercount = version = 0;
      -00028         hops_away = 1;
      -00029         connected_at = time(NULL);
      -00030         jupiter = false;
      -00031         fd = 0;
      -00032 }
      +
      00013 {
      +00014         strcpy(name,"");
      +00015         pingtime = 0;
      +00016         lastping = time(NULL);
      +00017         usercount_i = usercount = opercount = version = 0;
      +00018         hops_away = 1;
      +00019         signon = time(NULL);
      +00020         jupiter = false;
      +00021         fd = 0;
      +00022 }
       
      @@ -95,12 +107,6 @@ References connected_at, char *    n, - - - - int  -   link_t, - @@ -131,24 +137,24 @@ References connected_at,

      +Constructor which initialises some of the main variables. +

      -Definition at line 39 of file servers.cpp. +Definition at line 29 of file servers.cpp.

      -References connected_at, connection::fd, hops_away, jupiter, lastping, leaf, linktype, opercount, usercount, usercount_i, and version. +References connection::fd, hops_away, jupiter, connection::lastping, opercount, connection::signon, usercount, usercount_i, and version.

      -

      00040 {
      -00041         leaf.clear();
      -00042         strcpy(name,n);
      -00043         linktype = link_t;
      -00044         lastping = time(NULL);
      -00045         usercount_i = usercount = opercount = 0;
      -00046         version = ver;
      -00047         hops_away = 1;
      -00048         connected_at = time(NULL);
      -00049         jupiter = jupe;
      -00050         fd = 0;
      -00051 }
      +
      00030 {
      +00031         strcpy(name,n);
      +00032         lastping = time(NULL);
      +00033         usercount_i = usercount = opercount = 0;
      +00034         version = ver;
      +00035         hops_away = 1;
      +00036         signon = time(NULL);
      +00037         jupiter = jupe;
      +00038         fd = 0;
      +00039 }
       
      @@ -177,103 +183,25 @@ References connected_at,

      - -

      -Definition at line 35 of file servers.cpp. -

      -

      00036 {
      -00037 }
      -
      - - -

      Member Function Documentation

      -

      - - - - -
      - - - - - - - - - - -
      void serverrec::AddLeaf serverrec *   child
      -
      - - - - - -
      -   - - +Destructor.

      -Definition at line 53 of file servers.cpp. +Definition at line 25 of file servers.cpp.

      -References leaf, and name. -

      -

      00054 {
      -00055         leaf[child->name] = child;
      -00056 }
      -
      -

      - - - - -
      - - - - - - - - - - -
      void serverrec::DelLeaf string   n
      -
      - - - -
      -   - - -

      - -

      -Definition at line 58 of file servers.cpp. -

      -References leaf. -

      -

      00059 {
      -00060         server_list::iterator i = leaf.find(n);
      -00061 
      -00062         if (i != leaf.end())
      -00063                 leaf.erase(i);
      -00064 }
      +
      00026 {
      +00027 }
       


      Member Data Documentation

      -

      +

      @@ -286,40 +214,16 @@ References leaf. - -
      -
      time_t serverrec::connected_at + int serverrec::hops_away

      - -

      -Definition at line 37 of file servers.h. -

      -Referenced by serverrec().

      -

      - - - - -
      - - -
      time_t serverrec::hops_away -
      -
      - - - - +Referenced by serverrec().
      -   - - +number of hops away (for quick access)

      -Definition at line 38 of file servers.h. +Definition at line 40 of file servers.h.

      -Referenced by serverrec().

      -

      +

      - -
      @@ -338,91 +242,13 @@ Referenced by serverrec()

      - -

      -Definition at line 40 of file servers.h. -

      -Referenced by serverrec().

      -

      - - - - -
      - - -
      time_t serverrec::lastping -
      -
      - - - - - -
      -   - - +is a JUPE server (faked to enforce a server ban)

      -Reimplemented from connection. +Definition at line 46 of file servers.h.

      -Definition at line 33 of file servers.h. -

      -Referenced by serverrec().

      -

      - - - - -
      - - -
      map<string, serverrec*> serverrec::leaf [private] -
      -
      - - - - - -
      -   - - -

      - -

      -Definition at line 28 of file servers.h. -

      -Referenced by AddLeaf(), DelLeaf(), and serverrec().

      -

      - - - - -
      - - -
      int serverrec::linktype -
      -
      - - - - +Referenced by serverrec().
      -   - - -

      - -

      -Definition at line 32 of file servers.h. -

      -Referenced by serverrec().

      @@ -444,14 +270,14 @@ Referenced by serverrec()

      +server name +

      -Definition at line 30 of file servers.h. -

      -Referenced by AddLeaf(). +Definition at line 25 of file servers.h. -

      +

      +Referenced by serverrec().
      @@ -470,11 +296,13 @@ Referenced by AddLeaf()

      +opers on server +

      -Definition at line 36 of file servers.h. +Definition at line 37 of file servers.h.

      -Referenced by serverrec().

      @@ -483,7 +311,7 @@ Referenced by serverrec() -
      int serverrec::pingtime + long serverrec::pingtime
      @@ -496,14 +324,16 @@ Referenced by
      serverrec()

      +last ping response (ms) +

      -Definition at line 31 of file servers.h. +Definition at line 28 of file servers.h.

      -Referenced by serverrec(). +Referenced by serverrec(). -

      +

      +Referenced by serverrec().
      @@ -522,14 +352,16 @@ Referenced by serverrec()

      +non-invisible users on server +

      -Definition at line 35 of file servers.h. +Definition at line 34 of file servers.h.

      -Referenced by serverrec().

      -

      +

      +Referenced by serverrec().
      @@ -548,14 +380,16 @@ Referenced by serverrec()

      +invisible users on server +

      -Definition at line 34 of file servers.h. +Definition at line 31 of file servers.h.

      -Referenced by serverrec().

      -

      +

      +Referenced by serverrec().
      @@ -574,16 +408,18 @@ Referenced by serverrec()

      +ircd version +

      -Definition at line 39 of file servers.h. +Definition at line 43 of file servers.h.

      -Referenced by serverrec().


      The documentation for this class was generated from the following files: -
      Generated on Mon Jan 27 00:23:14 2003 for InspIRCd by +
      Generated on Sun Feb 9 12:48:19 2003 for InspIRCd by doxygen1.3-rc2
      diff --git a/docs/module-doc/classucrec-members.html b/docs/module-doc/classucrec-members.html index 41510ca28..14153f13d 100644 --- a/docs/module-doc/classucrec-members.html +++ b/docs/module-doc/classucrec-members.html @@ -14,7 +14,7 @@ ucrec()ucrec [inline] ~classbase()classbase [inline] ~ucrec()ucrec [inline, virtual] -
      Generated on Mon Jan 27 00:23:14 2003 for InspIRCd by +
      Generated on Sun Feb 9 12:48:19 2003 for InspIRCd by doxygen1.3-rc2
      diff --git a/docs/module-doc/classucrec.html b/docs/module-doc/classucrec.html index d380c0c6f..d2cd28f1a 100644 --- a/docs/module-doc/classucrec.html +++ b/docs/module-doc/classucrec.html @@ -34,7 +34,7 @@ The uc_modes member holds a bitmask of which privilages the user has on the chan

      -Definition at line 186 of file channels.h.


      Constructor & Destructor Documentation

      +Definition at line 166 of file channels.h.

      Constructor & Destructor Documentation

      @@ -62,9 +62,9 @@ Definition at line 186 o

      -Definition at line 199 of file channels.h. +Definition at line 179 of file channels.h.

      -

      00199 { /* stub */ }
      +
      00179 { /* stub */ }
       
      @@ -95,9 +95,9 @@ Definition at line 199 o

      -Definition at line 200 of file channels.h. +Definition at line 180 of file channels.h.

      -

      00200 { /* stub */ }
      +
      00180 { /* stub */ }
       
      @@ -125,9 +125,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 197 of file channels.h. +Definition at line 177 of file channels.h.

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

      @@ -153,12 +153,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 192 of file channels.h. +Definition at line 172 of file channels.h.


      The documentation for this class was generated from the following file: -
      Generated on Mon Jan 27 00:23:14 2003 for InspIRCd by +
      Generated on Sun Feb 9 12:48:19 2003 for InspIRCd by doxygen1.3-rc2
      diff --git a/docs/module-doc/classuserrec-members.html b/docs/module-doc/classuserrec-members.html index 2c9108035..012477a88 100644 --- a/docs/module-doc/classuserrec-members.html +++ b/docs/module-doc/classuserrec-members.html @@ -9,40 +9,50 @@

      userrec Member List

      This is the complete list of members for userrec, including all inherited members. - - + + + - - + + + + - + + - - + + - - + + - + - + + - - - + + + + + + + - + + -
      ageclassbase
      awaymsguserrec
      bytes_inconnection
      bytes_outconnection
      BeginLink(char *targethost, int port, char *password)connection
      bytes_inconnection
      bytes_outconnection
      chansuserrec
      classbase()classbase [inline]
      cmds_inconnection
      cmds_outconnection
      cmds_inconnection
      cmds_outconnection
      connection()connection
      CreateListener(char *host, int p)connection
      dhostuserrec
      fdconnection
      fdconnection
      fullnameuserrec
      GenKey()connection
      GetFullHost()userrec [virtual]
      GetFullRealHost()userrec [virtual]
      haspassedconnection
      hostconnection
      haspassedconnection
      hostconnection
      identuserrec
      idle_lastmsgconnection
      inbufconnection
      idle_lastmsgconnection
      inbufconnection
      invitesuserrec [private]
      InviteTo(char *channel)userrec [virtual]
      ipconnection
      ipconnection
      IsInvited(char *channel)userrec [virtual]
      lastpingconnection
      keyconnection
      lastpingconnection
      modesuserrec
      nickuserrec
      npingconnection
      portconnection
      registeredconnection
      npingconnection
      portconnection
      RecvPacket(char *message, char *host, int &prt)connection
      registeredconnection
      RemoveInvite(char *channel)userrec [virtual]
      resultuserrec
      SendACK(char *host, int port, int reply_id)connection
      SendPacket(char *message, char *host, int port)connection
      SendSYN(char *host, int port)connection
      serveruserrec
      signonconnection
      signonconnection
      TerminateLink(char *targethost)connection
      userrec()userrec
      ~classbase()classbase [inline]
      ~userrec()userrec [inline, virtual]

      Generated on Mon Jan 27 00:23:14 2003 for InspIRCd by +
      Generated on Sun Feb 9 12:48:19 2003 for InspIRCd by doxygen1.3-rc2
      diff --git a/docs/module-doc/classuserrec.html b/docs/module-doc/classuserrec.html index aa54ae1f8..4a9b325d0 100644 --- a/docs/module-doc/classuserrec.html +++ b/docs/module-doc/classuserrec.html @@ -61,7 +61,7 @@ Everything about a connection is stored here primarily, from the user's socket I

      -Definition at line 92 of file users.h.


      Constructor & Destructor Documentation

      +Definition at line 58 of file users.h.

      Constructor & Destructor Documentation

      @@ -89,32 +89,32 @@ Definition at line 92 of fi

      -Definition at line 26 of file users.cpp. +Definition at line 11 of file users.cpp.

      -References connection::bytes_in, connection::bytes_out, ucrec::channel, chans, connection::cmds_in, connection::cmds_out, connection::fd, connection::haspassed, connection::idle_lastmsg, invites, connection::ip, connection::lastping, connection::nping, connection::port, connection::registered, and connection::signon. +References connection::bytes_in, connection::bytes_out, ucrec::channel, chans, connection::cmds_in, connection::cmds_out, connection::fd, connection::haspassed, connection::idle_lastmsg, invites, connection::ip, connection::lastping, connection::nping, connection::port, connection::registered, and connection::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 }
      +
      00012 {
      +00013         // the PROPER way to do it, AVOID bzero at *ALL* costs
      +00014         strcpy(nick,"");
      +00015         ip = 0;
      +00016         strcpy(ident,"");
      +00017         strcpy(host,"");
      +00018         strcpy(dhost,"");
      +00019         strcpy(fullname,"");
      +00020         strcpy(modes,"");
      +00021         strcpy(inbuf,"");
      +00022         strcpy(server,"");
      +00023         strcpy(awaymsg,"");
      +00024         fd = lastping = signon = idle_lastmsg = nping = registered = 0;
      +00025         port = bytes_in = bytes_out = cmds_in = cmds_out = 0;
      +00026         haspassed = false;
      +00027         strcpy(result,"");
      +00028         for (int i = 0; i < MAXCHANS; i++)
      +00029         {
      +00030                 chans[i].channel = NULL;
      +00031         }
      +00032         invites.clear();
      +00033 }
       
      @@ -145,9 +145,9 @@ References connection::byt

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

      -

      00144 {  }
      +
      00110 {  }
       
      @@ -181,14 +181,14 @@ Returns the full displayed host of the user This member function returns the hos

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

      -References result. +References result.

      -

      00052 {
      -00053         sprintf(result,"%s!%s@%s",nick,ident,dhost);
      -00054         return result;
      -00055 }
      +
      00037 {
      +00038         sprintf(result,"%s!%s@%s",nick,ident,dhost);
      +00039         return result;
      +00040 }
       
      @@ -221,14 +221,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 58 of file users.cpp. +Definition at line 43 of file users.cpp.

      -References result. +References result.

      -

      00059 {
      -00060         sprintf(result,"%s!%s@%s",nick,ident,host);
      -00061         return result;
      -00062 }
      +
      00044 {
      +00045         sprintf(result,"%s!%s@%s",nick,ident,host);
      +00046         return result;
      +00047 }
       
      @@ -262,15 +262,15 @@ Adds a channel to a users invite list (invites them to a channel).

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

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

      -

      00076 {
      -00077         Invited i;
      -00078         strcpy(i.channel,channel);
      -00079         invites.push_back(i);
      -00080 }
      +
      00061 {
      +00062         Invited i;
      +00063         strcpy(i.channel,channel);
      +00064         invites.push_back(i);
      +00065 }
       
      @@ -304,19 +304,19 @@ Returns true if a user is invited to a channel.

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

      -References invites. +References invites.

      -

      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 }
      +
      00050 {
      +00051         for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++)
      +00052         {
      +00053                 if (!strcasecmp(i->channel,channel))
      +00054                 {
      +00055                         return true;
      +00056                 }
      +00057         }
      +00058 }
       
      @@ -350,20 +350,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 82 of file users.cpp. +Definition at line 67 of file users.cpp.

      -References invites. +References invites.

      -

      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 }
      +
      00068 {
      +00069         for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++)
      +00070         {
      +00071                 if (!strcasecmp(i->channel,channel))
      +00072                 {
      +00073                         invites.erase(i);
      +00074                         return;
      +00075                 }
      +00076         }
      +00077 }
       
      @@ -391,7 +391,7 @@ The user's away message.

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

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

      @@ -415,9 +415,9 @@ Definition at line 135 of f

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

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

      @@ -441,9 +441,9 @@ Referenced by userrec().

      The host displayed to non-opers (used for cloaking etc).

      -This usually matches the value of userrec::host. +This usually matches the value of userrec::host.

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

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

      -Definition at line 118 of file users.h. +Definition at line 84 of file users.h.

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

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

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

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

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

      @@ -549,7 +549,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 124 of file users.h. +Definition at line 90 of file users.h.

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

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

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

      @@ -601,9 +601,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 140 of file users.h. +Definition at line 106 of file users.h.

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

      @@ -629,12 +629,12 @@ The server the user is connected to.

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


      The documentation for this class was generated from the following files: -
      Generated on Mon Jan 27 00:23:14 2003 for InspIRCd by +
      Generated on Sun Feb 9 12:48:19 2003 for InspIRCd by doxygen1.3-rc2
      diff --git a/docs/module-doc/connection_8h-source.html b/docs/module-doc/connection_8h-source.html index db7e86574..cfce346f5 100644 --- a/docs/module-doc/connection_8h-source.html +++ b/docs/module-doc/connection_8h-source.html @@ -8,52 +8,76 @@ Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

      connection.h

      Go to the documentation of this file.
      00001 /*
       00002 
      -00003 $Log$
      -00003 Revision 1.3  2003/01/27 00:28:57  brain
      -00003 ...
      -00003 
      -00004 Revision 1.1  2003/01/26 23:52:59  brain
      -00005 Modified documentation for base classes
      -00006 Added base classes
      -00007 
      -00008 Revision 1.1  2003/01/26 20:15:00  brain
      -00009 Added server classes for linking
      -00010 
      -00011 
      -00012 */
      -00013 
      -00014 #include "inspircd_config.h" 
      -00015 #include "base.h"
      -00016 #include <string>
      -00017 #include <map.h>
      -00018  
      -00019 #ifndef __CONNECTION_H__ 
      -00020 #define __CONNECTION_H__ 
      -00021  
      -00022 class connection : public classbase
      -00023 {
      -00024  public:
      -00025         int fd;                 // file descriptor
      -00026         char host[256];         // hostname
      -00027         long ip;                // ipv4 address
      -00028         char inbuf[MAXBUF];     // recvQ
      -00029         long bytes_in;
      -00030         long bytes_out;
      -00031         long cmds_in;
      -00032         long cmds_out;
      -00033         bool haspassed;
      -00034         int port;
      -00035         int registered;
      -00036         time_t lastping;
      -00037         time_t signon;
      -00038         time_t idle_lastmsg;
      -00039         time_t nping;
      -00040 };
      -00041 
      -00042 
      -00043 #endif
      -00044 
      -

      Generated on Mon Jan 27 00:23:10 2003 for InspIRCd by +00003 */ +00004 +00005 #include "inspircd_config.h" +00006 #include "base.h" +00007 #include <string> +00008 #include <map.h> +00009 #include <sys/socket.h> +00010 #include <sys/types.h> +00011 #include <netdb.h> +00012 #include <netinet/in.h> +00013 #include <unistd.h> +00014 #include <errno.h> +00015 #include <time.h> +00016 +00017 #ifndef __CONNECTION_H__ +00018 #define __CONNECTION_H__ +00019 +00020 #define PT_SYN_ONLY 0 +00021 #define PT_ACK_ONLY 1 +00022 #define PT_SYN_WITH_DATA 2 +00023 +00024 +00025 class packet : public classbase +00026 { +00027 public: +00028 long key; +00029 short int id; +00030 short int type; +00031 char data[MAXBUF]; +00032 +00033 packet(); +00034 ~packet(); +00035 }; +00036 +00037 +00038 class connection : public classbase +00039 { +00040 public: +00041 long key; +00042 int fd; // file descriptor +00043 char host[256]; // hostname +00044 long ip; // ipv4 address +00045 char inbuf[MAXBUF]; // recvQ +00046 long bytes_in; +00047 long bytes_out; +00048 long cmds_in; +00049 long cmds_out; +00050 bool haspassed; +00051 int port; +00052 int registered; +00053 time_t lastping; +00054 time_t signon; +00055 time_t idle_lastmsg; +00056 time_t nping; +00057 +00058 connection(); +00059 bool CreateListener(char* host, int p); +00060 bool BeginLink(char* targethost, int port, char* password); +00061 void TerminateLink(char* targethost); +00062 bool SendPacket(char *message, char* host, int port); +00063 bool RecvPacket(char *message, char* host, int &prt); +00064 bool SendSYN(char* host, int port); +00065 bool SendACK(char* host, int port, int reply_id); +00066 long GenKey(); +00067 }; +00068 +00069 +00070 #endif +00071 +

      Generated on Sun Feb 9 12:48:16 2003 for InspIRCd by doxygen1.3-rc2
      diff --git a/docs/module-doc/connection_8h.html b/docs/module-doc/connection_8h.html index 66312ea7b..ba69b2e5d 100644 --- a/docs/module-doc/connection_8h.html +++ b/docs/module-doc/connection_8h.html @@ -10,14 +10,99 @@ #include "base.h"
      #include <string>
      #include <map.h>
      +#include <sys/socket.h>
      +#include <sys/types.h>
      +#include <netdb.h>
      +#include <netinet/in.h>
      +#include <unistd.h>
      +#include <errno.h>
      +#include <time.h>

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

      Compounds

      class  connection
      class  packet

      Defines

      #define PT_SYN_ONLY   0
      #define PT_ACK_ONLY   1
      #define PT_SYN_WITH_DATA   2
      -


      Generated on Mon Jan 27 00:23:11 2003 for InspIRCd by +

      Define Documentation

      +

      + + + + +
      + + +
      #define PT_ACK_ONLY   1 +
      +
      + + + + + +
      +   + + +

      + +

      +Definition at line 21 of file connection.h.

      +

      + + + + +
      + + +
      #define PT_SYN_ONLY   0 +
      +
      + + + + + +
      +   + + +

      + +

      +Definition at line 20 of file connection.h.

      +

      + + + + +
      + + +
      #define PT_SYN_WITH_DATA   2 +
      +
      + + + + + +
      +   + + +

      + +

      +Definition at line 22 of file connection.h.

      +


      Generated on Sun Feb 9 12:48:16 2003 for InspIRCd by doxygen1.3-rc2
      diff --git a/docs/module-doc/ctables_8h-source.html b/docs/module-doc/ctables_8h-source.html index 83a43b618..9f8767780 100644 --- a/docs/module-doc/ctables_8h-source.html +++ b/docs/module-doc/ctables_8h-source.html @@ -20,56 +20,30 @@ 00012 * the file COPYING for details. 00013 * 00014 * --------------------------------------------------- -00015 -00016 $Log$ -00016 Revision 1.3 2003/01/27 00:28:57 brain -00016 ... -00016 -00017 Revision 1.2 2003/01/26 23:52:59 brain -00018 Modified documentation for base classes -00019 Added base classes -00020 -00021 Revision 1.1.1.1 2003/01/23 19:45:58 brain -00022 InspIRCd second source tree -00023 -00024 Revision 1.3 2003/01/15 22:47:44 brain -00025 Changed user and channel structs to classes (finally) -00026 -00027 Revision 1.2 2003/01/09 21:09:50 brain -00028 added '/stats M' command -00029 -00030 Revision 1.1 2003/01/07 01:02:14 brain -00031 -00032 definitions for command table types -00033 -00034 -00035 * --------------------------------------------------- -00036 */ -00037 #include "inspircd_config.h" -00038 #include "inspircd.h" -00039 #include "base.h" -00040 -00041 #ifndef __CTABLES_H__ -00042 #define __CTABLES_H__ -00043 -00044 typedef void (handlerfunc) (char**, int, userrec*); -00045 -00046 /* a structure that defines a command */ -00047 -00048 class command_t : public classbase -00049 { -00050 public: -00051 char command[MAXBUF]; /* command name */ -00052 handlerfunc *handler_function; /* handler function as in typedef */ -00053 char flags_needed; /* user flags needed to execute the command or 0 */ -00054 int min_params; /* minimum number of parameters command takes */ -00055 long use_count; /* used by /stats m */ -00056 long total_bytes; /* used by /stats m */ -00057 }; -00058 -00059 #endif -00060 -

      Generated on Mon Jan 27 00:23:10 2003 for InspIRCd by +00015 */ +00016 #include "inspircd_config.h" +00017 #include "inspircd.h" +00018 #include "base.h" +00019 +00020 #ifndef __CTABLES_H__ +00021 #define __CTABLES_H__ +00022 +00023 typedef void (handlerfunc) (char**, int, userrec*); +00024 +00027 class command_t : public classbase +00028 { +00029 public: +00032 char command[MAXBUF]; +00035 handlerfunc *handler_function; +00038 char flags_needed; +00041 int min_params; +00044 long use_count; +00047 long total_bytes; +00048 }; +00049 +00050 #endif +00051 +

      Generated on Sun Feb 9 12:48:16 2003 for InspIRCd by doxygen1.3-rc2
      diff --git a/docs/module-doc/ctables_8h.html b/docs/module-doc/ctables_8h.html index 1fb622e14..db014626b 100644 --- a/docs/module-doc/ctables_8h.html +++ b/docs/module-doc/ctables_8h.html @@ -15,6 +15,7 @@

      Compounds

      class  command_tA structure that defines a command. More...


      Typedefs

      typedef void( handlerfunc )(char **, int, userrec *) @@ -40,10 +41,10 @@

      -Definition at line 44 of file ctables.h. +Definition at line 23 of file ctables.h. -


      Generated on Mon Jan 27 00:23:11 2003 for InspIRCd by +
      Generated on Sun Feb 9 12:48:16 2003 for InspIRCd by doxygen1.3-rc2
      diff --git a/docs/module-doc/files.html b/docs/module-doc/files.html index d8d53bef9..864c4a300 100644 --- a/docs/module-doc/files.html +++ b/docs/module-doc/files.html @@ -18,7 +18,7 @@ users.cpp [code] users.h [code] -
      Generated on Mon Jan 27 00:23:10 2003 for InspIRCd by +
      Generated on Sun Feb 9 12:48:15 2003 for InspIRCd by doxygen1.3-rc2
      diff --git a/docs/module-doc/functions.html b/docs/module-doc/functions.html index b1e427b00..254ef7f15 100644 --- a/docs/module-doc/functions.html +++ b/docs/module-doc/functions.html @@ -12,18 +12,18 @@

      Here is a list of all class members with links to the classes they belong to:

      - a -

      - b -

      +: connection
    • bytes_out +: connection

    - c -

    - d -

    - e -

    - l -

    +: connection
  • limit +: chanrec
  • LoadFile() +: FileReader
  • Log() +: Server

- m -

  • Major @@ -120,36 +120,41 @@ Here is a list of all class members with links to the classes they belong to:

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

- n -

+: connection

- o -

+: serverrec

- p -

+: connection

- r -

@@ -157,44 +162,48 @@ Here is a list of all class members with links to the classes they belong to:

+: connection

- t -

+: ConnectClass, packet

- u -

- v -

+: ConfigReader
  • version +: serverrec
  • Version() +: Version

    - ~ -

    -
    Generated on Mon Jan 27 00:23:11 2003 for InspIRCd by +
    Generated on Sun Feb 9 12:48:16 2003 for InspIRCd by doxygen1.3-rc2
    diff --git a/docs/module-doc/globals.html b/docs/module-doc/globals.html index 42414102f..ecd46dd8d 100644 --- a/docs/module-doc/globals.html +++ b/docs/module-doc/globals.html @@ -7,7 +7,7 @@
    Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

    InspIRCd File Members

    -b | c | e | f | h | i | l | s | u
    +b | c | d | e | f | h | i | l | m | n | p | s | u | v

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

    - b - @@ -20,15 +20,21 @@ Here is a list of all file members with links to the files they belong to:

    users.h
  • CC_DENY : users.h
  • ClassVector : users.h +

    - d - +

    - e -

    - f -

    +
  • factory() +: modules.cpp
  • file_cache +: modules.h
  • FOREACH_MOD +: modules.h

    - h -

    - l -

    +

    - m - +

    +

    - n - +

    +

    - p - +

    - s -

    -
    Generated on Mon Jan 27 00:23:14 2003 for InspIRCd by +

    - v - +

    +
    Generated on Sun Feb 9 12:48:19 2003 for InspIRCd by doxygen1.3-rc2
    diff --git a/docs/module-doc/hierarchy.html b/docs/module-doc/hierarchy.html index 2676ef42f..f83770cf2 100644 --- a/docs/module-doc/hierarchy.html +++ b/docs/module-doc/hierarchy.html @@ -29,12 +29,13 @@
  • Invited
  • Module
  • ModuleFactory +
  • packet
  • Server
  • ucrec
  • Version -
    Generated on Mon Jan 27 00:23:11 2003 for InspIRCd by +
    Generated on Sun Feb 9 12:48:16 2003 for InspIRCd by doxygen1.3-rc2
    diff --git a/docs/module-doc/main.html b/docs/module-doc/main.html index d1b681026..90917542e 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 Mon Jan 27 00:23:10 2003 for InspIRCd by +
    Generated on Sun Feb 9 12:48:15 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 ad2a8f4ac..793cf2c10 100644 --- a/docs/module-doc/modules_8cpp-source.html +++ b/docs/module-doc/modules_8cpp-source.html @@ -8,240 +8,230 @@ Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

    modules.cpp

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

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

    Functions

    vector< Module * > modules (255)
    vector< ircd_module * > factory (255)

    Variables

    int MODCOUNT = -1
    -


    Generated on Mon Jan 27 00:23:11 2003 for InspIRCd by +

    Function Documentation

    +

    + + + + +
    + + + + + + + + + + +
    vector<ircd_module*> factory 255  
    +
    + + + + + +
    +   + + +

    +

    +

    + + + + +
    + + + + + + + + + + +
    vector<Module*> modules 255  
    +
    + + + + + +
    +   + + +

    +

    +


    Variable Documentation

    +

    + + + + +
    + + +
    int MODCOUNT = -1 +
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 223 of file modules.cpp.

    +


    Generated on Sun Feb 9 12:48:16 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 d773cf20f..03ecb7fab 100644 --- a/docs/module-doc/modules_8h-source.html +++ b/docs/module-doc/modules_8h-source.html @@ -8,158 +8,139 @@ Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

    modules.h

    Go to the documentation of this file.
    00001 /*
     00002 
    -00003 $Log$
    -00003 Revision 1.5  2003/01/27 00:28:57  brain
    -00003 ...
     00003 
    -00004 Revision 1.2  2003/01/26 23:52:59  brain
    -00005 Modified documentation for base classes
    -00006 Added base classes
    -00007 
    -00008 Revision 1.1.1.1  2003/01/23 19:45:58  brain
    -00009 InspIRCd second source tree
    -00010 
    -00011 Revision 1.12  2003/01/22 20:59:10  brain
    -00012 Added FileReader class documentation
    -00013 
    -00014 Revision 1.11  2003/01/22 20:49:16  brain
    -00015 Added FileReader file-caching class
    -00016 Changed m_randquote to use FileReader class
    -00017 
    -00018 Revision 1.10  2003/01/22 00:57:27  brain
    -00019 Changes to documentation
    -00020 
    -00021 Revision 1.9  2003/01/22 00:44:26  brain
    -00022 Added documentation comments
    -00023 
    -00024 Revision 1.8  2003/01/21 20:31:24  brain
    -00025 Modified to add documentation
    -00026 Added ConfigReader class for modules
    -00027 
    -00028 Revision 1.7  2003/01/15 22:47:44  brain
    -00029 Changed user and channel structs to classes (finally)
    -00030 
    -00031 Revision 1.6  2003/01/13 22:30:50  brain
    -00032 Added Admin class (holds /admin info for modules)
    -00033 Added methods to Server class
    -00034 
    -00035 
    -00036 */
    -00037 
    -00038 
    -00039 #ifndef __PLUGIN_H
    -00040 #define __PLUGIN_H
    -00041 
    -00042 #include "dynamic.h"
    -00043 #include "base.h"
    -00044 #include <string>
    -00045 #include <deque>
    +00004 
    +00005 */
    +00006 
    +00007 
    +00008 #ifndef __PLUGIN_H
    +00009 #define __PLUGIN_H
    +00010 
    +00011 #define DEBUG 10
    +00012 #define VERBOSE 20
    +00013 #define DEFAULT 30
    +00014 #define SPARSE 40
    +00015 #define NONE 50
    +00016 
    +00017 #include "dynamic.h"
    +00018 #include "base.h"
    +00019 #include <string>
    +00020 #include <deque>
    +00021 
    +00024 typedef deque<string> file_cache;
    +00025 
    +00026 
    +00027 // This #define allows us to call a method in all
    +00028 // loaded modules in a readable simple way, e.g.:
    +00029 // 'FOREACH_MOD OnConnect(user);'
    +00030 
    +00031 #define FOREACH_MOD for (int i = 0; i <= MODCOUNT; i++) modules[i]->
    +00032 
    +00033 // class Version holds the version information of a Module, returned
    +00034 // by Module::GetVersion (thanks RD)
    +00035 
    +00040 class Version : public classbase
    +00041 {
    +00042  public:
    +00043          const int Major, Minor, Revision, Build;
    +00044          Version(int major, int minor, int revision, int build);
    +00045 };
     00046 
    -00049 typedef deque<string> file_cache;
    -00050 
    -00051 
    -00052 // This #define allows us to call a method in all
    -00053 // loaded modules in a readable simple way, e.g.:
    -00054 // 'FOREACH_MOD OnConnect(user);'
    -00055 
    -00056 #define FOREACH_MOD for (int i = 0; i <= MODCOUNT; i++) modules[i]->
    -00057 
    -00058 // class Version holds the version information of a Module, returned
    -00059 // by Module::GetVersion (thanks RD)
    -00060 
    -00065 class Version : public classbase
    +00047 
    +00053 class Admin : public classbase
    +00054 {
    +00055  public:
    +00056          const string Name, Email, Nick;
    +00057          Admin(string name,string email,string nick);
    +00058 };
    +00059 
    +00065 class Module : public classbase
     00066 {
     00067  public:
    -00068          const int Major, Minor, Revision, Build;
    -00069          Version(int major, int minor, int revision, int build);
    -00070 };
    -00071 
    -00072 
    -00078 class Admin : public classbase
    -00079 {
    -00080  public:
    -00081          const string Name, Email, Nick;
    -00082          Admin(string name,string email,string nick);
    -00083 };
    -00084 
    -00090 class Module : public classbase
    -00091 {
    -00092  public:
    -00096         Module();
    -00100         virtual ~Module();
    -00105         virtual Version GetVersion();
    -00109         virtual void OnUserConnect(userrec* user);
    -00113         virtual void OnUserQuit(userrec* user);
    -00118         virtual void OnUserJoin(userrec* user, chanrec* channel);
    -00123         virtual void OnUserPart(userrec* user, chanrec* channel);
    -00124 };
    -00125 
    -00126 
    -00132 class Server : public classbase
    -00133 {
    -00134  public:
    -00138         Server();
    -00142         virtual ~Server();
    -00143 
    -00147         virtual void SendOpers(string s);
    -00152         virtual void Debug(string s);
    -00157         virtual void Send(int Socket, string s);
    -00162         virtual void SendServ(int Socket, string s);
    -00167         virtual void SendFrom(int Socket, userrec* User, string s);
    -00172         virtual void SendTo(userrec* Source, userrec* Dest, string s);
    -00179         virtual void SendChannel(userrec* User, chanrec* Channel, string s,bool IncludeSender);
    -00184         virtual bool CommonChannels(userrec* u1, userrec* u2);
    -00192         virtual void SendCommon(userrec* User, string text,bool IncludeSender);
    -00197         virtual void SendWallops(userrec* User, string text);
    -00198 
    -00202         virtual bool IsNick(string nick);
    -00206         virtual userrec* FindNick(string nick);
    -00210         virtual chanrec* FindChannel(string channel);
    -00215         virtual string ChanMode(userrec* User, chanrec* Chan);
    -00218         virtual string GetServerName();
    -00221         virtual string GetNetworkName();
    -00227         virtual Admin GetAdmin();
    -00228          
    -00229 };
    -00230 
    -00237 class ConfigReader : public classbase
    -00238 {
    -00239   protected:
    -00242         string fname;
    -00243   public:
    -00248         ConfigReader();                 // default constructor reads ircd.conf
    -00252         ConfigReader(string filename);  // read a module-specific config
    -00256         ~ConfigReader();
    -00261         string ReadValue(string tag, string name, int index);
    -00268         int Enumerate(string tag);
    -00272         bool Verify();
    -00273 };
    -00274 
    -00275 
    -00276 
    -00282 class FileReader : public classbase
    -00283 {
    -00284  file_cache fc;
    -00285  public:
    -00290          FileReader();
    -00296          FileReader(string filename);
    -00300          ~FileReader();
    -00306          void LoadFile(string filename);
    -00311          string GetLine(int x);
    -00317          int FileSize();
    +00071         Module();
    +00075         virtual ~Module();
    +00080         virtual Version GetVersion();
    +00084         virtual void OnUserConnect(userrec* user);
    +00088         virtual void OnUserQuit(userrec* user);
    +00093         virtual void OnUserJoin(userrec* user, chanrec* channel);
    +00098         virtual void OnUserPart(userrec* user, chanrec* channel);
    +00099 
    +00100 
    +00101         virtual void Module::OnPacketTransmit(char *p);
    +00102         virtual void Module::OnPacketReceive(char *p);
    +00103         virtual void OnRehash();
    +00104 
    +00105 };
    +00106 
    +00107 
    +00113 class Server : public classbase
    +00114 {
    +00115  public:
    +00119         Server();
    +00123         virtual ~Server();
    +00124 
    +00128         virtual void SendOpers(string s);
    +00133         virtual void Log(int level, string s);
    +00138         virtual void Send(int Socket, string s);
    +00143         virtual void SendServ(int Socket, string s);
    +00148         virtual void SendFrom(int Socket, userrec* User, string s);
    +00153         virtual void SendTo(userrec* Source, userrec* Dest, string s);
    +00160         virtual void SendChannel(userrec* User, chanrec* Channel, string s,bool IncludeSender);
    +00165         virtual bool CommonChannels(userrec* u1, userrec* u2);
    +00173         virtual void SendCommon(userrec* User, string text,bool IncludeSender);
    +00178         virtual void SendWallops(userrec* User, string text);
    +00179 
    +00183         virtual bool IsNick(string nick);
    +00187         virtual userrec* FindNick(string nick);
    +00191         virtual chanrec* FindChannel(string channel);
    +00196         virtual string ChanMode(userrec* User, chanrec* Chan);
    +00199         virtual string GetServerName();
    +00202         virtual string GetNetworkName();
    +00208         virtual Admin GetAdmin();
    +00209          
    +00210 };
    +00211 
    +00218 class ConfigReader : public classbase
    +00219 {
    +00220   protected:
    +00223         string fname;
    +00224   public:
    +00229         ConfigReader();                 // default constructor reads ircd.conf
    +00233         ConfigReader(string filename);  // read a module-specific config
    +00237         ~ConfigReader();
    +00242         string ReadValue(string tag, string name, int index);
    +00249         int Enumerate(string tag);
    +00253         bool Verify();
    +00254 };
    +00255 
    +00256 
    +00257 
    +00263 class FileReader : public classbase
    +00264 {
    +00265  file_cache fc;
    +00266  public:
    +00271          FileReader();
    +00277          FileReader(string filename);
    +00281          ~FileReader();
    +00287          void LoadFile(string filename);
    +00292          string GetLine(int x);
    +00298          int FileSize();
    +00299 };
    +00300 
    +00301 
    +00308 class ModuleFactory : public classbase
    +00309 {
    +00310  public:
    +00311         ModuleFactory() { }
    +00312         virtual ~ModuleFactory() { }
    +00317         virtual Module * CreateModule() = 0;
     00318 };
     00319 
     00320 
    -00327 class ModuleFactory : public classbase
    -00328 {
    -00329  public:
    -00330         ModuleFactory() { }
    -00331         virtual ~ModuleFactory() { }
    -00336         virtual Module * CreateModule() = 0;
    -00337 };
    -00338 
    -00339 #endif
    -

    Generated on Mon Jan 27 00:23:11 2003 for InspIRCd by +00321 typedef DLLFactory<ModuleFactory> ircd_module; +00322 +00323 #endif +
    Generated on Sun Feb 9 12:48:16 2003 for InspIRCd by doxygen1.3-rc2
    diff --git a/docs/module-doc/modules_8h.html b/docs/module-doc/modules_8h.html index a9f1f56fb..d9f97ade6 100644 --- a/docs/module-doc/modules_8h.html +++ b/docs/module-doc/modules_8h.html @@ -30,19 +30,25 @@ class  Version  Holds a module's Version information The four members (set by the constructor only) indicate details as to the version number of a module. More...


    Defines

    -#define FOREACH_MOD   for (int i = 0; i <= MODCOUNT; i++) modules[i]-> +#define DEBUG   10 +#define VERBOSE   20 +#define DEFAULT   30 +#define SPARSE   40 +#define NONE   50 +#define FOREACH_MOD   for (int i = 0; i <= MODCOUNT; i++) modules[i]->

    Typedefs

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

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

    +typedef DLLFactory< ModuleFactoryircd_module

    Define Documentation

    -

    +

    @@ -57,11 +63,131 @@

    -Definition at line 56 of file modules.h. +Definition at line 11 of file modules.h. + +

    -
    #define FOREACH_MOD   for (int i = 0; i <= MODCOUNT; i++) modules[i]-> + #define DEBUG   10
    +

    + + + + +
    + + +
    #define DEFAULT   30 +
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 13 of file modules.h.

    +

    + + + + +
    + + +
    #define FOREACH_MOD   for (int i = 0; i <= MODCOUNT; i++) modules[i]-> +
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 31 of file modules.h.

    +

    + + + + +
    + + +
    #define NONE   50 +
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 15 of file modules.h.

    +

    + + + + +
    + + +
    #define SPARSE   40 +
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 14 of file modules.h.

    +

    + + + + +
    + + +
    #define VERBOSE   20 +
    +
    + + + +
    +   + + +

    + +

    +Definition at line 12 of file modules.h.


    Typedef Documentation

    -

    +

    +Referenced by FileReader::FileReader(), and FileReader::LoadFile().
    @@ -84,12 +210,36 @@ Low level definition of a FileReader

    -Definition at line 49 of file modules.h. +Definition at line 24 of file modules.h.

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

    -


    Generated on Mon Jan 27 00:23:11 2003 for InspIRCd by +

    + + + + +
    + + +
    typedef DLLFactory<ModuleFactory> ircd_module +
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 321 of file modules.h.

    +


    Generated on Sun Feb 9 12:48:16 2003 for InspIRCd by doxygen1.3-rc2
    diff --git a/docs/module-doc/servers_8cpp-source.html b/docs/module-doc/servers_8cpp-source.html index a00781100..4e736e884 100644 --- a/docs/module-doc/servers_8cpp-source.html +++ b/docs/module-doc/servers_8cpp-source.html @@ -8,73 +8,45 @@ Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

    servers.cpp

    Go to the documentation of this file.
    00001 /*
     00002 
    -00003 $Log$
    -00003 Revision 1.3  2003/01/27 00:28:57  brain
    -00003 ...
     00003 
    -00004 Revision 1.2  2003/01/26 23:53:03  brain
    -00005 Modified documentation for base classes
    -00006 Added base classes
    -00007 
    -00008 Revision 1.1  2003/01/26 20:15:03  brain
    -00009 Added server classes for linking
    -00010 
    -00011 
    -00012 */
    -00013 
    -00014 #include "inspircd_config.h" 
    -00015 #include "servers.h"
    -00016 #include "inspircd.h"
    -00017 #include <stdio.h>
    -00018 #include <map.h>
    -00019 
    -00020 serverrec::serverrec()
    -00021 {
    -00022         leaf.clear();
    -00023         strcpy(name,"");
    -00024         pingtime = 0;
    -00025         linktype = LINK_ACTIVE;
    -00026         lastping = time(NULL);
    -00027         usercount_i = usercount = opercount = version = 0;
    -00028         hops_away = 1;
    -00029         connected_at = time(NULL);
    -00030         jupiter = false;
    -00031         fd = 0;
    -00032 }
    -00033 
    -00034  
    -00035 serverrec::~serverrec()
    -00036 {
    -00037 }
    -00038 
    -00039 serverrec::serverrec(char* n, int link_t,  long ver, bool jupe)
    -00040 {
    -00041         leaf.clear();
    -00042         strcpy(name,n);
    -00043         linktype = link_t;
    -00044         lastping = time(NULL);
    -00045         usercount_i = usercount = opercount = 0;
    -00046         version = ver;
    -00047         hops_away = 1;
    -00048         connected_at = time(NULL);
    -00049         jupiter = jupe;
    -00050         fd = 0;
    -00051 }
    -00052 
    -00053 void serverrec::AddLeaf(serverrec *child)
    -00054 {
    -00055         leaf[child->name] = child;
    -00056 }
    -00057 
    -00058 void serverrec::DelLeaf(string n)
    -00059 {
    -00060         server_list::iterator i = leaf.find(n);
    -00061 
    -00062         if (i != leaf.end())
    -00063                 leaf.erase(i);
    -00064 }
    -00065 
    -

    Generated on Mon Jan 27 00:23:11 2003 for InspIRCd by +00004 */ +00005 +00006 #include "inspircd_config.h" +00007 #include "servers.h" +00008 #include "inspircd.h" +00009 #include <stdio.h> +00010 #include <map.h> +00011 +00012 serverrec::serverrec() +00013 { +00014 strcpy(name,""); +00015 pingtime = 0; +00016 lastping = time(NULL); +00017 usercount_i = usercount = opercount = version = 0; +00018 hops_away = 1; +00019 signon = time(NULL); +00020 jupiter = false; +00021 fd = 0; +00022 } +00023 +00024 +00025 serverrec::~serverrec() +00026 { +00027 } +00028 +00029 serverrec::serverrec(char* n, long ver, bool jupe) +00030 { +00031 strcpy(name,n); +00032 lastping = time(NULL); +00033 usercount_i = usercount = opercount = 0; +00034 version = ver; +00035 hops_away = 1; +00036 signon = time(NULL); +00037 jupiter = jupe; +00038 fd = 0; +00039 } +00040 +
    Generated on Sun Feb 9 12:48:16 2003 for InspIRCd by doxygen1.3-rc2
    diff --git a/docs/module-doc/servers_8cpp.html b/docs/module-doc/servers_8cpp.html index 807697fc4..a2ec5d646 100644 --- a/docs/module-doc/servers_8cpp.html +++ b/docs/module-doc/servers_8cpp.html @@ -16,7 +16,7 @@ Go to the source code of this file.
    -
    Generated on Mon Jan 27 00:23:11 2003 for InspIRCd by +
    Generated on Sun Feb 9 12:48:16 2003 for InspIRCd by doxygen1.3-rc2
    diff --git a/docs/module-doc/servers_8h-source.html b/docs/module-doc/servers_8h-source.html index ff90f5eac..ef55e9cde 100644 --- a/docs/module-doc/servers_8h-source.html +++ b/docs/module-doc/servers_8h-source.html @@ -8,62 +8,45 @@ Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

    servers.h

    Go to the documentation of this file.
    00001 /*
     00002 
    -00003 $Log$
    -00003 Revision 1.3  2003/01/27 00:28:57  brain
    -00003 ...
     00003 
    -00004 Revision 1.2  2003/01/26 23:52:59  brain
    -00005 Modified documentation for base classes
    -00006 Added base classes
    -00007 
    -00008 Revision 1.1  2003/01/26 20:15:00  brain
    -00009 Added server classes for linking
    -00010 
    -00011 
    -00012 */
    -00013 
    -00014 #include "inspircd_config.h" 
    -00015 #include "connection.h"
    -00016 #include <string>
    -00017 #include <map.h>
    -00018  
    -00019 #ifndef __SERVERS_H__ 
    -00020 #define __SERVERS_H__ 
    -00021  
    -00022 #define LINK_ACTIVE     1
    -00023 #define LINK_INACTIVE   0
    -00024 
    -00025 class serverrec : public connection
    -00026 {
    -00027  private:
    -00028         map<string, serverrec*> leaf; // list of child servers (leaves)
    -00029  public:
    -00030         char name[MAXBUF];      // server name
    -00031         int pingtime;           // last ping response (ms)
    -00032         int linktype;           // link type, LINK_ACTIVE or LINK_INACTIVE
    -00033         time_t lastping;        // time the link was last pinged
    -00034         long usercount_i;       // invisible users on server
    -00035         long usercount;         // non-invisible users on server
    -00036         long opercount;         // opers on server
    -00037         time_t connected_at;    // time server was connected into the network
    -00038         time_t hops_away;       // number of hops away (for quick access)
    -00039         long version;           // ircd version
    -00040         bool jupiter;           // is a JUPE server (faked to enforce a server ban)
    -00041 
    -00042         serverrec();
    -00043         serverrec(char* n, int link_t,  long ver, bool jupe);
    -00044         ~serverrec();
    -00045         void AddLeaf(serverrec *child);
    -00046         void DelLeaf(string n);
    -00047 };
    -00048 
    -00049 
    -00050 
    -00051 typedef map<string, serverrec*> server_list;
    -00052 
    -00053 #endif
    -00054 
    -

    Generated on Mon Jan 27 00:23:11 2003 for InspIRCd by +00004 */ +00005 +00006 #include "inspircd_config.h" +00007 #include "connection.h" +00008 #include <string> +00009 #include <map.h> +00010 +00011 #ifndef __SERVERS_H__ +00012 #define __SERVERS_H__ +00013 +00014 #define LINK_ACTIVE 1 +00015 #define LINK_INACTIVE 0 +00016 +00019 class serverrec : public connection +00020 { +00021 private: +00022 public: +00025 char name[MAXBUF]; +00028 long pingtime; +00031 long usercount_i; +00034 long usercount; +00037 long opercount; +00040 int hops_away; +00043 long version; +00046 bool jupiter; +00047 +00050 serverrec(); +00053 serverrec(char* n, long ver, bool jupe); +00056 ~serverrec(); +00057 }; +00058 +00059 +00060 +00061 typedef map<string, serverrec*> server_list; +00062 +00063 #endif +00064 +
    Generated on Sun Feb 9 12:48:16 2003 for InspIRCd by doxygen1.3-rc2
    diff --git a/docs/module-doc/servers_8h.html b/docs/module-doc/servers_8h.html index dd70c5d61..80c2e9948 100644 --- a/docs/module-doc/servers_8h.html +++ b/docs/module-doc/servers_8h.html @@ -16,6 +16,7 @@

    Compounds

    class  serverrecA class that defines the local server or a remote server. More...


    Defines

    #define LINK_ACTIVE   1 #define LINK_INACTIVE   0 @@ -44,9 +45,7 @@

    -Definition at line 22 of file servers.h. -

    -Referenced by serverrec::serverrec(). +Definition at line 14 of file servers.h.

    @@ -70,7 +69,7 @@ Referenced by serverrec::se

    -Definition at line 23 of file servers.h. +Definition at line 15 of file servers.h.


    Typedef Documentation

    @@ -95,10 +94,10 @@ Definition at line 23 of

    -Definition at line 51 of file servers.h. +Definition at line 61 of file servers.h. -


    Generated on Mon Jan 27 00:23:11 2003 for InspIRCd by +
    Generated on Sun Feb 9 12:48:16 2003 for InspIRCd by doxygen1.3-rc2
    diff --git a/docs/module-doc/tree.js b/docs/module-doc/tree.js index c2aab4b80..e96c794b3 100644 --- a/docs/module-doc/tree.js +++ b/docs/module-doc/tree.js @@ -27,6 +27,7 @@ aux1 = insFld(foldersTree, gFld("Compound List", "", "annotated.html")) insDoc(aux1, gLnk("InviteItem", "", "classInviteItem.html")) insDoc(aux1, gLnk("Module", "", "classModule.html")) insDoc(aux1, gLnk("ModuleFactory", "", "classModuleFactory.html")) + insDoc(aux1, gLnk("packet", "", "classpacket.html")) insDoc(aux1, gLnk("Server", "", "classServer.html")) insDoc(aux1, gLnk("serverrec", "", "classserverrec.html")) insDoc(aux1, gLnk("ucrec", "", "classucrec.html")) @@ -50,6 +51,7 @@ aux1 = insFld(foldersTree, gFld("Class Hierarchy", "", "hierarchy.html")) insDoc(aux2, gLnk("Invited", "", "classInvited.html")) insDoc(aux2, gLnk("Module", "", "classModule.html")) insDoc(aux2, gLnk("ModuleFactory", "", "classModuleFactory.html")) + insDoc(aux2, gLnk("packet", "", "classpacket.html")) insDoc(aux2, gLnk("Server", "", "classServer.html")) insDoc(aux2, gLnk("ucrec", "", "classucrec.html")) insDoc(aux2, gLnk("Version", "", "classVersion.html")) diff --git a/docs/module-doc/users_8cpp-source.html b/docs/module-doc/users_8cpp-source.html index ea0572d24..96133e230 100644 --- a/docs/module-doc/users_8cpp-source.html +++ b/docs/module-doc/users_8cpp-source.html @@ -8,100 +8,82 @@ Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

    users.cpp

    Go to the documentation of this file.
    00001 /*
     00002 
    -00003 $Log$
    -00003 Revision 1.5  2003/01/27 00:28:57  brain
    -00003 ...
    -00003 
    -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.2  2003/01/17 10:37:55  brain
    -00012 Added /INVITE command and relevent structures
    -00013 
    -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 Mon Jan 27 00:23:11 2003 for InspIRCd by +00003 */ +00004 +00005 #include "inspircd_config.h" +00006 #include "channels.h" +00007 #include "users.h" +00008 #include "inspircd.h" +00009 #include <stdio.h> +00010 +00011 userrec::userrec() +00012 { +00013 // the PROPER way to do it, AVOID bzero at *ALL* costs +00014 strcpy(nick,""); +00015 ip = 0; +00016 strcpy(ident,""); +00017 strcpy(host,""); +00018 strcpy(dhost,""); +00019 strcpy(fullname,""); +00020 strcpy(modes,""); +00021 strcpy(inbuf,""); +00022 strcpy(server,""); +00023 strcpy(awaymsg,""); +00024 fd = lastping = signon = idle_lastmsg = nping = registered = 0; +00025 port = bytes_in = bytes_out = cmds_in = cmds_out = 0; +00026 haspassed = false; +00027 strcpy(result,""); +00028 for (int i = 0; i < MAXCHANS; i++) +00029 { +00030 chans[i].channel = NULL; +00031 } +00032 invites.clear(); +00033 } +00034 +00035 +00036 char* userrec::GetFullHost() +00037 { +00038 sprintf(result,"%s!%s@%s",nick,ident,dhost); +00039 return result; +00040 } +00041 +00042 +00043 char* userrec::GetFullRealHost() +00044 { +00045 sprintf(result,"%s!%s@%s",nick,ident,host); +00046 return result; +00047 } +00048 +00049 bool userrec::IsInvited(char* channel) +00050 { +00051 for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++) +00052 { +00053 if (!strcasecmp(i->channel,channel)) +00054 { +00055 return true; +00056 } +00057 } +00058 } +00059 +00060 void userrec::InviteTo(char* channel) +00061 { +00062 Invited i; +00063 strcpy(i.channel,channel); +00064 invites.push_back(i); +00065 } +00066 +00067 void userrec::RemoveInvite(char* channel) +00068 { +00069 for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++) +00070 { +00071 if (!strcasecmp(i->channel,channel)) +00072 { +00073 invites.erase(i); +00074 return; +00075 } +00076 } +00077 } +
    Generated on Sun Feb 9 12:48:16 2003 for InspIRCd by doxygen1.3-rc2
    diff --git a/docs/module-doc/users_8cpp.html b/docs/module-doc/users_8cpp.html index 38c77fff2..9b662d25d 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 Mon Jan 27 00:23:11 2003 for InspIRCd by +
    Generated on Sun Feb 9 12:48:16 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 e923929aa..6bb848a39 100644 --- a/docs/module-doc/users_8h-source.html +++ b/docs/module-doc/users_8h-source.html @@ -8,128 +8,91 @@ Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

    users.h

    Go to the documentation of this file.
    00001 /*
     00002 
    -00003 $Log$
    -00003 Revision 1.5  2003/01/27 00:28:57  brain
    -00003 ...
     00003 
    -00004 Revision 1.3  2003/01/27 00:22:53  brain
    -00005 Modified documentation
    -00006 Moved some classes below base class
    -00007 
    -00008 Revision 1.2  2003/01/26 23:52:59  brain
    -00009 Modified documentation for base classes
    -00010 Added base classes
    -00011 
    -00012 Revision 1.1.1.1  2003/01/23 19:45:58  brain
    -00013 InspIRCd second source tree
    -00014 
    -00015 Revision 1.9  2003/01/22 00:44:26  brain
    -00016 Added documentation comments
    -00017 
    -00018 Revision 1.8  2003/01/21 21:11:17  brain
    -00019 Added documentation
    -00020 
    -00021 Revision 1.7  2003/01/17 13:21:38  brain
    -00022 Added CONNECT ALLOW and CONNECT DENY config tags
    -00023 Added PASS command
    -00024 
    -00025 Revision 1.6  2003/01/17 10:37:55  brain
    -00026 Added /INVITE command and relevent structures
    -00027 
    -00028 Revision 1.5  2003/01/16 20:11:56  brain
    -00029 fixed some ugly pointer bugs (thanks dblack and a|KK|y!)
    -00030 
    -00031 Revision 1.4  2003/01/15 22:47:44  brain
    -00032 Changed user and channel structs to classes (finally)
    -00033 
    -00034 Revision 1.3  2003/01/14 21:14:30  brain
    -00035 added /ISON command (for mIRC etc basic notify)
    -00036 
    -00037 
    -00038 */
    -00039 
    -00040 #include "inspircd_config.h" 
    -00041 #include "channels.h"
    -00042 #include "connection.h"
    -00043 
    -00044 #include <string>
    -00045  
    -00046 #ifndef __USERS_H__ 
    -00047 #define __USERS_H__ 
    -00048  
    -00049 #define STATUS_OP       4
    -00050 #define STATUS_HOP      2
    -00051 #define STATUS_VOICE    1
    -00052 #define STATUS_NORMAL   0
    -00053 
    -00054 #define CC_ALLOW        0
    -00055 #define CC_DENY         1
    -00056 
    -00059 class Invited : public classbase
    -00060 {
    -00061  public:
    -00062         char channel[CHANMAX];
    -00063 };
    -00064 
    -00065 
    -00068 class ConnectClass : public classbase
    -00069 {
    -00070  public:
    -00071         int type;
    -00072         char host[MAXBUF];
    -00073         char pass[MAXBUF];
    -00074 };
    -00075 
    -00078 typedef vector<Invited> InvitedList;
    -00079 
    -00080 
    -00081 
    -00084 typedef vector<ConnectClass> ClassVector;
    -00085 
    -00092 class userrec : public connection
    -00093 {
    -00094  private:
    -00095 
    -00098         InvitedList invites;
    -00099  public:
    -00100         
    -00105         char nick[NICKMAX];
    -00106         
    -00109         char ident[64];
    -00110 
    -00114         char dhost[256];
    -00115         
    -00118         char fullname[128];
    -00119         
    -00124         char modes[32];
    -00125         
    -00126         ucrec chans[MAXCHANS];
    -00127         
    -00130         char server[256];
    -00131         
    -00135         char awaymsg[512];
    -00136         
    -00140         char result[256];
    -00141         
    -00142         userrec();
    -00143         
    -00144         virtual ~userrec() {  }
    -00145         
    -00150         virtual char* GetFullHost();
    -00151         
    -00157         virtual char* GetFullRealHost();
    -00158         
    -00161         virtual bool IsInvited(char* channel);
    -00162         
    -00165         virtual void InviteTo(char* channel);
    -00166         
    -00171         virtual void RemoveInvite(char* channel);
    -00172         
    -00173 };
    -00174 
    -00175 
    -00176 #endif
    -

    Generated on Mon Jan 27 00:23:11 2003 for InspIRCd by +00004 */ +00005 +00006 #include "inspircd_config.h" +00007 #include "channels.h" +00008 #include "connection.h" +00009 +00010 #include <string> +00011 +00012 #ifndef __USERS_H__ +00013 #define __USERS_H__ +00014 +00015 #define STATUS_OP 4 +00016 #define STATUS_HOP 2 +00017 #define STATUS_VOICE 1 +00018 #define STATUS_NORMAL 0 +00019 +00020 #define CC_ALLOW 0 +00021 #define CC_DENY 1 +00022 +00025 class Invited : public classbase +00026 { +00027 public: +00028 char channel[CHANMAX]; +00029 }; +00030 +00031 +00034 class ConnectClass : public classbase +00035 { +00036 public: +00037 int type; +00038 char host[MAXBUF]; +00039 char pass[MAXBUF]; +00040 }; +00041 +00044 typedef vector<Invited> InvitedList; +00045 +00046 +00047 +00050 typedef vector<ConnectClass> ClassVector; +00051 +00058 class userrec : public connection +00059 { +00060 private: +00061 +00064 InvitedList invites; +00065 public: +00066 +00071 char nick[NICKMAX]; +00072 +00075 char ident[64]; +00076 +00080 char dhost[256]; +00081 +00084 char fullname[128]; +00085 +00090 char modes[32]; +00091 +00092 ucrec chans[MAXCHANS]; +00093 +00096 char server[256]; +00097 +00101 char awaymsg[512]; +00102 +00106 char result[256]; +00107 +00108 userrec(); +00109 +00110 virtual ~userrec() { } +00111 +00116 virtual char* GetFullHost(); +00117 +00123 virtual char* GetFullRealHost(); +00124 +00127 virtual bool IsInvited(char* channel); +00128 +00131 virtual void InviteTo(char* channel); +00132 +00137 virtual void RemoveInvite(char* channel); +00138 +00139 }; +00140 +00141 +00142 #endif +
    Generated on Sun Feb 9 12:48:16 2003 for InspIRCd by doxygen1.3-rc2
    diff --git a/docs/module-doc/users_8h.html b/docs/module-doc/users_8h.html index bef3bcb54..1b30e3661 100644 --- a/docs/module-doc/users_8h.html +++ b/docs/module-doc/users_8h.html @@ -56,7 +56,7 @@

    -Definition at line 54 of file users.h. +Definition at line 20 of file users.h.

    @@ -80,7 +80,7 @@ Definition at line 54 of fi

    -Definition at line 55 of file users.h. +Definition at line 21 of file users.h.

    @@ -104,7 +104,7 @@ Definition at line 55 of fi

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

    @@ -128,7 +128,7 @@ Definition at line 50 of fi

    -Definition at line 52 of file users.h. +Definition at line 18 of file users.h.

    @@ -152,7 +152,7 @@ Definition at line 52 of fi

    -Definition at line 49 of file users.h. +Definition at line 15 of file users.h.

    @@ -176,7 +176,7 @@ Definition at line 49 of fi

    -Definition at line 51 of file users.h. +Definition at line 17 of file users.h.


    Typedef Documentation

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

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

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

    -Definition at line 78 of file users.h. +Definition at line 44 of file users.h. -


    Generated on Mon Jan 27 00:23:11 2003 for InspIRCd by +
    Generated on Sun Feb 9 12:48:16 2003 for InspIRCd by doxygen1.3-rc2
    diff --git a/include/base.h b/include/base.h index c347aedb3..b0e264bac 100644 --- a/include/base.h +++ b/include/base.h @@ -8,12 +8,20 @@ #ifndef __BASE_H__ #define __BASE_H__ - + + +/** The base class for all inspircd classes +*/ class classbase { public: + /** Time that the object was instantiated (used for TS calculation etc) + */ time_t age; + /** Constructor, + * Sets the object's time + */ classbase() { age = time(NULL); } ~classbase() { } }; diff --git a/include/ctables.h b/include/ctables.h index e422e1661..5ca5e13b3 100644 --- a/include/ctables.h +++ b/include/ctables.h @@ -22,17 +22,29 @@ typedef void (handlerfunc) (char**, int, userrec*); -/* a structure that defines a command */ - +/** A structure that defines a command + */ class command_t : public classbase { public: - char command[MAXBUF]; /* command name */ - handlerfunc *handler_function; /* handler function as in typedef */ - char flags_needed; /* user flags needed to execute the command or 0 */ - int min_params; /* minimum number of parameters command takes */ - long use_count; /* used by /stats m */ - long total_bytes; /* used by /stats m */ + /** Command name + */ + char command[MAXBUF]; + /** Handler function as in typedef + */ + handlerfunc *handler_function; + /** User flags needed to execute the command or 0 + */ + char flags_needed; + /** Minimum number of parameters command takes + */ + int min_params; + /** used by /stats m + */ + long use_count; + /** used by /stats m + */ + long total_bytes; }; #endif diff --git a/include/servers.h b/include/servers.h index fc271b37e..9ce3e744d 100644 --- a/include/servers.h +++ b/include/servers.h @@ -14,21 +14,45 @@ #define LINK_ACTIVE 1 #define LINK_INACTIVE 0 +/** A class that defines the local server or a remote server + */ class serverrec : public connection { private: public: - char name[MAXBUF]; // server name - long pingtime; // last ping response (ms) - long usercount_i; // invisible users on server - long usercount; // non-invisible users on server - long opercount; // opers on server - int hops_away; // number of hops away (for quick access) - long version; // ircd version - bool jupiter; // is a JUPE server (faked to enforce a server ban) + /** server name + */ + char name[MAXBUF]; + /** last ping response (ms) + */ + long pingtime; + /** invisible users on server + */ + long usercount_i; + /** non-invisible users on server + */ + long usercount; + /** opers on server + */ + long opercount; + /** number of hops away (for quick access) + */ + int hops_away; + /** ircd version + */ + long version; + /** is a JUPE server (faked to enforce a server ban) + */ + bool jupiter; + /** Constructor + */ serverrec(); + /** Constructor which initialises some of the main variables + */ serverrec(char* n, long ver, bool jupe); + /** Destructor + */ ~serverrec(); };