From 78a96055c428d1970ece93dfb01902ac0d1699bd Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 4 Apr 2004 22:03:32 +0000 Subject: New documentation to document user/channel mode handling git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@380 e03df62e-2008-0410-955e-edbf42e46eb7 --- docs/module-doc/annotated.html | 5 +- docs/module-doc/base_8h-source.html | 4 +- docs/module-doc/base_8h.html | 4 +- docs/module-doc/channels_8cpp-source.html | 144 ++++-- docs/module-doc/channels_8cpp.html | 39 +- docs/module-doc/channels_8cpp__incl.gif | Bin 10514 -> 13398 bytes docs/module-doc/channels_8h-source.html | 210 ++++---- docs/module-doc/channels_8h.html | 23 +- docs/module-doc/channels_8h__incl.gif | Bin 6072 -> 7185 bytes docs/module-doc/classAdmin-members.html | 4 +- docs/module-doc/classAdmin.html | 8 +- docs/module-doc/classBanItem-members.html | 4 +- docs/module-doc/classBanItem.html | 6 +- docs/module-doc/classConfigReader-members.html | 4 +- docs/module-doc/classConfigReader.html | 62 +-- docs/module-doc/classConnectClass-members.html | 4 +- docs/module-doc/classConnectClass.html | 4 +- docs/module-doc/classExemptItem-members.html | 4 +- docs/module-doc/classExemptItem.html | 6 +- docs/module-doc/classExtMode-members.html | 12 +- docs/module-doc/classExtMode.html | 36 +- docs/module-doc/classExtMode__coll__graph.gif | Bin 6546 -> 6589 bytes docs/module-doc/classFileReader-members.html | 4 +- docs/module-doc/classFileReader.html | 98 ++-- docs/module-doc/classHostItem-members.html | 4 +- docs/module-doc/classHostItem.html | 20 +- docs/module-doc/classInviteItem-members.html | 4 +- docs/module-doc/classInviteItem.html | 6 +- docs/module-doc/classInvited-members.html | 4 +- docs/module-doc/classInvited.html | 4 +- docs/module-doc/classModeParameter-members.html | 21 + docs/module-doc/classModeParameter.html | 122 +++++ .../module-doc/classModeParameter__coll__graph.gif | Bin 0 -> 5787 bytes .../classModeParameter__inherit__graph.gif | Bin 0 -> 1974 bytes docs/module-doc/classModule-members.html | 4 +- docs/module-doc/classModule.html | 52 +- docs/module-doc/classModuleFactory-members.html | 4 +- docs/module-doc/classModuleFactory.html | 14 +- docs/module-doc/classServer-members.html | 6 +- docs/module-doc/classServer.html | 237 +++++---- docs/module-doc/classVersion-members.html | 4 +- docs/module-doc/classVersion.html | 8 +- docs/module-doc/classchanrec-members.html | 10 +- docs/module-doc/classchanrec.html | 281 +++++++--- docs/module-doc/classclassbase-members.html | 4 +- docs/module-doc/classclassbase.html | 35 +- docs/module-doc/classclassbase__inherit__graph.gif | Bin 22795 -> 24976 bytes docs/module-doc/classcommand__t-members.html | 4 +- docs/module-doc/classcommand__t.html | 4 +- docs/module-doc/classconnection-members.html | 4 +- docs/module-doc/classconnection.html | 4 +- docs/module-doc/classes.html | 16 +- docs/module-doc/classpacket-members.html | 4 +- docs/module-doc/classpacket.html | 4 +- docs/module-doc/classserverrec-members.html | 4 +- docs/module-doc/classserverrec.html | 4 +- docs/module-doc/classucrec-members.html | 4 +- docs/module-doc/classucrec.html | 18 +- docs/module-doc/classuserrec-members.html | 4 +- docs/module-doc/classuserrec.html | 36 +- docs/module-doc/connection_8h-source.html | 4 +- docs/module-doc/connection_8h.html | 4 +- docs/module-doc/ctables_8h-source.html | 4 +- docs/module-doc/ctables_8h.html | 4 +- docs/module-doc/doxygen.png | Bin 2912 -> 2351 bytes docs/module-doc/files.html | 4 +- docs/module-doc/functions.html | 44 +- docs/module-doc/globals.html | 16 +- docs/module-doc/graph_legend.html | 4 +- docs/module-doc/hierarchy.html | 5 +- docs/module-doc/inherit__graph__0.gif | Bin 28683 -> 31116 bytes docs/module-doc/inherits.html | 47 +- docs/module-doc/main.html | 4 +- docs/module-doc/modules_8cpp-source.html | 565 +++++++++++---------- docs/module-doc/modules_8cpp.html | 149 ++++-- docs/module-doc/modules_8h-source.html | 92 ++-- docs/module-doc/modules_8h.html | 22 +- docs/module-doc/namespaces.html | 17 + docs/module-doc/namespacestd.html | 19 + docs/module-doc/servers_8cpp-source.html | 4 +- docs/module-doc/servers_8cpp.html | 4 +- docs/module-doc/servers_8h-source.html | 4 +- docs/module-doc/servers_8h.html | 4 +- docs/module-doc/tree.html | 6 + docs/module-doc/users_8cpp-source.html | 30 +- docs/module-doc/users_8cpp.html | 12 +- docs/module-doc/users_8cpp__incl.gif | Bin 18472 -> 18857 bytes docs/module-doc/users_8h-source.html | 6 +- docs/module-doc/users_8h.html | 4 +- docs/module-doc/users_8h__incl.gif | Bin 6906 -> 7066 bytes 90 files changed, 1627 insertions(+), 1090 deletions(-) create mode 100644 docs/module-doc/classModeParameter-members.html create mode 100644 docs/module-doc/classModeParameter.html create mode 100644 docs/module-doc/classModeParameter__coll__graph.gif create mode 100644 docs/module-doc/classModeParameter__inherit__graph.gif create mode 100644 docs/module-doc/namespaces.html create mode 100644 docs/module-doc/namespacestd.html diff --git a/docs/module-doc/annotated.html b/docs/module-doc/annotated.html index e983ceb9a..b509a5cd6 100644 --- a/docs/module-doc/annotated.html +++ b/docs/module-doc/annotated.html @@ -5,7 +5,7 @@
-Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  
+Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

InspIRCd Compound List

Here are the classes, structs, unions and interfaces with brief descriptions: @@ -21,6 +21,7 @@ + @@ -30,7 +31,7 @@
AdminHolds /ADMIN data This class contains the admin details of the local server
BanItemA subclass of HostItem designed to hold channel bans (+b)
HostItemHolds an entry for a ban list, exemption list, or invite list
InvitedHolds a channel name to which a user has been invited
InviteItemA subclass of HostItem designed to hold channel invites (+I)
ModeParameterHolds a custom parameter to a module-defined channel mode e.g
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
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 Sat Apr 3 16:36:08 2004 for InspIRCd by +
Generated on Sun Apr 4 23:02:21 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/base_8h-source.html b/docs/module-doc/base_8h-source.html index a5b2eef50..2733b5b0a 100644 --- a/docs/module-doc/base_8h-source.html +++ b/docs/module-doc/base_8h-source.html @@ -5,7 +5,7 @@
-Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  
+Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

base.h

Go to the documentation of this file.
00001 /*
 00002 
 00003 
@@ -29,7 +29,7 @@
 00028 
 00029 #endif
 00030 
-

Generated on Sat Apr 3 16:36:02 2004 for InspIRCd by +
Generated on Sun Apr 4 23:02:14 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/base_8h.html b/docs/module-doc/base_8h.html index eac9f9bae..ea2df315a 100644 --- a/docs/module-doc/base_8h.html +++ b/docs/module-doc/base_8h.html @@ -5,7 +5,7 @@
-Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  
+Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

base.h File Reference

#include "inspircd_config.h"
#include <time.h>
@@ -34,7 +34,7 @@ This graph shows which files directly or indirectly include this file:

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

-
Generated on Sat Apr 3 16:36:03 2004 for InspIRCd by +
Generated on Sun Apr 4 23:02:15 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/channels_8cpp-source.html b/docs/module-doc/channels_8cpp-source.html index 0ad69366d..bd341295b 100644 --- a/docs/module-doc/channels_8cpp-source.html +++ b/docs/module-doc/channels_8cpp-source.html @@ -5,56 +5,108 @@
-Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  
+Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

channels.cpp

Go to the documentation of this file.
00001 #include "inspircd_config.h" 
 00002 #include "channels.h"
 00003 #include "inspircd.h"
 00004 #include <stdio.h>
-00005 
-00006 chanrec::chanrec()
-00007 {
-00008         strcpy(name,"");
-00009         strcpy(custom_modes,"");
-00010         strcpy(topic,"");
-00011         strcpy(setby,"");
-00012         strcpy(key,"");
-00013         created = topicset = limit = 0;
-00014         topiclock = noexternal = inviteonly = moderated = secret = c_private = false;
-00015 }
-00016 
-00017 void chanrec::SetCustomMode(char mode,bool mode_on)
-00018 {
-00019         if (mode_on) {
-00020                 char m[3];
-00021                 m[0] = mode;
-00022                 m[1] = '\0';
-00023                 if (!strchr(this->custom_modes,mode))
-00024                 {
-00025                         strncat(custom_modes,m,MAXMODES);
-00026                 }
-00027                 log(DEBUG,"Custom mode %c set",mode);
-00028         }
-00029         else {
-00030                 char temp[MAXMODES];
-00031                 int count = 0;
-00032                 for (int q = 0; q < strlen(custom_modes); q++) {
-00033                         if (custom_modes[q] != mode) {
-00034                                 temp[count++] = mode;
-00035                         }
-00036                 }
-00037                 temp[count] = '\0';
-00038                 strncpy(custom_modes,temp,MAXMODES);
-00039                 log(DEBUG,"Custom mode %c removed",mode);
-00040         }
-00041 }
-00042 
-00043 void chanrec::SetCustomModeParam(char mode,char* parameter,bool mode_on)
-00044 {
-00045 }
-00046 
-00047 
-00048 
-

Generated on Sat Apr 3 16:36:02 2004 for InspIRCd by +00005 #include <string> +00006 #include <vector> +00007 +00008 using namespace std; +00009 +00010 vector<ModeParameter> custom_mode_params; +00011 +00012 chanrec::chanrec() +00013 { +00014 strcpy(name,""); +00015 strcpy(custom_modes,""); +00016 strcpy(topic,""); +00017 strcpy(setby,""); +00018 strcpy(key,""); +00019 created = topicset = limit = 0; +00020 topiclock = noexternal = inviteonly = moderated = secret = c_private = false; +00021 } +00022 +00023 void chanrec::SetCustomMode(char mode,bool mode_on) +00024 { +00025 if (mode_on) { +00026 char m[3]; +00027 m[0] = mode; +00028 m[1] = '\0'; +00029 if (!strchr(this->custom_modes,mode)) +00030 { +00031 strncat(custom_modes,m,MAXMODES); +00032 } +00033 log(DEBUG,"Custom mode %c set",mode); +00034 } +00035 else { +00036 char temp[MAXBUF]; +00037 int count = 0; +00038 for (int q = 0; q < strlen(custom_modes); q++) { +00039 if (custom_modes[q] != mode) { +00040 temp[count++] = mode; +00041 } +00042 } +00043 temp[count] = '\0'; +00044 strncpy(custom_modes,temp,MAXMODES); +00045 log(DEBUG,"Custom mode %c removed",mode); +00046 this->SetCustomModeParam(mode,"",false); +00047 } +00048 } +00049 +00050 void chanrec::SetCustomModeParam(char mode,char* parameter,bool mode_on) +00051 { +00052 +00053 log(DEBUG,"SetCustomModeParam called"); +00054 ModeParameter M; +00055 M.mode = mode; +00056 strcpy(M.channel,this->name); +00057 strcpy(M.parameter,parameter); +00058 if (mode_on) +00059 { +00060 log(DEBUG,"Custom mode parameter %c %s added",mode,parameter); +00061 custom_mode_params.push_back(M); +00062 } +00063 else +00064 { +00065 if (custom_mode_params.size()) +00066 { +00067 for (vector<ModeParameter>::iterator i = custom_mode_params.begin(); i < custom_mode_params.end(); i++) +00068 { +00069 if ((i->mode == mode) && (!strcasecmp(this->name,i->channel))) +00070 { +00071 log(DEBUG,"Custom mode parameter %c %s removed",mode,parameter); +00072 custom_mode_params.erase(i); +00073 return; +00074 } +00075 } +00076 } +00077 log(DEBUG,"*** BUG *** Attempt to remove non-existent mode parameter!"); +00078 } +00079 } +00080 +00081 bool chanrec::IsCustomModeSet(char mode) +00082 { +00083 log(DEBUG,"Checking ISCustomModeSet: %c %s",mode,this->custom_modes); +00084 return (strchr(this->custom_modes,mode) != 0); +00085 } +00086 +00087 std::string chanrec::GetModeParameter(char mode) +00088 { +00089 if (custom_mode_params.size()) +00090 { +00091 for (vector<ModeParameter>::iterator i = custom_mode_params.begin(); i < custom_mode_params.end(); i++) +00092 { +00093 if ((i->mode == mode) && (!strcasecmp(this->name,i->channel))) +00094 { +00095 return std::string(i->parameter); +00096 } +00097 } +00098 } +00099 return std::string(""); +00100 } +
Generated on Sun Apr 4 23:02:14 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/channels_8cpp.html b/docs/module-doc/channels_8cpp.html index 557c5a021..0131eb1a5 100644 --- a/docs/module-doc/channels_8cpp.html +++ b/docs/module-doc/channels_8cpp.html @@ -5,24 +5,57 @@
-Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  
+Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

channels.cpp File Reference

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

Include dependency graph for channels.cpp:

Include dependency graph
- +

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

Namespaces

namespace  std

Variables

vector< ModeParametercustom_mode_params
-


Generated on Sat Apr 3 16:36:04 2004 for InspIRCd by +

Variable Documentation

+

+ + + + +
+ + +
vector<ModeParameter> custom_mode_params +
+
+ + + + + +
+   + + +

+ +

+Definition at line 10 of file channels.cpp. +

+Referenced by chanrec::GetModeParameter(), and chanrec::SetCustomModeParam().

+


Generated on Sun Apr 4 23:02:15 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/channels_8cpp__incl.gif b/docs/module-doc/channels_8cpp__incl.gif index b81c64a1d..c08548480 100644 Binary files a/docs/module-doc/channels_8cpp__incl.gif and b/docs/module-doc/channels_8cpp__incl.gif differ diff --git a/docs/module-doc/channels_8h-source.html b/docs/module-doc/channels_8h-source.html index a91e1ac98..9f660ef79 100644 --- a/docs/module-doc/channels_8h-source.html +++ b/docs/module-doc/channels_8h-source.html @@ -5,7 +5,7 @@
-Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  
+Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

channels.h

Go to the documentation of this file.
00001 /*
 00002 
 00003    
@@ -15,107 +15,121 @@
 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 
-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 
+00010 #include <string>
+00011 
+00012 #ifndef __CHANNELS_H__
+00013 #define __CHANNELS_H__
+00014 
+00018 class HostItem : public classbase
+00019 {
+00020  public:
+00021         time_t set_time;
+00022         char set_by[NICKMAX];
+00023         char data[MAXBUF];
+00024 
+00025         HostItem() { /* stub */ }
+00026         virtual ~HostItem() { /* stub */ }
+00027 };
+00028 
+00029 // banlist is inherited from HostList mainly for readability
+00030 // reasons only
+00031 
+00034 class BanItem : public HostItem
+00035 {
+00036 };
+00037 
+00038 // same with this...
+00039 
+00042 class ExemptItem : public HostItem
+00043 {
+00044 };
+00045 
+00046 // and this...
+00047 
+00050 class InviteItem : public HostItem
+00051 {
+00052 };
 00053 
-00056 typedef std::vector<BanItem>    BanList;
-00057 
-00060 typedef std::vector<ExemptItem> ExemptList;
-00061 
-00064 typedef std::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;
+00054 
+00059 class ModeParameter : public classbase
+00060 {
+00061  public:
+00062         char mode;
+00063         char parameter[MAXBUF];
+00064         char channel[CHANMAX];
+00065 };
+00066 
+00069 typedef std::vector<BanItem>    BanList;
+00070 
+00073 typedef std::vector<ExemptItem> ExemptList;
+00074 
+00077 typedef std::vector<InviteItem> InviteList;
+00078 
+00083 class chanrec : public classbase
+00084 {
+00085  public:
+00088         char name[CHANMAX]; /* channel name */
+00092         char custom_modes[MAXMODES];     /* modes handled by modules */
+00093         
+00097         char topic[MAXBUF];
+00100         time_t created;
+00104         time_t topicset;
+00108         char setby[NICKMAX];
+00109 
+00113         long limit;
+00114         
+00118         char key[32];
+00119         
+00122         short int topiclock;
+00123         
+00126         short int noexternal;
+00127         
+00130         short int inviteonly;
 00131         
-00134         BanList bans;
+00134         short int moderated;
 00135         
-00138         void SetCustomMode(char mode,bool mode_on);
-00139 
-00142         void SetCustomModeParam(char mode,char* parameter,bool mode_on);
-00143  
-00146         chanrec();
-00147 
-00148         virtual ~chanrec() { /* stub */ }
-00149 };
-00150 
-00151 /* used to hold a channel and a users modes on that channel, e.g. +v, +h, +o
-00152  * needs to come AFTER struct chanrec */
+00139         short int secret;
+00140         
+00144         short int c_private;
+00145         
+00148         BanList bans;
+00149         
+00152         void SetCustomMode(char mode,bool mode_on);
 00153 
-00154 #define UCMODE_OP      1
-00155 #define UCMODE_VOICE   2
-00156 #define UCMODE_HOP     4
-00157 #define UCMODE_PROTECT 8
-00158 #define UCMODE_FOUNDER 16
-00159  
-00165 class ucrec : public classbase
-00166 {
-00167  public:
-00171         long uc_modes;
-00172         
-00176         chanrec *channel;
-00177 
-00178         ucrec() { /* stub */ }
-00179         virtual ~ucrec() { /* stub */ }
-00180 };
-00181 
-00182 #endif
-00183 
-

Generated on Sat Apr 3 16:36:02 2004 for InspIRCd by +00156 void SetCustomModeParam(char mode,char* parameter,bool mode_on); +00157 +00160 bool IsCustomModeSet(char mode); +00161 +00168 std::string GetModeParameter(char mode); +00169 +00172 chanrec(); +00173 +00174 virtual ~chanrec() { /* stub */ } +00175 }; +00176 +00177 /* used to hold a channel and a users modes on that channel, e.g. +v, +h, +o +00178 * needs to come AFTER struct chanrec */ +00179 +00180 #define UCMODE_OP 1 +00181 #define UCMODE_VOICE 2 +00182 #define UCMODE_HOP 4 +00183 #define UCMODE_PROTECT 8 +00184 #define UCMODE_FOUNDER 16 +00185 +00191 class ucrec : public classbase +00192 { +00193 public: +00197 long uc_modes; +00198 +00202 chanrec *channel; +00203 +00204 ucrec() { /* stub */ } +00205 virtual ~ucrec() { /* stub */ } +00206 }; +00207 +00208 #endif +00209 +
Generated on Sun Apr 4 23:02:14 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/channels_8h.html b/docs/module-doc/channels_8h.html index c68dc1bfa..0c462932c 100644 --- a/docs/module-doc/channels_8h.html +++ b/docs/module-doc/channels_8h.html @@ -5,11 +5,12 @@
-Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  
+Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

channels.h File Reference

#include "inspircd_config.h"
#include "base.h"
#include <time.h>
#include <vector>
+#include <string>

Include dependency graph for channels.h:

Include dependency graph
@@ -39,6 +40,8 @@ This graph shows which files directly or indirectly include this file:

 Holds an entry for a ban list, exemption list, or invite list. More...

class  InviteItem  A subclass of HostItem designed to hold channel invites (+I). More...

+class  ModeParameterHolds a custom parameter to a module-defined channel mode e.g. More...

class  ucrec  Holds 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. More...


Defines

@@ -77,7 +80,7 @@ This graph shows which files directly or indirectly include this file:

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

@@ -101,7 +104,7 @@ Definition at line 158 o

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

@@ -125,7 +128,7 @@ Definition at line 156 o

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

@@ -149,7 +152,7 @@ Definition at line 154 o

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

@@ -173,7 +176,7 @@ Definition at line 157 o

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


Typedef Documentation

@@ -200,7 +203,7 @@ Holds a complete ban list.

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

@@ -226,7 +229,7 @@ Holds a complete exempt list.

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

@@ -252,10 +255,10 @@ Holds a complete invite list.

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


Generated on Sat Apr 3 16:36:04 2004 for InspIRCd by +
Generated on Sun Apr 4 23:02:16 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/channels_8h__incl.gif b/docs/module-doc/channels_8h__incl.gif index f80dd2a82..a339b02a0 100644 Binary files a/docs/module-doc/channels_8h__incl.gif and b/docs/module-doc/channels_8h__incl.gif differ diff --git a/docs/module-doc/classAdmin-members.html b/docs/module-doc/classAdmin-members.html index 3019adbd4..105871e3c 100644 --- a/docs/module-doc/classAdmin-members.html +++ b/docs/module-doc/classAdmin-members.html @@ -5,7 +5,7 @@
-Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  
+Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

Admin Member List

This is the complete list of members for Admin, including all inherited members. @@ -14,7 +14,7 @@ -
Admin(std::string name, std::string email, std::string nick)Admin
ageclassbase
NameAdmin
NickAdmin
~classbase()classbase [inline]

Generated on Sat Apr 3 16:36:09 2004 for InspIRCd by +
Generated on Sun Apr 4 23:02:21 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classAdmin.html b/docs/module-doc/classAdmin.html index 062a52a09..6ead4dc48 100644 --- a/docs/module-doc/classAdmin.html +++ b/docs/module-doc/classAdmin.html @@ -5,7 +5,7 @@
-Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  
+Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

Admin Class Reference

Holds /ADMIN data This class contains the admin details of the local server. More...

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

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

-

00091 : Name(name), Email(email), Nick(nick) { };
+
00105 : Name(name), Email(email), Nick(nick) { };
 
@@ -160,7 +160,7 @@ Definition at line 81 of
The documentation for this class was generated from the following files: -
Generated on Sat Apr 3 16:36:09 2004 for InspIRCd by +
Generated on Sun Apr 4 23:02:21 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classBanItem-members.html b/docs/module-doc/classBanItem-members.html index a1e49d34b..195b7fd56 100644 --- a/docs/module-doc/classBanItem-members.html +++ b/docs/module-doc/classBanItem-members.html @@ -5,7 +5,7 @@
-Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  
+Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

BanItem Member List

This is the complete list of members for BanItem, including all inherited members. @@ -15,7 +15,7 @@ -
ageclassbase
classbase()classbase [inline]
set_timeHostItem
~classbase()classbase [inline]
~HostItem()HostItem [inline, virtual]

Generated on Sat Apr 3 16:36:09 2004 for InspIRCd by +
Generated on Sun Apr 4 23:02:22 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classBanItem.html b/docs/module-doc/classBanItem.html index 23950eb26..d98e411df 100644 --- a/docs/module-doc/classBanItem.html +++ b/docs/module-doc/classBanItem.html @@ -5,7 +5,7 @@
-Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  
+Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

BanItem Class Reference

A subclass of HostItem designed to hold channel bans (+b). More...

@@ -29,9 +29,9 @@ A subclass of HostItem designed to h

-Definition at line 33 of file channels.h.


The documentation for this class was generated from the following file: +: modules.h
  • custom_mode_params +: channels.cpp

    - d -

    +: modules.cpp

    - e -

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

    -
    Generated on Sat Apr 3 16:36:20 2004 for InspIRCd by +
    Generated on Sun Apr 4 23:02:34 2004 for InspIRCd by doxygen1.3-rc3
    diff --git a/docs/module-doc/graph_legend.html b/docs/module-doc/graph_legend.html index f34cbc22e..a01b1b1fb 100644 --- a/docs/module-doc/graph_legend.html +++ b/docs/module-doc/graph_legend.html @@ -5,7 +5,7 @@
    -Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  
    +Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

    Graph Legend

    This page explains how to interpret the graphs that are generated by doxygen.

    Consider the following example:

    
     /*! Invisible class because of truncation */
    @@ -69,7 +69,7 @@ A purple dashed arrow is used if a class is contained or used by another class.
     
  • A yellow dashed arrow denotes a relation between a template instance and the template class it was instantiated from. The arrow is labeled with the template parameters of the instance.
  • -
    Generated on Sat Apr 3 16:36:20 2004 for InspIRCd by +
    Generated on Sun Apr 4 23:02:34 2004 for InspIRCd by doxygen1.3-rc3
    diff --git a/docs/module-doc/hierarchy.html b/docs/module-doc/hierarchy.html index 4963a7754..fc02b7e80 100644 --- a/docs/module-doc/hierarchy.html +++ b/docs/module-doc/hierarchy.html @@ -5,7 +5,7 @@
    -Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  
    +Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

    InspIRCd Class Hierarchy

    Go to the graphical class hierarchy

    This inheritance list is sorted roughly, but not completely, alphabetically:

    -
    Generated on Sat Apr 3 16:36:08 2004 for InspIRCd by +
    Generated on Sun Apr 4 23:02:21 2004 for InspIRCd by doxygen1.3-rc3
    diff --git a/docs/module-doc/inherit__graph__0.gif b/docs/module-doc/inherit__graph__0.gif index ff69e5b46..e6ee4dda3 100644 Binary files a/docs/module-doc/inherit__graph__0.gif and b/docs/module-doc/inherit__graph__0.gif differ diff --git a/docs/module-doc/inherits.html b/docs/module-doc/inherits.html index 0b3d5b02f..730f8bd25 100644 --- a/docs/module-doc/inherits.html +++ b/docs/module-doc/inherits.html @@ -5,40 +5,41 @@
    -Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  
    +Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

    InspIRCd Graphical Class Hierarchy

    Go to the textual class hierarchy

    - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + +
    -


    Generated on Sat Apr 3 16:36:21 2004 for InspIRCd by +
    Generated on Sun Apr 4 23:02:35 2004 for InspIRCd by doxygen1.3-rc3
    diff --git a/docs/module-doc/main.html b/docs/module-doc/main.html index e14b524c5..8dfaedc38 100644 --- a/docs/module-doc/main.html +++ b/docs/module-doc/main.html @@ -5,10 +5,10 @@
    -Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  
    +Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

    InspIRCd Documentation

    -


    Generated on Sat Apr 3 16:36:02 2004 for InspIRCd by +
    Generated on Sun Apr 4 23:02:14 2004 for InspIRCd by doxygen1.3-rc3
    diff --git a/docs/module-doc/modules_8cpp-source.html b/docs/module-doc/modules_8cpp-source.html index 2f2b820a9..b9e6886be 100644 --- a/docs/module-doc/modules_8cpp-source.html +++ b/docs/module-doc/modules_8cpp-source.html @@ -5,7 +5,7 @@
    -Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  
    +Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

    modules.cpp

    Go to the documentation of this file.
    00001 /*
     00002 
     00003 
    @@ -27,10 +27,10 @@
     00019 public:
     00020         char modechar;
     00021         int type;
    -00022         bool default_on;
    -00023         int params_when_on;
    -00024         int params_when_off;
    -00025         ExtMode(char mc, int ty, bool d_on, int p_on, int p_off) : modechar(mc), type(ty), default_on(d_on), params_when_on(p_on), params_when_off(p_off) { };
    +00022         int params_when_on;
    +00023         int params_when_off;
    +00024         bool needsoper;
    +00025         ExtMode(char mc, int ty, bool oper, int p_on, int p_off) : modechar(mc), type(ty), needsoper(oper), params_when_on(p_on), params_when_off(p_off) { };
     00026 };                                     
     00027 
     00028 typedef std::vector<ExtMode> ExtModeList;
    @@ -53,282 +53,311 @@
     00045         return false;
     00046 }
     00047 
    -00048 // returns number of parameters for a custom mode when it is switched on
    -00049 int ModeDefinedOn(char modechar, int type)
    -00050 {
    +00048 bool ModeDefinedOper(char modechar, int type)
    +00049 {
    +00050         log(DEBUG,"Size of extmodes vector is %d",EMode.size());
     00051         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
     00052         {
    -00053                 if ((i->modechar == modechar) && (i->type == type))
    -00054                 {
    -00055                         return i->params_when_on;
    -00056                 }
    -00057         }
    -00058         return 0;
    -00059 }
    -00060 
    -00061 // returns number of parameters for a custom mode when it is switched on
    -00062 int ModeDefinedOff(char modechar, int type)
    -00063 {
    -00064         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    -00065         {
    -00066                 if ((i->modechar == modechar) && (i->type == type))
    -00067                 {
    -00068                         return i->params_when_off;
    -00069                 }
    -00070         }
    -00071         return 0;
    -00072 }
    -00073 
    -00074 // returns true if an extended mode character is in use
    -00075 bool DoAddExtendedMode(char modechar, int type, bool default_on, int params_on, int params_off)
    -00076 {
    -00077         if (ModeDefined(modechar,type)) {
    -00078                 return false;
    -00079         }
    -00080         EMode.push_back(ExtMode(modechar,type,default_on,params_on,params_off));
    -00081         return true;
    -00082 }
    -00083 
    -00084 
    -00085 // version is a simple class for holding a modules version number
    -00086 
    -00087 Version::Version(int major, int minor, int revision, int build) : Major(major), Minor(minor), Revision(revision), Build(build) { };
    -00088 
    -00089 // admin is a simple class for holding a server's administrative info
    -00090 
    -00091 Admin::Admin(std::string name, std::string email, std::string nick) : Name(name), Email(email), Nick(nick) { };
    -00092 
    -00093 Module::Module() { }
    -00094 Module::~Module() { }
    -00095 void Module::OnUserConnect(userrec* user) { }
    -00096 void Module::OnUserQuit(userrec* user) { }
    -00097 void Module::OnUserJoin(userrec* user, chanrec* channel) { }
    -00098 void Module::OnUserPart(userrec* user, chanrec* channel) { }
    -00099 void Module::OnPacketTransmit(char *p) { }
    -00100 void Module::OnPacketReceive(char *p) { }
    -00101 void Module::OnRehash() { }
    -00102 void Module::OnServerRaw(std::string &raw, bool inbound) { }
    -00103 int Module::OnUserPreJoin(userrec* user, chanrec* chan, char* cname) { return 0; }
    -00104 bool Module::OnExtendedMode(userrec* user, chanrec* chan, char modechar, int type, bool mode_on, string_list &params) { }
    -00105 Version Module::GetVersion() { return Version(1,0,0,0); }
    +00053                 log(DEBUG,"i->modechar==%c, modechar=%c, i->type=%d, type=%d",i->modechar,modechar,i->type,type);
    +00054                 if ((i->modechar == modechar) && (i->type == type) && (i->needsoper == true))
    +00055                 {
    +00056                         return true;
    +00057                 }
    +00058         }
    +00059         return false;
    +00060 }
    +00061 
    +00062 // returns number of parameters for a custom mode when it is switched on
    +00063 int ModeDefinedOn(char modechar, int type)
    +00064 {
    +00065         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    +00066         {
    +00067                 if ((i->modechar == modechar) && (i->type == type))
    +00068                 {
    +00069                         return i->params_when_on;
    +00070                 }
    +00071         }
    +00072         return 0;
    +00073 }
    +00074 
    +00075 // returns number of parameters for a custom mode when it is switched on
    +00076 int ModeDefinedOff(char modechar, int type)
    +00077 {
    +00078         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    +00079         {
    +00080                 if ((i->modechar == modechar) && (i->type == type))
    +00081                 {
    +00082                         return i->params_when_off;
    +00083                 }
    +00084         }
    +00085         return 0;
    +00086 }
    +00087 
    +00088 // returns true if an extended mode character is in use
    +00089 bool DoAddExtendedMode(char modechar, int type, bool requires_oper, int params_on, int params_off)
    +00090 {
    +00091         if (ModeDefined(modechar,type)) {
    +00092                 return false;
    +00093         }
    +00094         EMode.push_back(ExtMode(modechar,type,requires_oper,params_on,params_off));
    +00095         return true;
    +00096 }
    +00097 
    +00098 
    +00099 // version is a simple class for holding a modules version number
    +00100 
    +00101 Version::Version(int major, int minor, int revision, int build) : Major(major), Minor(minor), Revision(revision), Build(build) { };
    +00102 
    +00103 // admin is a simple class for holding a server's administrative info
    +00104 
    +00105 Admin::Admin(std::string name, std::string email, std::string nick) : Name(name), Email(email), Nick(nick) { };
     00106 
    -00107 // server is a wrapper class that provides methods to all of the C-style
    -00108 // exports in the core
    -00109 //
    -00110 
    -00111 Server::Server()
    -00112 {
    -00113 }
    -00114 
    -00115 Server::~Server()
    -00116 {
    -00117 }
    -00118 
    -00119 void Server::SendOpers(std::string s)
    -00120 {
    -00121         WriteOpers("%s",s.c_str());
    -00122 }
    -00123 
    -00124 void Server::Log(int level, std::string s)
    -00125 {
    -00126         log(level,"%s",s.c_str());
    +00107 Module::Module() { }
    +00108 Module::~Module() { }
    +00109 void Module::OnUserConnect(userrec* user) { }
    +00110 void Module::OnUserQuit(userrec* user) { }
    +00111 void Module::OnUserJoin(userrec* user, chanrec* channel) { }
    +00112 void Module::OnUserPart(userrec* user, chanrec* channel) { }
    +00113 void Module::OnPacketTransmit(char *p) { }
    +00114 void Module::OnPacketReceive(char *p) { }
    +00115 void Module::OnRehash() { }
    +00116 void Module::OnServerRaw(std::string &raw, bool inbound) { }
    +00117 int Module::OnUserPreJoin(userrec* user, chanrec* chan, char* cname) { return 0; }
    +00118 bool Module::OnExtendedMode(userrec* user, chanrec* chan, char modechar, int type, bool mode_on, string_list &params) { }
    +00119 Version Module::GetVersion() { return Version(1,0,0,0); }
    +00120 
    +00121 // server is a wrapper class that provides methods to all of the C-style
    +00122 // exports in the core
    +00123 //
    +00124 
    +00125 Server::Server()
    +00126 {
     00127 }
     00128 
    -00129 void Server::AddCommand(char* cmd, handlerfunc f, char flags, int minparams)
    +00129 Server::~Server()
     00130 {
    -00131         createcommand(cmd,f,flags,minparams);
    -00132 }
    -00133 
    -00134 void Server::SendMode(char **parameters, int pcnt, userrec *user)
    -00135 {
    -00136         server_mode(parameters,pcnt,user);
    -00137 }
    -00138 
    -00139 void Server::Send(int Socket, std::string s)
    -00140 {
    -00141         Write(Socket,"%s",s.c_str());
    -00142 }
    -00143 
    -00144 void Server::SendServ(int Socket, std::string s)
    -00145 {
    -00146         WriteServ(Socket,"%s",s.c_str());
    -00147 }
    -00148 
    -00149 void Server::SendFrom(int Socket, userrec* User, std::string s)
    -00150 {
    -00151         WriteFrom(Socket,User,"%s",s.c_str());
    -00152 }
    -00153 
    -00154 void Server::SendTo(userrec* Source, userrec* Dest, std::string s)
    -00155 {
    -00156         WriteTo(Source,Dest,"%s",s.c_str());
    -00157 }
    -00158 
    -00159 void Server::SendChannel(userrec* User, chanrec* Channel, std::string s,bool IncludeSender)
    -00160 {
    -00161         if (IncludeSender)
    -00162         {
    -00163                 WriteChannel(Channel,User,"%s",s.c_str());
    -00164         }
    -00165         else
    -00166         {
    -00167                 ChanExceptSender(Channel,User,"%s",s.c_str());
    -00168         }
    -00169 }
    -00170 
    -00171 bool Server::CommonChannels(userrec* u1, userrec* u2)
    -00172 {
    -00173         return (common_channels(u1,u2) != 0);
    -00174 }
    -00175 
    -00176 void Server::SendCommon(userrec* User, std::string text,bool IncludeSender)
    -00177 {
    -00178         if (IncludeSender)
    -00179         {
    -00180                 WriteCommon(User,"%s",text.c_str());
    -00181         }
    -00182         else
    -00183         {
    -00184                 WriteCommonExcept(User,"%s",text.c_str());
    -00185         }
    -00186 }
    -00187 
    -00188 void Server::SendWallops(userrec* User, std::string text)
    -00189 {
    -00190         WriteWallOps(User,"%s",text.c_str());
    -00191 }
    -00192 
    -00193 bool Server::IsNick(std::string nick)
    -00194 {
    -00195         return (isnick(nick.c_str()) != 0);
    -00196 }
    -00197 
    -00198 userrec* Server::FindNick(std::string nick)
    -00199 {
    -00200         return Find(nick);
    -00201 }
    -00202 
    -00203 chanrec* Server::FindChannel(std::string channel)
    -00204 {
    -00205         return FindChan(channel.c_str());
    -00206 }
    -00207 
    -00208 std::string Server::ChanMode(userrec* User, chanrec* Chan)
    -00209 {
    -00210         return cmode(User,Chan);
    -00211 }
    -00212 
    -00213 std::string Server::GetServerName()
    -00214 {
    -00215         return getservername();
    -00216 }
    -00217 
    -00218 std::string Server::GetNetworkName()
    -00219 {
    -00220         return getnetworkname();
    -00221 }
    -00222 
    -00223 Admin Server::GetAdmin()
    -00224 {
    -00225         return Admin(getadminname(),getadminemail(),getadminnick());
    -00226 }
    -00227 
    -00228 
    -00229 
    -00230 bool Server::AddExtendedMode(char modechar, int type, bool default_on, int params_when_on, int params_when_off)
    -00231 {
    -00232         return DoAddExtendedMode(modechar,type,default_on,params_when_on,params_when_off);
    -00233 }
    -00234 
    -00235 
    -00236 ConfigReader::ConfigReader()
    -00237 {
    -00238         fname = CONFIG_FILE;
    -00239 }
    -00240 
    +00131 }
    +00132 
    +00133 void Server::SendOpers(std::string s)
    +00134 {
    +00135         WriteOpers("%s",s.c_str());
    +00136 }
    +00137 
    +00138 void Server::Log(int level, std::string s)
    +00139 {
    +00140         log(level,"%s",s.c_str());
    +00141 }
    +00142 
    +00143 void Server::AddCommand(char* cmd, handlerfunc f, char flags, int minparams)
    +00144 {
    +00145         createcommand(cmd,f,flags,minparams);
    +00146 }
    +00147 
    +00148 void Server::SendMode(char **parameters, int pcnt, userrec *user)
    +00149 {
    +00150         server_mode(parameters,pcnt,user);
    +00151 }
    +00152 
    +00153 void Server::Send(int Socket, std::string s)
    +00154 {
    +00155         Write(Socket,"%s",s.c_str());
    +00156 }
    +00157 
    +00158 void Server::SendServ(int Socket, std::string s)
    +00159 {
    +00160         WriteServ(Socket,"%s",s.c_str());
    +00161 }
    +00162 
    +00163 void Server::SendFrom(int Socket, userrec* User, std::string s)
    +00164 {
    +00165         WriteFrom(Socket,User,"%s",s.c_str());
    +00166 }
    +00167 
    +00168 void Server::SendTo(userrec* Source, userrec* Dest, std::string s)
    +00169 {
    +00170         WriteTo(Source,Dest,"%s",s.c_str());
    +00171 }
    +00172 
    +00173 void Server::SendChannel(userrec* User, chanrec* Channel, std::string s,bool IncludeSender)
    +00174 {
    +00175         if (IncludeSender)
    +00176         {
    +00177                 WriteChannel(Channel,User,"%s",s.c_str());
    +00178         }
    +00179         else
    +00180         {
    +00181                 ChanExceptSender(Channel,User,"%s",s.c_str());
    +00182         }
    +00183 }
    +00184 
    +00185 bool Server::CommonChannels(userrec* u1, userrec* u2)
    +00186 {
    +00187         return (common_channels(u1,u2) != 0);
    +00188 }
    +00189 
    +00190 void Server::SendCommon(userrec* User, std::string text,bool IncludeSender)
    +00191 {
    +00192         if (IncludeSender)
    +00193         {
    +00194                 WriteCommon(User,"%s",text.c_str());
    +00195         }
    +00196         else
    +00197         {
    +00198                 WriteCommonExcept(User,"%s",text.c_str());
    +00199         }
    +00200 }
    +00201 
    +00202 void Server::SendWallops(userrec* User, std::string text)
    +00203 {
    +00204         WriteWallOps(User,"%s",text.c_str());
    +00205 }
    +00206 
    +00207 bool Server::IsNick(std::string nick)
    +00208 {
    +00209         return (isnick(nick.c_str()) != 0);
    +00210 }
    +00211 
    +00212 userrec* Server::FindNick(std::string nick)
    +00213 {
    +00214         return Find(nick);
    +00215 }
    +00216 
    +00217 chanrec* Server::FindChannel(std::string channel)
    +00218 {
    +00219         return FindChan(channel.c_str());
    +00220 }
    +00221 
    +00222 std::string Server::ChanMode(userrec* User, chanrec* Chan)
    +00223 {
    +00224         return cmode(User,Chan);
    +00225 }
    +00226 
    +00227 std::string Server::GetServerName()
    +00228 {
    +00229         return getservername();
    +00230 }
    +00231 
    +00232 std::string Server::GetNetworkName()
    +00233 {
    +00234         return getnetworkname();
    +00235 }
    +00236 
    +00237 Admin Server::GetAdmin()
    +00238 {
    +00239         return Admin(getadminname(),getadminemail(),getadminnick());
    +00240 }
     00241 
    -00242 ConfigReader::~ConfigReader()
    -00243 {
    -00244 }
    -00245 
    -00246 
    -00247 ConfigReader::ConfigReader(std::string filename) : fname(filename) { };
    -00248 
    -00249 std::string ConfigReader::ReadValue(std::string tag, std::string name, int index)
    -00250 {
    -00251         char val[MAXBUF];
    -00252         ReadConf(fname.c_str(),tag.c_str(),name.c_str(),index,val);
    -00253         return val;
    -00254 }
    -00255 
    -00256 
    -00257 int ConfigReader::Enumerate(std::string tag)
    -00258 {
    -00259         return EnumConf(fname.c_str(),tag.c_str());
    -00260 }
    -00261 
    -00262 
    -00263 bool ConfigReader::Verify()
    -00264 {
    -00265         return true;
    -00266 }
    -00267 
    -00268 
    -00269 FileReader::FileReader(std::string filename)
    -00270 {
    -00271         file_cache c;
    -00272         readfile(c,filename.c_str());
    -00273         this->fc = c;
    -00274 }
    +00242 
    +00243 
    +00244 bool Server::AddExtendedMode(char modechar, int type, bool requires_oper, int params_when_on, int params_when_off)
    +00245 {
    +00246         if (type == MT_SERVER)
    +00247         {
    +00248                 log(DEBUG,"*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion");
    +00249                 return false;
    +00250         }
    +00251         if (((params_when_on>0) || (params_when_off>0)) && (type == MT_CLIENT))
    +00252         {
    +00253                 log(DEBUG,"*** API ERROR *** Parameters on MT_CLIENT modes are not supported");
    +00254                 return false;
    +00255         }
    +00256         if ((params_when_on>1) || (params_when_off>1))
    +00257         {
    +00258                 log(DEBUG,"*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported");
    +00259                 return false;
    +00260         }
    +00261         return DoAddExtendedMode(modechar,type,requires_oper,params_when_on,params_when_off);
    +00262 }
    +00263 
    +00264 
    +00265 ConfigReader::ConfigReader()
    +00266 {
    +00267         fname = CONFIG_FILE;
    +00268 }
    +00269 
    +00270 
    +00271 ConfigReader::~ConfigReader()
    +00272 {
    +00273 }
    +00274 
     00275 
    -00276 FileReader::FileReader()
    -00277 {
    -00278 }
    -00279 
    -00280 void FileReader::LoadFile(std::string filename)
    -00281 {
    -00282         file_cache c;
    -00283         readfile(c,filename.c_str());
    -00284         this->fc = c;
    -00285 }
    -00286 
    -00287 
    -00288 FileReader::~FileReader()
    -00289 {
    -00290 }
    +00276 ConfigReader::ConfigReader(std::string filename) : fname(filename) { };
    +00277 
    +00278 std::string ConfigReader::ReadValue(std::string tag, std::string name, int index)
    +00279 {
    +00280         char val[MAXBUF];
    +00281         ReadConf(fname.c_str(),tag.c_str(),name.c_str(),index,val);
    +00282         return val;
    +00283 }
    +00284 
    +00285 
    +00286 int ConfigReader::Enumerate(std::string tag)
    +00287 {
    +00288         return EnumConf(fname.c_str(),tag.c_str());
    +00289 }
    +00290 
     00291 
    -00292 bool FileReader::Exists()
    +00292 bool ConfigReader::Verify()
     00293 {
    -00294         if (fc.size() == 0)
    -00295         {
    -00296                 return(false);
    -00297         }
    -00298         else
    -00299         {
    -00300                 return(true);
    -00301         }
    -00302 }
    -00303 
    -00304 std::string FileReader::GetLine(int x)
    -00305 {
    -00306         if ((x<0) || (x>fc.size()))
    -00307                 return "";
    -00308         return fc[x];
    -00309 }
    -00310 
    -00311 int FileReader::FileSize()
    -00312 {
    -00313         return fc.size();
    +00294         return true;
    +00295 }
    +00296 
    +00297 
    +00298 FileReader::FileReader(std::string filename)
    +00299 {
    +00300         file_cache c;
    +00301         readfile(c,filename.c_str());
    +00302         this->fc = c;
    +00303 }
    +00304 
    +00305 FileReader::FileReader()
    +00306 {
    +00307 }
    +00308 
    +00309 void FileReader::LoadFile(std::string filename)
    +00310 {
    +00311         file_cache c;
    +00312         readfile(c,filename.c_str());
    +00313         this->fc = c;
     00314 }
     00315 
     00316 
    -00317 std::vector<Module*> modules(255);
    -00318 std::vector<ircd_module*> factory(255);
    -00319 
    -00320 int MODCOUNT  = -1;
    -00321 
    -00322 
    -

    Generated on Sat Apr 3 16:36:02 2004 for InspIRCd by +00317 FileReader::~FileReader() +00318 { +00319 } +00320 +00321 bool FileReader::Exists() +00322 { +00323 if (fc.size() == 0) +00324 { +00325 return(false); +00326 } +00327 else +00328 { +00329 return(true); +00330 } +00331 } +00332 +00333 std::string FileReader::GetLine(int x) +00334 { +00335 if ((x<0) || (x>fc.size())) +00336 return ""; +00337 return fc[x]; +00338 } +00339 +00340 int FileReader::FileSize() +00341 { +00342 return fc.size(); +00343 } +00344 +00345 +00346 std::vector<Module*> modules(255); +00347 std::vector<ircd_module*> factory(255); +00348 +00349 int MODCOUNT = -1; +00350 +00351 +

    Generated on Sun Apr 4 23:02:14 2004 for InspIRCd by doxygen1.3-rc3
    diff --git a/docs/module-doc/modules_8cpp.html b/docs/module-doc/modules_8cpp.html index 4bd2c143c..1aba98c40 100644 --- a/docs/module-doc/modules_8cpp.html +++ b/docs/module-doc/modules_8cpp.html @@ -5,7 +5,7 @@
    -Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  
    +Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

    modules.cpp File Reference

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

    ExtModeListIter

    Functions

    bool ModeDefined (char modechar, int type) -int ModeDefinedOn (char modechar, int type) -int ModeDefinedOff (char modechar, int type) -bool DoAddExtendedMode (char modechar, int type, bool default_on, int params_on, int params_off) -std::vector< Module * > modules (255) -std::vector< ircd_module * > factory (255) +bool ModeDefinedOper (char modechar, int type) +int ModeDefinedOn (char modechar, int type) +int ModeDefinedOff (char modechar, int type) +bool DoAddExtendedMode (char modechar, int type, bool requires_oper, int params_on, int params_off) +std::vector< Module * > modules (255) +std::vector< ircd_module * > factory (255)

    Variables

    ExtModeList EMode int MODCOUNT = -1 @@ -88,11 +89,11 @@ Definition at line 28 o

    Definition at line 29 of file modules.cpp.

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


    Function Documentation

    -

    +

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

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

    References EMode, and ModeDefined().

    -Referenced by Server::AddExtendedMode(). +Referenced by Server::AddExtendedMode().

    -

    00076 {
    -00077         if (ModeDefined(modechar,type)) {
    -00078                 return false;
    -00079         }
    -00080         EMode.push_back(ExtMode(modechar,type,default_on,params_on,params_off));
    -00081         return true;
    -00082 }
    +
    00090 {
    +00091         if (ModeDefined(modechar,type)) {
    +00092                 return false;
    +00093         }
    +00094         EMode.push_back(ExtMode(modechar,type,requires_oper,params_on,params_off));
    +00095         return true;
    +00096 }
     
    @@ -113,7 +114,7 @@ Referenced by ModeDefined() bool   default_on,   requires_oper,
    -

    +

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

    References EMode, and ExtModeListIter.

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

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

    +

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

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

    References EMode, and ExtModeListIter.

    -

    00063 {
    -00064         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    -00065         {
    -00066                 if ((i->modechar == modechar) && (i->type == type))
    -00067                 {
    -00068                         return i->params_when_off;
    -00069                 }
    -00070         }
    -00071         return 0;
    -00072 }
    +
    00077 {
    +00078         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    +00079         {
    +00080                 if ((i->modechar == modechar) && (i->type == type))
    +00081                 {
    +00082                         return i->params_when_off;
    +00083                 }
    +00084         }
    +00085         return 0;
    +00086 }
     
    -

    +

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

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

    References EMode, and ExtModeListIter.

    -

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

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

    + +

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

    +References EMode, and ExtModeListIter. +

    +

    00049 {
    +00050         log(DEBUG,"Size of extmodes vector is %d",EMode.size());
     00051         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
     00052         {
    -00053                 if ((i->modechar == modechar) && (i->type == type))
    -00054                 {
    -00055                         return i->params_when_on;
    -00056                 }
    -00057         }
    -00058         return 0;
    -00059 }
    +00053                 log(DEBUG,"i->modechar==%c, modechar=%c, i->type=%d, type=%d",i->modechar,modechar,i->type,type);
    +00054                 if ((i->modechar == modechar) && (i->type == type) && (i->needsoper == true))
    +00055                 {
    +00056                         return true;
    +00057                 }
    +00058         }
    +00059         return false;
    +00060 }
     
    -

    +

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

    Definition at line 31 of file modules.cpp.

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

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

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


    Generated on Sat Apr 3 16:36:06 2004 for InspIRCd by +
    Generated on Sun Apr 4 23:02:18 2004 for InspIRCd by doxygen1.3-rc3
    diff --git a/docs/module-doc/modules_8h-source.html b/docs/module-doc/modules_8h-source.html index e1848aeb4..39b1855fd 100644 --- a/docs/module-doc/modules_8h-source.html +++ b/docs/module-doc/modules_8h-source.html @@ -5,7 +5,7 @@
    -Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  
    +Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

    modules.h

    Go to the documentation of this file.
    00001 /*
     00002 
     00003 
    @@ -136,55 +136,55 @@
     00282         virtual std::string GetServerName();
     00285         virtual std::string GetNetworkName();
     00291         virtual Admin GetAdmin();
    -00309         virtual bool AddExtendedMode(char modechar, int type, bool default_on, int params_when_on, int params_when_off);
    -00310 
    -00325         virtual void AddCommand(char* cmd, handlerfunc f, char flags, int minparams);
    -00326          
    -00348         virtual void SendMode(char **parameters, int pcnt, userrec *user);
    -00349 };
    -00350 
    -00357 class ConfigReader : public classbase
    -00358 {
    -00359   protected:
    -00362         std::string fname;
    -00363   public:
    -00368         ConfigReader();                 // default constructor reads ircd.conf
    -00372         ConfigReader(std::string filename);     // read a module-specific config
    -00376         ~ConfigReader();
    -00381         std::string ReadValue(std::string tag, std::string name, int index);
    -00388         int Enumerate(std::string tag);
    -00392         bool Verify();
    -00393 };
    -00394 
    +00310         virtual bool AddExtendedMode(char modechar, int type, bool requires_oper, int params_when_on, int params_when_off);
    +00311 
    +00326         virtual void AddCommand(char* cmd, handlerfunc f, char flags, int minparams);
    +00327          
    +00349         virtual void SendMode(char **parameters, int pcnt, userrec *user);
    +00350 };
    +00351 
    +00358 class ConfigReader : public classbase
    +00359 {
    +00360   protected:
    +00363         std::string fname;
    +00364   public:
    +00369         ConfigReader();                 // default constructor reads ircd.conf
    +00373         ConfigReader(std::string filename);     // read a module-specific config
    +00377         ~ConfigReader();
    +00382         std::string ReadValue(std::string tag, std::string name, int index);
    +00389         int Enumerate(std::string tag);
    +00393         bool Verify();
    +00394 };
     00395 
     00396 
    -00402 class FileReader : public classbase
    -00403 {
    -00404  file_cache fc;
    -00405  public:
    -00410          FileReader();
    -00416          FileReader(std::string filename);
    -00420          ~FileReader();
    -00426          void LoadFile(std::string filename);
    -00431          bool Exists();
    -00432          std::string GetLine(int x);
    -00438          int FileSize();
    -00439 };
    -00440 
    +00397 
    +00403 class FileReader : public classbase
    +00404 {
    +00405  file_cache fc;
    +00406  public:
    +00411          FileReader();
    +00417          FileReader(std::string filename);
    +00421          ~FileReader();
    +00427          void LoadFile(std::string filename);
    +00432          bool Exists();
    +00433          std::string GetLine(int x);
    +00439          int FileSize();
    +00440 };
     00441 
    -00448 class ModuleFactory : public classbase
    -00449 {
    -00450  public:
    -00451         ModuleFactory() { }
    -00452         virtual ~ModuleFactory() { }
    -00457         virtual Module * CreateModule() = 0;
    -00458 };
    -00459 
    +00442 
    +00449 class ModuleFactory : public classbase
    +00450 {
    +00451  public:
    +00452         ModuleFactory() { }
    +00453         virtual ~ModuleFactory() { }
    +00458         virtual Module * CreateModule() = 0;
    +00459 };
     00460 
    -00461 typedef DLLFactory<ModuleFactory> ircd_module;
    -00462 
    -00463 #endif
    -

    Generated on Sat Apr 3 16:36:03 2004 for InspIRCd by +00461 +00462 typedef DLLFactory<ModuleFactory> ircd_module; +00463 +00464 #endif +


  • Generated on Sun Apr 4 23:02:14 2004 for InspIRCd by doxygen1.3-rc3
    diff --git a/docs/module-doc/modules_8h.html b/docs/module-doc/modules_8h.html index a194ef74d..2d88557b9 100644 --- a/docs/module-doc/modules_8h.html +++ b/docs/module-doc/modules_8h.html @@ -5,7 +5,7 @@
    -Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  
    +Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

    modules.h File Reference

    #include "dynamic.h"
    #include "base.h"
    #include "ctables.h"
    @@ -162,7 +162,7 @@ Definition at line 36 of

    Value:

    { MOD_RESULT = 0; \
                             for (int i = 0; i <= MODCOUNT; i++) { \
    -                        int res = modules[i]->x ; \
    +                        int res = modules[i]->x ; \
                             if (res) { \
                                     MOD_RESULT = res; \
                                     break; \
    @@ -219,7 +219,9 @@ Definition at line 17 of
     

    -Definition at line 18 of file modules.h. +Definition at line 18 of file modules.h. +

    +Referenced by Server::AddExtendedMode().

    @@ -243,7 +245,9 @@ Definition at line 18 of

    -Definition at line 19 of file modules.h. +Definition at line 19 of file modules.h. +

    +Referenced by Server::AddExtendedMode().

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

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

    @@ -368,7 +372,7 @@ Referenced by FileReader::F

    -Definition at line 461 of file modules.h. +Definition at line 462 of file modules.h.

    @@ -445,7 +449,7 @@ Definition at line 30 of

    -Referenced by Server::AddCommand(). +Referenced by Server::AddCommand().

    @@ -491,10 +495,10 @@ Referenced by Server::AddCo

    -Referenced by Server::SendMode(). +Referenced by Server::SendMode(). -


    Generated on Sat Apr 3 16:36:06 2004 for InspIRCd by +
    Generated on Sun Apr 4 23:02:19 2004 for InspIRCd by doxygen1.3-rc3
    diff --git a/docs/module-doc/namespaces.html b/docs/module-doc/namespaces.html new file mode 100644 index 000000000..b799df61f --- /dev/null +++ b/docs/module-doc/namespaces.html @@ -0,0 +1,17 @@ + + +Namespace Index + + + +
    +Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  
    +

    InspIRCd Namespace List

    Here is a list of all namespaces with brief descriptions: + +
    std
    +
    Generated on Sun Apr 4 23:02:34 2004 for InspIRCd by + +doxygen1.3-rc3
    + + diff --git a/docs/module-doc/namespacestd.html b/docs/module-doc/namespacestd.html new file mode 100644 index 000000000..16e737121 --- /dev/null +++ b/docs/module-doc/namespacestd.html @@ -0,0 +1,19 @@ + + +std Namespace Reference + + + +
    +Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  
    +

    std Namespace Reference

    +

    + + +
    +


    Generated on Sun Apr 4 23:02:34 2004 for InspIRCd by + +doxygen1.3-rc3
    + + diff --git a/docs/module-doc/servers_8cpp-source.html b/docs/module-doc/servers_8cpp-source.html index a3b882abf..352e5ea9f 100644 --- a/docs/module-doc/servers_8cpp-source.html +++ b/docs/module-doc/servers_8cpp-source.html @@ -5,7 +5,7 @@
    -Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  
    +Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

    servers.cpp

    Go to the documentation of this file.
    00001 /*
     00002 
     00003 
    @@ -46,7 +46,7 @@
     00038         fd = 0;
     00039 }
     00040 
    -

    Generated on Sat Apr 3 16:36:03 2004 for InspIRCd by +

    Generated on Sun Apr 4 23:02:14 2004 for InspIRCd by doxygen1.3-rc3
    diff --git a/docs/module-doc/servers_8cpp.html b/docs/module-doc/servers_8cpp.html index 9a91a9926..d41f781da 100644 --- a/docs/module-doc/servers_8cpp.html +++ b/docs/module-doc/servers_8cpp.html @@ -5,7 +5,7 @@
    -Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  
    +Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

    servers.cpp File Reference

    #include "inspircd_config.h"
    #include "servers.h"
    #include "inspircd.h"
    @@ -23,7 +23,7 @@ Include dependency graph for servers.cpp:

    Go to the source code of this file.
    -
    Generated on Sat Apr 3 16:36:07 2004 for InspIRCd by +
    Generated on Sun Apr 4 23:02:19 2004 for InspIRCd by doxygen1.3-rc3
    diff --git a/docs/module-doc/servers_8h-source.html b/docs/module-doc/servers_8h-source.html index 2417a11fa..07979a8ec 100644 --- a/docs/module-doc/servers_8h-source.html +++ b/docs/module-doc/servers_8h-source.html @@ -5,7 +5,7 @@
    -Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  
    +Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

    servers.h

    Go to the documentation of this file.
    00001 /*
     00002 
     00003 
    @@ -44,7 +44,7 @@
     00060 
     00061 #endif
     00062 
    -

    Generated on Sat Apr 3 16:36:03 2004 for InspIRCd by +
    Generated on Sun Apr 4 23:02:14 2004 for InspIRCd by doxygen1.3-rc3
    diff --git a/docs/module-doc/servers_8h.html b/docs/module-doc/servers_8h.html index b82e96586..04711aa7e 100644 --- a/docs/module-doc/servers_8h.html +++ b/docs/module-doc/servers_8h.html @@ -5,7 +5,7 @@
    -Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  
    +Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

    servers.h File Reference

    #include "inspircd_config.h"
    #include "connection.h"
    #include <string>
    @@ -82,7 +82,7 @@ Definition at line 14 of Definition at line 15 of file servers.h. -
    Generated on Sat Apr 3 16:36:07 2004 for InspIRCd by +
    Generated on Sun Apr 4 23:02:20 2004 for InspIRCd by doxygen1.3-rc3
    diff --git a/docs/module-doc/tree.html b/docs/module-doc/tree.html index 64faf1dcf..15ebe779d 100644 --- a/docs/module-doc/tree.html +++ b/docs/module-doc/tree.html @@ -141,6 +141,7 @@

    HostItem

    Invited

    InviteItem

    +

    ModeParameter

    Module

    ModuleFactory

    packet

    @@ -172,6 +173,7 @@

    InviteItem

    Invited

    +

    ModeParameter

    Module

    ModuleFactory

    packet

    @@ -182,6 +184,10 @@

    ExtMode

    Compound Members

    +

    Namespace List

    +
    +

    std

    +

    File Members

    Graphical Class Hierarchy

    diff --git a/docs/module-doc/users_8cpp-source.html b/docs/module-doc/users_8cpp-source.html index 692328224..2c4d80069 100644 --- a/docs/module-doc/users_8cpp-source.html +++ b/docs/module-doc/users_8cpp-source.html @@ -5,7 +5,7 @@
    -Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  
    +Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

    users.cpp

    Go to the documentation of this file.
    00001 /*
     00002 
     00003 */
    @@ -77,18 +77,22 @@
     00069 
     00070 void userrec::RemoveInvite(char* channel)
     00071 {
    -00072         for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++)
    -00073         {
    -00074                 if (i->channel) {
    -00075                         if (!strcasecmp(i->channel,channel))
    -00076                         {
    -00077                                 invites.erase(i);
    -00078                                 return;
    -00079                         }
    -00080                 }
    -00081         }
    -00082 }
    -

    Generated on Sat Apr 3 16:36:03 2004 for InspIRCd by +00072 log(DEBUG,"Removing invites"); +00073 if (invites.size()) +00074 { +00075 for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++) +00076 { +00077 if (i->channel) { +00078 if (!strcasecmp(i->channel,channel)) +00079 { +00080 invites.erase(i); +00081 return; +00082 } +00083 } +00084 } +00085 } +00086 } +
    Generated on Sun Apr 4 23:02:14 2004 for InspIRCd by doxygen1.3-rc3
    diff --git a/docs/module-doc/users_8cpp.html b/docs/module-doc/users_8cpp.html index 8368c0d9a..dd871ec7c 100644 --- a/docs/module-doc/users_8cpp.html +++ b/docs/module-doc/users_8cpp.html @@ -5,7 +5,7 @@
    -Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  
    +Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

    users.cpp File Reference

    #include "inspircd_config.h"
    #include "channels.h"
    #include "users.h"
    @@ -15,17 +15,17 @@

    Include dependency graph for users.cpp:

    Include dependency graph
    - - - - + + + +

    Go to the source code of this file.
    -


    Generated on Sat Apr 3 16:36:08 2004 for InspIRCd by +
    Generated on Sun Apr 4 23:02:20 2004 for InspIRCd by doxygen1.3-rc3
    diff --git a/docs/module-doc/users_8cpp__incl.gif b/docs/module-doc/users_8cpp__incl.gif index 531db1ebb..8b2adf33d 100644 Binary files a/docs/module-doc/users_8cpp__incl.gif and b/docs/module-doc/users_8cpp__incl.gif differ diff --git a/docs/module-doc/users_8h-source.html b/docs/module-doc/users_8h-source.html index 9edbfa2da..e3b4b4ddf 100644 --- a/docs/module-doc/users_8h-source.html +++ b/docs/module-doc/users_8h-source.html @@ -5,7 +5,7 @@
    -Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  
    +Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

    users.h

    Go to the documentation of this file.
    00001 /*
     00002 
     00003 
    @@ -64,7 +64,7 @@
     00081         
     00084         char fullname[128];
     00085         
    -00090         char modes[32];
    +00090         char modes[MAXBUF];
     00091         
     00092         ucrec chans[MAXCHANS];
     00093         
    @@ -92,7 +92,7 @@
     00140 
     00141 
     00142 #endif
    -

    Generated on Sat Apr 3 16:36:03 2004 for InspIRCd by +
    Generated on Sun Apr 4 23:02:14 2004 for InspIRCd by doxygen1.3-rc3
    diff --git a/docs/module-doc/users_8h.html b/docs/module-doc/users_8h.html index 6e0f0e5e8..b00362508 100644 --- a/docs/module-doc/users_8h.html +++ b/docs/module-doc/users_8h.html @@ -5,7 +5,7 @@
    -Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  
    +Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

    users.h File Reference

    #include "inspircd_config.h"
    #include "channels.h"
    #include "connection.h"
    @@ -245,7 +245,7 @@ Holds a complete list of all channels to which a user has been invited and has n Definition at line 44 of file users.h. -
    Generated on Sat Apr 3 16:36:08 2004 for InspIRCd by +
    Generated on Sun Apr 4 23:02:21 2004 for InspIRCd by doxygen1.3-rc3
    diff --git a/docs/module-doc/users_8h__incl.gif b/docs/module-doc/users_8h__incl.gif index 132ac7120..2a8e2eacc 100644 Binary files a/docs/module-doc/users_8h__incl.gif and b/docs/module-doc/users_8h__incl.gif differ -- cgit v1.2.3