From 755d67224f033aaa9b4ef3d2dd00f46bb8c19dc2 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 7 Apr 2005 20:15:05 +0000 Subject: New docs to match extra module Version class stuff, etc git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1008 e03df62e-2008-0410-955e-edbf42e46eb7 --- docs/module-doc/annotated.html | 2 +- docs/module-doc/base_8h-source.html | 2 +- docs/module-doc/base_8h.html | 2 +- docs/module-doc/channels_8cpp-source.html | 185 +-- docs/module-doc/channels_8cpp.html | 112 +- docs/module-doc/channels_8h-source.html | 2 +- docs/module-doc/channels_8h.html | 2 +- docs/module-doc/classAdmin-members.html | 2 +- docs/module-doc/classAdmin.html | 14 +- docs/module-doc/classBanItem-members.html | 2 +- docs/module-doc/classBanItem.html | 2 +- docs/module-doc/classConfigReader-members.html | 2 +- docs/module-doc/classConfigReader.html | 320 ++--- docs/module-doc/classConnectClass-members.html | 2 +- docs/module-doc/classConnectClass.html | 2 +- docs/module-doc/classDNS-members.html | 2 +- docs/module-doc/classDNS.html | 2 +- docs/module-doc/classELine-members.html | 2 +- docs/module-doc/classELine.html | 2 +- docs/module-doc/classExemptItem-members.html | 2 +- docs/module-doc/classExemptItem.html | 2 +- docs/module-doc/classExtMode-members.html | 2 +- docs/module-doc/classExtMode.html | 30 +- docs/module-doc/classExtensible-members.html | 2 +- docs/module-doc/classExtensible.html | 2 +- docs/module-doc/classFileReader-members.html | 2 +- docs/module-doc/classFileReader.html | 100 +- docs/module-doc/classGLine-members.html | 2 +- docs/module-doc/classGLine.html | 2 +- docs/module-doc/classHostItem-members.html | 2 +- docs/module-doc/classHostItem.html | 2 +- docs/module-doc/classInviteItem-members.html | 2 +- docs/module-doc/classInviteItem.html | 2 +- docs/module-doc/classInvited-members.html | 2 +- docs/module-doc/classInvited.html | 4 +- docs/module-doc/classKLine-members.html | 2 +- docs/module-doc/classKLine.html | 2 +- docs/module-doc/classModeParameter-members.html | 2 +- docs/module-doc/classModeParameter.html | 8 +- docs/module-doc/classModule-members.html | 2 +- docs/module-doc/classModule.html | 130 +- docs/module-doc/classModuleFactory-members.html | 2 +- docs/module-doc/classModuleFactory.html | 12 +- docs/module-doc/classQLine-members.html | 2 +- docs/module-doc/classQLine.html | 2 +- docs/module-doc/classServer-members.html | 4 +- docs/module-doc/classServer.html | 448 +++---- docs/module-doc/classVersion-members.html | 5 +- docs/module-doc/classVersion.html | 52 +- docs/module-doc/classXLine-members.html | 2 +- docs/module-doc/classXLine.html | 2 +- docs/module-doc/classZLine-members.html | 2 +- docs/module-doc/classZLine.html | 2 +- docs/module-doc/classchanrec-members.html | 2 +- docs/module-doc/classchanrec.html | 216 +-- docs/module-doc/classclassbase-members.html | 2 +- docs/module-doc/classclassbase.html | 2 +- docs/module-doc/classcommand__t-members.html | 3 +- docs/module-doc/classcommand__t.html | 31 +- docs/module-doc/classconnection-members.html | 2 +- docs/module-doc/classconnection.html | 32 +- docs/module-doc/classes.html | 2 +- docs/module-doc/classircd__connector-members.html | 2 +- docs/module-doc/classircd__connector.html | 2 +- docs/module-doc/classpacket-members.html | 2 +- docs/module-doc/classpacket.html | 2 +- docs/module-doc/classserverrec-members.html | 2 +- docs/module-doc/classserverrec.html | 88 +- docs/module-doc/classucrec-members.html | 2 +- docs/module-doc/classucrec.html | 6 +- docs/module-doc/classuserrec-members.html | 2 +- docs/module-doc/classuserrec.html | 286 ++-- docs/module-doc/commands_8h-source.html | 64 +- docs/module-doc/commands_8h.html | 202 ++- docs/module-doc/connection_8h-source.html | 2 +- docs/module-doc/connection_8h.html | 2 +- docs/module-doc/ctables_8h-source.html | 11 +- docs/module-doc/ctables_8h.html | 2 +- docs/module-doc/dns_8h-source.html | 2 +- docs/module-doc/dns_8h.html | 2 +- docs/module-doc/files.html | 2 +- docs/module-doc/functions.html | 13 +- docs/module-doc/functions_func.html | 2 +- docs/module-doc/functions_vars.html | 7 +- docs/module-doc/globals.html | 207 +-- docs/module-doc/globals_defs.html | 20 +- docs/module-doc/globals_func.html | 82 +- docs/module-doc/globals_type.html | 22 +- docs/module-doc/globals_vars.html | 96 +- docs/module-doc/hierarchy.html | 2 +- docs/module-doc/main.html | 2 +- docs/module-doc/message_8h-source.html | 2 +- docs/module-doc/message_8h.html | 16 +- docs/module-doc/mode_8h-source.html | 4 +- docs/module-doc/mode_8h.html | 2 +- docs/module-doc/modules_8cpp-source.html | 1398 ++++++++++---------- docs/module-doc/modules_8cpp.html | 624 ++++----- docs/module-doc/modules_8h-source.html | 471 +++---- docs/module-doc/modules_8h.html | 224 +++- docs/module-doc/namespacenspace.html | 2 +- docs/module-doc/namespaces.html | 2 +- docs/module-doc/namespacestd.html | 2 +- docs/module-doc/servers_8cpp-source.html | 70 +- docs/module-doc/servers_8cpp.html | 30 +- docs/module-doc/servers_8h-source.html | 2 +- docs/module-doc/servers_8h.html | 2 +- .../module-doc/structInAddr__HashComp-members.html | 2 +- docs/module-doc/structInAddr__HashComp.html | 22 +- docs/module-doc/structStrHashComp-members.html | 2 +- docs/module-doc/structStrHashComp.html | 16 +- docs/module-doc/structdns__ip4list-members.html | 2 +- docs/module-doc/structdns__ip4list.html | 2 +- ..._1nspace_1_1hash_3_01in__addr_01_4-members.html | 2 +- ...nspace_1_1nspace_1_1hash_3_01in__addr_01_4.html | 14 +- ..._1_1nspace_1_1hash_3_01string_01_4-members.html | 2 +- ...ctnspace_1_1nspace_1_1hash_3_01string_01_4.html | 18 +- docs/module-doc/users_8cpp-source.html | 282 ++-- docs/module-doc/users_8cpp.html | 28 +- docs/module-doc/users_8h-source.html | 2 +- docs/module-doc/users_8h.html | 2 +- docs/module-doc/xline_8h-source.html | 2 +- docs/module-doc/xline_8h.html | 2 +- 122 files changed, 3300 insertions(+), 2881 deletions(-) (limited to 'docs/module-doc') diff --git a/docs/module-doc/annotated.html b/docs/module-doc/annotated.html index 4cd59f25a..1438f3cb2 100644 --- a/docs/module-doc/annotated.html +++ b/docs/module-doc/annotated.html @@ -44,7 +44,7 @@ XLineXLine is the base class for ban lines such as G lines and K lines ZLineZLine class -
Generated on Mon Apr 4 18:12:50 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:23 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/base_8h-source.html b/docs/module-doc/base_8h-source.html index 48cb44eb5..af71f42fa 100644 --- a/docs/module-doc/base_8h-source.html +++ b/docs/module-doc/base_8h-source.html @@ -55,7 +55,7 @@ 00079 00080 #endif 00081 -
Generated on Mon Apr 4 18:12:47 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:20 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/base_8h.html b/docs/module-doc/base_8h.html index b59c1eabb..b063e805d 100644 --- a/docs/module-doc/base_8h.html +++ b/docs/module-doc/base_8h.html @@ -49,7 +49,7 @@ Definition at line 25 of file base.h. -
Generated on Mon Apr 4 18:12:48 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:21 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/channels_8cpp-source.html b/docs/module-doc/channels_8cpp-source.html index cf89697dc..d95edbda6 100644 --- a/docs/module-doc/channels_8cpp-source.html +++ b/docs/module-doc/channels_8cpp-source.html @@ -111,99 +111,100 @@ 00104 00105 extern FILE *log_file; 00106 -00107 -00108 using namespace std; -00109 -00110 std::vector<ModeParameter> custom_mode_params; -00111 -00112 chanrec::chanrec() -00113 { -00114 strcpy(name,""); -00115 strcpy(custom_modes,""); -00116 strcpy(topic,""); -00117 strcpy(setby,""); -00118 strcpy(key,""); -00119 created = topicset = limit = 0; -00120 topiclock = noexternal = inviteonly = moderated = secret = c_private = false; -00121 } -00122 -00123 void chanrec::SetCustomMode(char mode,bool mode_on) -00124 { -00125 if (mode_on) { -00126 char m[3]; -00127 m[0] = mode; -00128 m[1] = '\0'; -00129 if (!strchr(this->custom_modes,mode)) -00130 { -00131 strlcat(custom_modes,m,MAXMODES); -00132 } -00133 log(DEBUG,"Custom mode %c set",mode); -00134 } -00135 else { -00136 -00137 std::string a = this->custom_modes; -00138 int pos = a.find(mode); -00139 a.erase(pos,1); -00140 strncpy(this->custom_modes,a.c_str(),MAXMODES); -00141 -00142 log(DEBUG,"Custom mode %c removed: modelist='%s'",mode,this->custom_modes); -00143 this->SetCustomModeParam(mode,"",false); -00144 } -00145 } -00146 +00107 extern time_t TIME; +00108 +00109 using namespace std; +00110 +00111 std::vector<ModeParameter> custom_mode_params; +00112 +00113 chanrec::chanrec() +00114 { +00115 strcpy(name,""); +00116 strcpy(custom_modes,""); +00117 strcpy(topic,""); +00118 strcpy(setby,""); +00119 strcpy(key,""); +00120 created = topicset = limit = 0; +00121 topiclock = noexternal = inviteonly = moderated = secret = c_private = false; +00122 } +00123 +00124 void chanrec::SetCustomMode(char mode,bool mode_on) +00125 { +00126 if (mode_on) { +00127 char m[3]; +00128 m[0] = mode; +00129 m[1] = '\0'; +00130 if (!strchr(this->custom_modes,mode)) +00131 { +00132 strlcat(custom_modes,m,MAXMODES); +00133 } +00134 log(DEBUG,"Custom mode %c set",mode); +00135 } +00136 else { +00137 +00138 std::string a = this->custom_modes; +00139 int pos = a.find(mode); +00140 a.erase(pos,1); +00141 strncpy(this->custom_modes,a.c_str(),MAXMODES); +00142 +00143 log(DEBUG,"Custom mode %c removed: modelist='%s'",mode,this->custom_modes); +00144 this->SetCustomModeParam(mode,"",false); +00145 } +00146 } 00147 -00148 void chanrec::SetCustomModeParam(char mode,char* parameter,bool mode_on) -00149 { -00150 -00151 log(DEBUG,"SetCustomModeParam called"); -00152 ModeParameter M; -00153 M.mode = mode; -00154 strlcpy(M.channel,this->name,CHANMAX); -00155 strlcpy(M.parameter,parameter,MAXBUF); -00156 if (mode_on) -00157 { -00158 log(DEBUG,"Custom mode parameter %c %s added",mode,parameter); -00159 custom_mode_params.push_back(M); -00160 } -00161 else -00162 { -00163 if (custom_mode_params.size()) -00164 { -00165 for (vector<ModeParameter>::iterator i = custom_mode_params.begin(); i < custom_mode_params.end(); i++) -00166 { -00167 if ((i->mode == mode) && (!strcasecmp(this->name,i->channel))) -00168 { -00169 log(DEBUG,"Custom mode parameter %c %s removed",mode,parameter); -00170 custom_mode_params.erase(i); -00171 return; -00172 } -00173 } -00174 } -00175 log(DEBUG,"*** BUG *** Attempt to remove non-existent mode parameter!"); -00176 } -00177 } -00178 -00179 bool chanrec::IsCustomModeSet(char mode) -00180 { -00181 log(DEBUG,"Checking ISCustomModeSet: %c %s",mode,this->custom_modes); -00182 return (strchr(this->custom_modes,mode) != 0); -00183 } -00184 -00185 std::string chanrec::GetModeParameter(char mode) -00186 { -00187 if (custom_mode_params.size()) -00188 { -00189 for (vector<ModeParameter>::iterator i = custom_mode_params.begin(); i < custom_mode_params.end(); i++) -00190 { -00191 if ((i->mode == mode) && (!strcasecmp(this->name,i->channel))) -00192 { -00193 return std::string(i->parameter); -00194 } -00195 } -00196 } -00197 return std::string(""); -00198 } -
Generated on Mon Apr 4 18:12:47 2005 for InspIRCd by +00148 +00149 void chanrec::SetCustomModeParam(char mode,char* parameter,bool mode_on) +00150 { +00151 +00152 log(DEBUG,"SetCustomModeParam called"); +00153 ModeParameter M; +00154 M.mode = mode; +00155 strlcpy(M.channel,this->name,CHANMAX); +00156 strlcpy(M.parameter,parameter,MAXBUF); +00157 if (mode_on) +00158 { +00159 log(DEBUG,"Custom mode parameter %c %s added",mode,parameter); +00160 custom_mode_params.push_back(M); +00161 } +00162 else +00163 { +00164 if (custom_mode_params.size()) +00165 { +00166 for (vector<ModeParameter>::iterator i = custom_mode_params.begin(); i < custom_mode_params.end(); i++) +00167 { +00168 if ((i->mode == mode) && (!strcasecmp(this->name,i->channel))) +00169 { +00170 log(DEBUG,"Custom mode parameter %c %s removed",mode,parameter); +00171 custom_mode_params.erase(i); +00172 return; +00173 } +00174 } +00175 } +00176 log(DEBUG,"*** BUG *** Attempt to remove non-existent mode parameter!"); +00177 } +00178 } +00179 +00180 bool chanrec::IsCustomModeSet(char mode) +00181 { +00182 log(DEBUG,"Checking ISCustomModeSet: %c %s",mode,this->custom_modes); +00183 return (strchr(this->custom_modes,mode) != 0); +00184 } +00185 +00186 std::string chanrec::GetModeParameter(char mode) +00187 { +00188 if (custom_mode_params.size()) +00189 { +00190 for (vector<ModeParameter>::iterator i = custom_mode_params.begin(); i < custom_mode_params.end(); i++) +00191 { +00192 if ((i->mode == mode) && (!strcasecmp(this->name,i->channel))) +00193 { +00194 return std::string(i->parameter); +00195 } +00196 } +00197 } +00198 return std::string(""); +00199 } +
Generated on Thu Apr 7 20:14:20 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/channels_8cpp.html b/docs/module-doc/channels_8cpp.html index f83023011..2fac5b2e9 100644 --- a/docs/module-doc/channels_8cpp.html +++ b/docs/module-doc/channels_8cpp.html @@ -51,7 +51,7 @@ std::vector< Module * > modules -std::vector< ircd_module * > factory +std::vector< ircd_module * > factory int LogLevel @@ -119,7 +119,9 @@ FILE * log_file -std::vector< ModeParametercustom_mode_params +time_t TIME + +std::vector< ModeParametercustom_mode_params

Define Documentation

@@ -154,7 +156,7 @@ Definition at line 58 -
char AdminEmail[MAXBUF] + char AdminEmail[MAXBUF]
@@ -178,7 +180,7 @@ Definition at line 72 -
char AdminName[MAXBUF] + char AdminName[MAXBUF]
@@ -202,7 +204,7 @@ Definition at line 71 -
char AdminNick[MAXBUF] + char AdminNick[MAXBUF]
@@ -226,7 +228,7 @@ Definition at line 73 -
std::vector<long> auth_cookies + std::vector<long> auth_cookies
@@ -250,7 +252,7 @@ Definition at line 100 -
int boundPortCount + int boundPortCount
@@ -291,16 +293,16 @@ Definition at line 94

Definition at line 101 of file channels.cpp.

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

+

@@ -315,9 +317,9 @@ Referenced by userrec::HasPer

-Definition at line 110 of file channels.cpp. +Definition at line 111 of file channels.cpp.

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

-
std::vector<ModeParameter> custom_mode_params + std::vector<ModeParameter> custom_mode_params

@@ -326,7 +328,7 @@ Referenced by chanrec::Get -
int debugging + int debugging
@@ -350,7 +352,7 @@ Definition at line
82 -
int defaultRoute + int defaultRoute
@@ -374,7 +376,7 @@ Definition at line 98 -
int DieDelay + int DieDelay
@@ -398,7 +400,7 @@ Definition at line 85 -
char diepass[MAXBUF] + char diepass[MAXBUF]
@@ -422,7 +424,7 @@ Definition at line 74 -
char DieValue[MAXBUF] + char DieValue[MAXBUF]
@@ -446,7 +448,7 @@ Definition at line 80 -
std::vector<ircd_module*> factory + std::vector<ircd_module*> factory
@@ -470,7 +472,7 @@ Definition at line 65 -
std::vector<int> fd_reap + std::vector<int> fd_reap
@@ -494,7 +496,7 @@ Definition at line 91 -
char list[MAXBUF] + char list[MAXBUF]
@@ -518,7 +520,7 @@ Definition at line 78 -
FILE* log_file + FILE* log_file
@@ -542,7 +544,7 @@ Definition at line 105 -
int LogLevel + int LogLevel
@@ -566,7 +568,7 @@ Definition at line 67 -
int MaxWhoResults + int MaxWhoResults
@@ -590,7 +592,7 @@ Definition at line 88 -
serverrec* me[32] + serverrec* me[32]
@@ -629,7 +631,7 @@ Definition at line 103

-Definition at line 774 of file modules.cpp. +Definition at line 776 of file modules.cpp.

@@ -638,7 +640,7 @@ Definition at line 774 -
std::vector<std::string> module_names + std::vector<std::string> module_names
@@ -686,7 +688,7 @@ Definition at line 64 -
char motd[MAXBUF] + char motd[MAXBUF]
@@ -710,7 +712,7 @@ Definition at line 76 -
time_t nb_start + time_t nb_start
@@ -734,7 +736,7 @@ Definition at line 89 -
int NetBufferSize + int NetBufferSize
@@ -758,7 +760,7 @@ Definition at line 87 -
char Network[MAXBUF] + char Network[MAXBUF]
@@ -782,7 +784,7 @@ Definition at line 69 -
int portCount + int portCount
@@ -806,7 +808,7 @@ Definition at line 95 -
int ports[MAXSOCKS] + int ports[MAXSOCKS]
@@ -830,7 +832,7 @@ Definition at line 97 -
char PrefixQuit[MAXBUF] + char PrefixQuit[MAXBUF]
@@ -854,7 +856,7 @@ Definition at line 79 -
char restartpass[MAXBUF] + char restartpass[MAXBUF]
@@ -878,7 +880,7 @@ Definition at line 75 -
char rules[MAXBUF] + char rules[MAXBUF]
@@ -902,7 +904,7 @@ Definition at line 77 -
char ServerDesc[MAXBUF] + char ServerDesc[MAXBUF]
@@ -926,7 +928,7 @@ Definition at line 70 -
char ServerName[MAXBUF] + char ServerName[MAXBUF]
@@ -950,7 +952,7 @@ Definition at line 68 -
time_t startup_time + time_t startup_time
@@ -968,13 +970,39 @@ Definition at line 68 Definition at line 86 of file channels.cpp. +

+ + + + +
+ + +
time_t TIME +
+
+ + + + + +
+   + + +

+ +

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

+Referenced by serverrec::serverrec().

@@ -998,7 +1026,7 @@ Definition at line 96 @@ -1022,7 +1050,7 @@ Definition at line 84 @@ -1040,7 +1068,7 @@ Definition at line 84 Definition at line 83 of file channels.cpp.
-
int UDPportCount + int UDPportCount
-
int WHOWAS_MAX + int WHOWAS_MAX
-
int WHOWAS_STALE + int WHOWAS_STALE
-


Generated on Mon Apr 4 18:12:48 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:21 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/channels_8h-source.html b/docs/module-doc/channels_8h-source.html index 4f24f617b..66c796da2 100644 --- a/docs/module-doc/channels_8h-source.html +++ b/docs/module-doc/channels_8h-source.html @@ -139,7 +139,7 @@ 00218 00219 #endif 00220 -
Generated on Mon Apr 4 18:12:47 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:20 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/channels_8h.html b/docs/module-doc/channels_8h.html index 42434f60e..b168d6565 100644 --- a/docs/module-doc/channels_8h.html +++ b/docs/module-doc/channels_8h.html @@ -258,7 +258,7 @@ Holds a complete invite list. Definition at line 88 of file channels.h. -
Generated on Mon Apr 4 18:12:48 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:21 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classAdmin-members.html b/docs/module-doc/classAdmin-members.html index 82d9ab2bb..66fbe5327 100644 --- a/docs/module-doc/classAdmin-members.html +++ b/docs/module-doc/classAdmin-members.html @@ -13,7 +13,7 @@ NameAdmin NickAdmin ~classbase()classbase [inline] -
Generated on Mon Apr 4 18:12:50 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:23 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classAdmin.html b/docs/module-doc/classAdmin.html index 6fa6ccd7d..a86dcdd4d 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 114 of file modules.h.


Constructor & Destructor Documentation

+Definition at line 121 of file modules.h.

Constructor & Destructor Documentation

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

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

-

00302 : Name(name), Email(email), Nick(nick) { };
+
00304 : Name(name), Email(email), Nick(nick) { };
 
@@ -104,7 +104,7 @@ Definition at line 302

-Definition at line 117 of file modules.h. +Definition at line 124 of file modules.h.

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

-Definition at line 117 of file modules.h. +Definition at line 124 of file modules.h.

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

-Definition at line 117 of file modules.h. +Definition at line 124 of file modules.h.


The documentation for this class was generated from the following files: -
Generated on Mon Apr 4 18:12:50 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:23 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classBanItem-members.html b/docs/module-doc/classBanItem-members.html index 6e5a2d10b..855c7f10b 100644 --- a/docs/module-doc/classBanItem-members.html +++ b/docs/module-doc/classBanItem-members.html @@ -14,7 +14,7 @@ set_timeHostItem ~classbase()classbase [inline] ~HostItem()HostItem [inline, virtual] -
Generated on Mon Apr 4 18:12:50 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:23 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classBanItem.html b/docs/module-doc/classBanItem.html index 59ad4e0d0..772b1277b 100644 --- a/docs/module-doc/classBanItem.html +++ b/docs/module-doc/classBanItem.html @@ -22,7 +22,7 @@ A subclass of HostItem designed to h

Definition at line 45 of file channels.h.


The documentation for this class was generated from the following file: -
Generated on Mon Apr 4 18:12:50 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:23 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classConfigReader-members.html b/docs/module-doc/classConfigReader-members.html index fd9766ec8..525b690ae 100644 --- a/docs/module-doc/classConfigReader-members.html +++ b/docs/module-doc/classConfigReader-members.html @@ -24,7 +24,7 @@ Verify()ConfigReader ~classbase()classbase [inline] ~ConfigReader()ConfigReader -
Generated on Mon Apr 4 18:12:51 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:24 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classConfigReader.html b/docs/module-doc/classConfigReader.html index f5785a066..7ece1927f 100644 --- a/docs/module-doc/classConfigReader.html +++ b/docs/module-doc/classConfigReader.html @@ -67,7 +67,7 @@ It may either be instantiated with one parameter or none. Constructing the class

-Definition at line 675 of file modules.h.


Constructor & Destructor Documentation

+Definition at line 685 of file modules.h.

Constructor & Destructor Documentation

@@ -97,17 +97,17 @@ Default constructor.

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

-Definition at line 577 of file modules.cpp. +Definition at line 579 of file modules.cpp.

-References cache, CONF_FILE_NOT_FOUND, error, errorlog, and readerror. +References cache, CONF_FILE_NOT_FOUND, error, errorlog, and readerror.

-

00578 {
-00579         this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out);
-00580         this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out);
-00581         this->readerror = LoadConf(CONFIG_FILE,this->cache,this->errorlog);
-00582         if (!this->readerror)
-00583                 this->error = CONF_FILE_NOT_FOUND;
-00584 }
+
00580 {
+00581         this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out);
+00582         this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out);
+00583         this->readerror = LoadConf(CONFIG_FILE,this->cache,this->errorlog);
+00584         if (!this->readerror)
+00585                 this->error = CONF_FILE_NOT_FOUND;
+00586 }
 
@@ -141,17 +141,17 @@ Overloaded constructor.

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

-Definition at line 596 of file modules.cpp. +Definition at line 598 of file modules.cpp.

-References cache, CONF_FILE_NOT_FOUND, error, errorlog, and readerror. +References cache, CONF_FILE_NOT_FOUND, error, errorlog, and readerror.

-

00597 {
-00598         this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out);
-00599         this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out);
-00600         this->readerror = LoadConf(filename.c_str(),this->cache,this->errorlog);
-00601         if (!this->readerror)
-00602                 this->error = CONF_FILE_NOT_FOUND;
-00603 };
+
00599 {
+00600         this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out);
+00601         this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out);
+00602         this->readerror = LoadConf(filename.c_str(),this->cache,this->errorlog);
+00603         if (!this->readerror)
+00604                 this->error = CONF_FILE_NOT_FOUND;
+00605 };
 
@@ -184,16 +184,16 @@ Default destructor.

This method destroys the ConfigReader class.

-Definition at line 587 of file modules.cpp. +Definition at line 589 of file modules.cpp.

-References cache, and errorlog. +References cache, and errorlog.

-

00588 {
-00589         if (this->cache)
-00590                 delete this->cache;
-00591         if (this->errorlog)
-00592                 delete this->errorlog;
-00593 }
+
00590 {
+00591         if (this->cache)
+00592                 delete this->cache;
+00593         if (this->errorlog)
+00594                 delete this->errorlog;
+00595 }
 
@@ -237,40 +237,40 @@ Dumps the list of errors in a config file to an output location.

If bail is true, then the program will abort. If bail is false and user points to a valid user record, the error report will be spooled to the given user by means of NOTICE. if bool is false AND user is false, the error report will be spooled to all opers by means of a NOTICE to all opers.

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

-References errorlog, connection::fd, and userrec::nick. -

-

00675 {
-00676         if (bail)
-00677         {
-00678                 printf("There were errors in your configuration:\n%s",errorlog->str().c_str());
-00679                 exit(0);
-00680         }
-00681         else
-00682         {
-00683                 char dataline[1024];
-00684                 if (user)
-00685                 {
-00686                         WriteServ(user->fd,"NOTICE %s :There were errors in the configuration file:",user->nick);
-00687                         while (!errorlog->eof())
-00688                         {
-00689                                 errorlog->getline(dataline,1024);
-00690                                 WriteServ(user->fd,"NOTICE %s :%s",user->nick,dataline);
-00691                         }
-00692                 }
-00693                 else
-00694                 {
-00695                         WriteOpers("There were errors in the configuration file:",user->nick);
-00696                         while (!errorlog->eof())
-00697                         {
-00698                                 errorlog->getline(dataline,1024);
-00699                                 WriteOpers(dataline);
-00700                         }
-00701                 }
-00702                 return;
-00703         }
-00704 }
+Definition at line 676 of file modules.cpp.
+

+References errorlog, connection::fd, and userrec::nick. +

+

00677 {
+00678         if (bail)
+00679         {
+00680                 printf("There were errors in your configuration:\n%s",errorlog->str().c_str());
+00681                 exit(0);
+00682         }
+00683         else
+00684         {
+00685                 char dataline[1024];
+00686                 if (user)
+00687                 {
+00688                         WriteServ(user->fd,"NOTICE %s :There were errors in the configuration file:",user->nick);
+00689                         while (!errorlog->eof())
+00690                         {
+00691                                 errorlog->getline(dataline,1024);
+00692                                 WriteServ(user->fd,"NOTICE %s :%s",user->nick,dataline);
+00693                         }
+00694                 }
+00695                 else
+00696                 {
+00697                         WriteOpers("There were errors in the configuration file:",user->nick);
+00698                         while (!errorlog->eof())
+00699                         {
+00700                                 errorlog->getline(dataline,1024);
+00701                                 WriteOpers(dataline);
+00702                         }
+00703                 }
+00704                 return;
+00705         }
+00706 }
 
@@ -304,13 +304,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 707 of file modules.cpp. +Definition at line 709 of file modules.cpp.

-References cache. +References cache.

-

00708 {
-00709         return EnumConf(cache,tag.c_str());
-00710 }
+
00710 {
+00711         return EnumConf(cache,tag.c_str());
+00712 }
 
@@ -353,13 +353,13 @@ Returns the number of items within a tag.

For example if the tag was <test tag="blah" data="foo"> then this function would return 2. Spaces and newlines both qualify as valid seperators between values.

-Definition at line 712 of file modules.cpp. +Definition at line 714 of file modules.cpp.

-References cache. +References cache.

-

00713 {
-00714         return EnumValues(cache, tag.c_str(), index);
-00715 }
+
00715 {
+00716         return EnumValues(cache, tag.c_str(), index);
+00717 }
 
@@ -392,15 +392,15 @@ Returns the last error to occur.

Valid errors can be found by looking in modules.h. Any nonzero value indicates an error condition. A call to GetError() resets the error flag back to 0.

-Definition at line 667 of file modules.cpp. +Definition at line 669 of file modules.cpp.

-References error. +References error.

-

00668 {
-00669         long olderr = this->error;
-00670         this->error = 0;
-00671         return olderr;
-00672 }
+
00670 {
+00671         long olderr = this->error;
+00672         this->error = 0;
+00673         return olderr;
+00674 }
 
@@ -449,25 +449,25 @@ Retrieves a boolean value from the config file.

This method retrieves a boolean value from the config file. Where multiple copies of the tag exist in the config file, index indicates which of the values to retrieve. The values "1", "yes" and "true" in the config file count as true to ReadFlag, and any other value counts as false.

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

-References cache, CONF_VALUE_NOT_FOUND, and error. -

-

00622 {
-00623         char val[MAXBUF];
-00624         char t[MAXBUF];
-00625         char n[MAXBUF];
-00626         strlcpy(t,tag.c_str(),MAXBUF);
-00627         strlcpy(n,name.c_str(),MAXBUF);
-00628         int res = ReadConf(cache,t,n,index,val);
-00629         if (!res)
-00630         {
-00631                 this->error = CONF_VALUE_NOT_FOUND;
-00632                 return false;
-00633         }
-00634         std::string s = val;
-00635         return ((s == "yes") || (s == "YES") || (s == "true") || (s == "TRUE") || (s == "1"));
-00636 }
+Definition at line 623 of file modules.cpp.
+

+References cache, CONF_VALUE_NOT_FOUND, and error. +

+

00624 {
+00625         char val[MAXBUF];
+00626         char t[MAXBUF];
+00627         char n[MAXBUF];
+00628         strlcpy(t,tag.c_str(),MAXBUF);
+00629         strlcpy(n,name.c_str(),MAXBUF);
+00630         int res = ReadConf(cache,t,n,index,val);
+00631         if (!res)
+00632         {
+00633                 this->error = CONF_VALUE_NOT_FOUND;
+00634                 return false;
+00635         }
+00636         std::string s = val;
+00637         return ((s == "yes") || (s == "YES") || (s == "true") || (s == "TRUE") || (s == "1"));
+00638 }
 
@@ -522,37 +522,37 @@ Retrieves an integer value from the config file.

This method retrieves an integer value from the config file. Where multiple copies of the tag exist in the config file, index indicates which of the values to retrieve. Any invalid integer values in the tag will cause the objects error value to be set, and any call to GetError() will return CONF_INVALID_NUMBER to be returned. needs_unsigned is set if the number must be unsigned. If a signed number is placed into a tag which is specified unsigned, 0 will be returned and GetError() will return CONF_NOT_UNSIGNED

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

-References cache, CONF_NOT_A_NUMBER, CONF_NOT_UNSIGNED, CONF_VALUE_NOT_FOUND, and error. -

-

00639 {
-00640         char val[MAXBUF];
-00641         char t[MAXBUF];
-00642         char n[MAXBUF];
-00643         strlcpy(t,tag.c_str(),MAXBUF);
-00644         strlcpy(n,name.c_str(),MAXBUF);
-00645         int res = ReadConf(cache,t,n,index,val);
-00646         if (!res)
-00647         {
-00648                 this->error = CONF_VALUE_NOT_FOUND;
-00649                 return 0;
-00650         }
-00651         for (int i = 0; i < strlen(val); i++)
-00652         {
-00653                 if (!isdigit(val[i]))
-00654                 {
-00655                         this->error = CONF_NOT_A_NUMBER;
-00656                         return 0;
-00657                 }
-00658         }
-00659         if ((needs_unsigned) && (atoi(val)<0))
-00660         {
-00661                 this->error = CONF_NOT_UNSIGNED;
-00662                 return 0;
-00663         }
-00664         return atoi(val);
-00665 }
+Definition at line 640 of file modules.cpp.
+

+References cache, CONF_NOT_A_NUMBER, CONF_NOT_UNSIGNED, CONF_VALUE_NOT_FOUND, and error. +

+

00641 {
+00642         char val[MAXBUF];
+00643         char t[MAXBUF];
+00644         char n[MAXBUF];
+00645         strlcpy(t,tag.c_str(),MAXBUF);
+00646         strlcpy(n,name.c_str(),MAXBUF);
+00647         int res = ReadConf(cache,t,n,index,val);
+00648         if (!res)
+00649         {
+00650                 this->error = CONF_VALUE_NOT_FOUND;
+00651                 return 0;
+00652         }
+00653         for (int i = 0; i < strlen(val); i++)
+00654         {
+00655                 if (!isdigit(val[i]))
+00656                 {
+00657                         this->error = CONF_NOT_A_NUMBER;
+00658                         return 0;
+00659                 }
+00660         }
+00661         if ((needs_unsigned) && (atoi(val)<0))
+00662         {
+00663                 this->error = CONF_NOT_UNSIGNED;
+00664                 return 0;
+00665         }
+00666         return atoi(val);
+00667 }
 
@@ -601,24 +601,24 @@ 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 605 of file modules.cpp. -

-References cache, CONF_VALUE_NOT_FOUND, and error. -

-

00606 {
-00607         char val[MAXBUF];
-00608         char t[MAXBUF];
-00609         char n[MAXBUF];
-00610         strlcpy(t,tag.c_str(),MAXBUF);
-00611         strlcpy(n,name.c_str(),MAXBUF);
-00612         int res = ReadConf(cache,t,n,index,val);
-00613         if (!res)
-00614         {
-00615                 this->error = CONF_VALUE_NOT_FOUND;
-00616                 return "";
-00617         }
-00618         return std::string(val);
-00619 }
+Definition at line 607 of file modules.cpp.
+

+References cache, CONF_VALUE_NOT_FOUND, and error. +

+

00608 {
+00609         char val[MAXBUF];
+00610         char t[MAXBUF];
+00611         char n[MAXBUF];
+00612         strlcpy(t,tag.c_str(),MAXBUF);
+00613         strlcpy(n,name.c_str(),MAXBUF);
+00614         int res = ReadConf(cache,t,n,index,val);
+00615         if (!res)
+00616         {
+00617                 this->error = CONF_VALUE_NOT_FOUND;
+00618                 return "";
+00619         }
+00620         return std::string(val);
+00621 }
 
@@ -651,13 +651,13 @@ Returns true if a config file is valid.

This method is partially implemented and will only return false if the config file does not exist or could not be opened.

-Definition at line 717 of file modules.cpp. +Definition at line 719 of file modules.cpp.

-References readerror. +References readerror.

-

00718 {
-00719         return this->readerror;
-00720 }
+
00720 {
+00721         return this->readerror;
+00722 }
 
@@ -685,9 +685,9 @@ The contents of the configuration file This protected member should never be acc

It will contain a pointer to the configuration file data with unneeded data (such as comments) stripped from it.

-Definition at line 683 of file modules.h. +Definition at line 693 of file modules.h.

-Referenced by ConfigReader(), Enumerate(), EnumerateValues(), ReadFlag(), ReadInteger(), ReadValue(), and ~ConfigReader(). +Referenced by ConfigReader(), Enumerate(), EnumerateValues(), ReadFlag(), ReadInteger(), ReadValue(), and ~ConfigReader().

@@ -711,9 +711,9 @@ Referenced by ConfigReader(

-Definition at line 688 of file modules.h. +Definition at line 698 of file modules.h.

-Referenced by ConfigReader(), GetError(), ReadFlag(), ReadInteger(), and ReadValue(). +Referenced by ConfigReader(), GetError(), ReadFlag(), ReadInteger(), and ReadValue().

@@ -737,9 +737,9 @@ Referenced by ConfigReader(

-Definition at line 684 of file modules.h. +Definition at line 694 of file modules.h.

-Referenced by ConfigReader(), DumpErrors(), and ~ConfigReader(). +Referenced by ConfigReader(), DumpErrors(), and ~ConfigReader().

@@ -765,14 +765,14 @@ Used to store errors.

-Definition at line 687 of file modules.h. +Definition at line 697 of file modules.h.

-Referenced by ConfigReader(), and Verify(). +Referenced by ConfigReader(), and Verify().


The documentation for this class was generated from the following files: -
Generated on Mon Apr 4 18:12:51 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:24 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classConnectClass-members.html b/docs/module-doc/classConnectClass-members.html index 2bc578f18..cc3585988 100644 --- a/docs/module-doc/classConnectClass-members.html +++ b/docs/module-doc/classConnectClass-members.html @@ -15,7 +15,7 @@ registration_timeoutConnectClass typeConnectClass ~classbase()classbase [inline] -
Generated on Mon Apr 4 18:12:51 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:24 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classConnectClass.html b/docs/module-doc/classConnectClass.html index f0cb52875..67b9187fe 100644 --- a/docs/module-doc/classConnectClass.html +++ b/docs/module-doc/classConnectClass.html @@ -221,7 +221,7 @@ Definition at line 50 of fi
The documentation for this class was generated from the following file: -
Generated on Mon Apr 4 18:12:51 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:24 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classDNS-members.html b/docs/module-doc/classDNS-members.html index 0cffc538a..87a31deb7 100644 --- a/docs/module-doc/classDNS-members.html +++ b/docs/module-doc/classDNS-members.html @@ -33,7 +33,7 @@ ReverseLookup(std::string ip)DNS tDNS [private] ~DNS()DNS -
Generated on Mon Apr 4 18:12:51 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:24 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classDNS.html b/docs/module-doc/classDNS.html index 13e92c334..4ae31e5bf 100644 --- a/docs/module-doc/classDNS.html +++ b/docs/module-doc/classDNS.html @@ -885,7 +885,7 @@ Definition at line 40 of file
The documentation for this class was generated from the following file: -
Generated on Mon Apr 4 18:12:51 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:24 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classELine-members.html b/docs/module-doc/classELine-members.html index 61d32e586..1fc38092c 100644 --- a/docs/module-doc/classELine-members.html +++ b/docs/module-doc/classELine-members.html @@ -15,7 +15,7 @@ set_timeXLine sourceXLine ~classbase()classbase [inline] -
Generated on Mon Apr 4 18:12:51 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:24 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classELine.html b/docs/module-doc/classELine.html index 115ba2bc8..155546871 100644 --- a/docs/module-doc/classELine.html +++ b/docs/module-doc/classELine.html @@ -45,7 +45,7 @@ Definition at line 88 of fi
The documentation for this class was generated from the following file: -
Generated on Mon Apr 4 18:12:51 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:24 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classExemptItem-members.html b/docs/module-doc/classExemptItem-members.html index 4724c1315..f8347d9ea 100644 --- a/docs/module-doc/classExemptItem-members.html +++ b/docs/module-doc/classExemptItem-members.html @@ -14,7 +14,7 @@ set_timeHostItem ~classbase()classbase [inline] ~HostItem()HostItem [inline, virtual] -
Generated on Mon Apr 4 18:12:51 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:24 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classExemptItem.html b/docs/module-doc/classExemptItem.html index f1a540a50..d1860b10d 100644 --- a/docs/module-doc/classExemptItem.html +++ b/docs/module-doc/classExemptItem.html @@ -22,7 +22,7 @@ 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: -
Generated on Mon Apr 4 18:12:51 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:24 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classExtMode-members.html b/docs/module-doc/classExtMode-members.html index de190c242..4ada07153 100644 --- a/docs/module-doc/classExtMode-members.html +++ b/docs/module-doc/classExtMode-members.html @@ -16,7 +16,7 @@ params_when_onExtMode typeExtMode ~classbase()classbase [inline] -
Generated on Mon Apr 4 18:12:51 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:24 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classExtMode.html b/docs/module-doc/classExtMode.html index b10a04490..f89b5e606 100644 --- a/docs/module-doc/classExtMode.html +++ b/docs/module-doc/classExtMode.html @@ -82,11 +82,11 @@

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

-References modechar, needsoper, params_when_off, params_when_on, and type. +References modechar, needsoper, params_when_off, params_when_on, and type.

-

00197 : modechar(mc), type(ty), needsoper(oper), params_when_on(p_on), params_when_off(p_off) { };
+
00199 : modechar(mc), type(ty), needsoper(oper), params_when_on(p_on), params_when_off(p_off) { };
 
@@ -112,7 +112,7 @@ References modechar,

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

@@ -136,9 +136,9 @@ Definition at line 196

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

-Referenced by ExtMode(). +Referenced by ExtMode().

@@ -162,9 +162,9 @@ Referenced by ExtMode()

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

-Referenced by ExtMode(). +Referenced by ExtMode().

@@ -188,9 +188,9 @@ Referenced by ExtMode()

-Definition at line 194 of file modules.cpp. +Definition at line 196 of file modules.cpp.

-Referenced by ExtMode(). +Referenced by ExtMode().

@@ -214,9 +214,9 @@ Referenced by ExtMode()

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

-Referenced by ExtMode(). +Referenced by ExtMode().

@@ -240,14 +240,14 @@ Referenced by ExtMode()

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

-Referenced by ExtMode(). +Referenced by ExtMode().


The documentation for this class was generated from the following file: -
Generated on Mon Apr 4 18:12:51 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:24 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classExtensible-members.html b/docs/module-doc/classExtensible-members.html index 32368b3f8..adf9debc0 100644 --- a/docs/module-doc/classExtensible-members.html +++ b/docs/module-doc/classExtensible-members.html @@ -13,7 +13,7 @@ GetExt(std::string key)Extensible Shrink(std::string key)Extensible ~classbase()classbase [inline] -
Generated on Mon Apr 4 18:12:51 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:24 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classExtensible.html b/docs/module-doc/classExtensible.html index 60c2132c3..15857b812 100644 --- a/docs/module-doc/classExtensible.html +++ b/docs/module-doc/classExtensible.html @@ -170,7 +170,7 @@ Definition at line 54 of fil
The documentation for this class was generated from the following file: -
Generated on Mon Apr 4 18:12:51 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:24 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classFileReader-members.html b/docs/module-doc/classFileReader-members.html index 7e2ada15e..42da61751 100644 --- a/docs/module-doc/classFileReader-members.html +++ b/docs/module-doc/classFileReader-members.html @@ -17,7 +17,7 @@ LoadFile(std::string filename)FileReader ~classbase()classbase [inline] ~FileReader()FileReader -
Generated on Mon Apr 4 18:12:52 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:24 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classFileReader.html b/docs/module-doc/classFileReader.html index 3055133a9..486a4d4ab 100644 --- a/docs/module-doc/classFileReader.html +++ b/docs/module-doc/classFileReader.html @@ -37,7 +37,7 @@ Inherits classbase.  Returns the size of the file in lines.


Private Attributes

-file_cache fc +file_cache fc

Detailed Description

@@ -47,7 +47,7 @@ This class contains methods for read-only manipulation of a text file in memory.

-Definition at line 764 of file modules.h.


Constructor & Destructor Documentation

+Definition at line 774 of file modules.h.

Constructor & Destructor Documentation

@@ -77,10 +77,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 730 of file modules.cpp. +Definition at line 732 of file modules.cpp.

-

00731 {
-00732 }
+
00733 {
+00734 }
 
@@ -114,15 +114,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 723 of file modules.cpp. +Definition at line 725 of file modules.cpp.

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

-

00724 {
-00725         file_cache c;
-00726         readfile(c,filename.c_str());
-00727         this->fc = c;
-00728 }
+
00726 {
+00727         file_cache c;
+00728         readfile(c,filename.c_str());
+00729         this->fc = c;
+00730 }
 
@@ -155,10 +155,10 @@ Default destructor.

This deletes the memory allocated to the file.

-Definition at line 742 of file modules.cpp. +Definition at line 744 of file modules.cpp.

-

00743 {
-00744 }
+
00745 {
+00746 }
 
@@ -192,20 +192,20 @@ Returns true if the file exists This function will return false if the file coul

-Definition at line 746 of file modules.cpp. +Definition at line 748 of file modules.cpp.

-References fc. +References fc.

-

00747 {
-00748         if (fc.size() == 0)
-00749         {
-00750                 return(false);
-00751         }
-00752         else
-00753         {
-00754                 return(true);
-00755         }
-00756 }
+
00749 {
+00750         if (fc.size() == 0)
+00751         {
+00752                 return(false);
+00753         }
+00754         else
+00755         {
+00756                 return(true);
+00757         }
+00758 }
 
@@ -238,13 +238,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 765 of file modules.cpp. +Definition at line 767 of file modules.cpp.

-References fc. +References fc.

-

00766 {
-00767         return fc.size();
-00768 }
+
00768 {
+00769         return fc.size();
+00770 }
 
@@ -278,15 +278,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 758 of file modules.cpp. +Definition at line 760 of file modules.cpp.

-References fc. +References fc.

-

00759 {
-00760         if ((x<0) || (x>fc.size()))
-00761                 return "";
-00762         return fc[x];
-00763 }
+
00761 {
+00762         if ((x<0) || (x>fc.size()))
+00763                 return "";
+00764         return fc[x];
+00765 }
 
@@ -320,15 +320,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 734 of file modules.cpp. +Definition at line 736 of file modules.cpp.

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

-

00735 {
-00736         file_cache c;
-00737         readfile(c,filename.c_str());
-00738         this->fc = c;
-00739 }
+
00737 {
+00738         file_cache c;
+00739         readfile(c,filename.c_str());
+00740         this->fc = c;
+00741 }
 
@@ -339,7 +339,7 @@ References fc, and -
file_cache FileReader::fc [private] + file_cache FileReader::fc [private]
@@ -354,14 +354,14 @@ References
fc, and

-Definition at line 766 of file modules.h. +Definition at line 776 of file modules.h.

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


The documentation for this class was generated from the following files: -
Generated on Mon Apr 4 18:12:52 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:24 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classGLine-members.html b/docs/module-doc/classGLine-members.html index 447761d46..bc630fbca 100644 --- a/docs/module-doc/classGLine-members.html +++ b/docs/module-doc/classGLine-members.html @@ -15,7 +15,7 @@ set_timeXLine sourceXLine ~classbase()classbase [inline] -
Generated on Mon Apr 4 18:12:52 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:24 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classGLine.html b/docs/module-doc/classGLine.html index c7c328e9c..ad6d0ac46 100644 --- a/docs/module-doc/classGLine.html +++ b/docs/module-doc/classGLine.html @@ -53,7 +53,7 @@ Definition at line 79 of fi
The documentation for this class was generated from the following file: -
Generated on Mon Apr 4 18:12:52 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:24 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classHostItem-members.html b/docs/module-doc/classHostItem-members.html index 776db944b..119eeacf6 100644 --- a/docs/module-doc/classHostItem-members.html +++ b/docs/module-doc/classHostItem-members.html @@ -14,7 +14,7 @@ set_timeHostItem ~classbase()classbase [inline] ~HostItem()HostItem [inline, virtual] -
Generated on Mon Apr 4 18:12:52 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:25 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classHostItem.html b/docs/module-doc/classHostItem.html index b5d48a2db..a0698360b 100644 --- a/docs/module-doc/classHostItem.html +++ b/docs/module-doc/classHostItem.html @@ -178,7 +178,7 @@ Definition at line 32 of
The documentation for this class was generated from the following file: -
Generated on Mon Apr 4 18:12:52 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:25 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classInviteItem-members.html b/docs/module-doc/classInviteItem-members.html index 252e99679..7275e3124 100644 --- a/docs/module-doc/classInviteItem-members.html +++ b/docs/module-doc/classInviteItem-members.html @@ -14,7 +14,7 @@ set_timeHostItem ~classbase()classbase [inline] ~HostItem()HostItem [inline, virtual] -
Generated on Mon Apr 4 18:12:52 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:25 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classInviteItem.html b/docs/module-doc/classInviteItem.html index 2ebef6183..8ca096712 100644 --- a/docs/module-doc/classInviteItem.html +++ b/docs/module-doc/classInviteItem.html @@ -22,7 +22,7 @@ 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: -
Generated on Mon Apr 4 18:12:52 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:25 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classInvited-members.html b/docs/module-doc/classInvited-members.html index 6dbff63da..a6f7712f8 100644 --- a/docs/module-doc/classInvited-members.html +++ b/docs/module-doc/classInvited-members.html @@ -10,7 +10,7 @@ channelInvited classbase()classbase [inline] ~classbase()classbase [inline] -
Generated on Mon Apr 4 18:12:52 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:25 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classInvited.html b/docs/module-doc/classInvited.html index c90c28b66..06d1b61a6 100644 --- a/docs/module-doc/classInvited.html +++ b/docs/module-doc/classInvited.html @@ -47,12 +47,12 @@ Definition at line 36 of fi

Definition at line 39 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 Apr 4 18:12:52 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:25 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classKLine-members.html b/docs/module-doc/classKLine-members.html index 8ff604d55..0810cb873 100644 --- a/docs/module-doc/classKLine-members.html +++ b/docs/module-doc/classKLine-members.html @@ -15,7 +15,7 @@ set_timeXLine sourceXLine ~classbase()classbase [inline] -
Generated on Mon Apr 4 18:12:52 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:25 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classKLine.html b/docs/module-doc/classKLine.html index 89989fb0e..93f667d2a 100644 --- a/docs/module-doc/classKLine.html +++ b/docs/module-doc/classKLine.html @@ -53,7 +53,7 @@ Definition at line 68 of fi
The documentation for this class was generated from the following file: -
Generated on Mon Apr 4 18:12:52 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:25 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classModeParameter-members.html b/docs/module-doc/classModeParameter-members.html index 819e4cf6b..ecbde9365 100644 --- a/docs/module-doc/classModeParameter-members.html +++ b/docs/module-doc/classModeParameter-members.html @@ -12,7 +12,7 @@ modeModeParameter parameterModeParameter ~classbase()classbase [inline] -
Generated on Mon Apr 4 18:12:52 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:25 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classModeParameter.html b/docs/module-doc/classModeParameter.html index 0cc47c796..079eab0cd 100644 --- a/docs/module-doc/classModeParameter.html +++ b/docs/module-doc/classModeParameter.html @@ -53,7 +53,7 @@ Definition at line 70 of

Definition at line 75 of file channels.h.

-Referenced by chanrec::SetCustomModeParam(). +Referenced by chanrec::SetCustomModeParam().

@@ -79,7 +79,7 @@ Referenced by chanrec::Set

Definition at line 73 of file channels.h.

-Referenced by chanrec::SetCustomModeParam(). +Referenced by chanrec::SetCustomModeParam().

@@ -105,12 +105,12 @@ Referenced by chanrec::Set

Definition at line 74 of file channels.h.

-Referenced by chanrec::SetCustomModeParam(). +Referenced by chanrec::SetCustomModeParam().


The documentation for this class was generated from the following file: -
Generated on Mon Apr 4 18:12:52 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:25 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classModule-members.html b/docs/module-doc/classModule-members.html index 2f3a78996..ed580f75a 100644 --- a/docs/module-doc/classModule-members.html +++ b/docs/module-doc/classModule-members.html @@ -36,7 +36,7 @@ OnWhois(userrec *source, userrec *dest)Module [virtual] ~classbase()classbase [inline] ~Module()Module [virtual] -
Generated on Mon Apr 4 18:12:53 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:25 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classModule.html b/docs/module-doc/classModule.html index 527a07eb2..1d3fc1699 100644 --- a/docs/module-doc/classModule.html +++ b/docs/module-doc/classModule.html @@ -48,7 +48,7 @@ Inherits classbase. virtual void OnServerRaw (std::string &raw, bool inbound, userrec *user)  Called when a raw command is transmitted or received.

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


virtual int OnUserPreJoin (userrec *user, chanrec *chan, const char *cname) @@ -81,10 +81,10 @@ Inherits classbase. virtual int OnAccessCheck (userrec *source, userrec *dest, chanrec *channel, int access_type)  Called before an action which requires a channel privilage check.


-virtual string_list OnUserSync (userrec *user) +virtual string_list OnUserSync (userrec *user)  Called during a netburst to sync user data.


-virtual string_list OnChannelSync (chanrec *chan) +virtual string_list OnChannelSync (chanrec *chan)  Called during a netburst to sync channel data.


virtual void On005Numeric (std::string &output) @@ -104,7 +104,7 @@ All modules must inherit from this class, its methods will be called when irc se

-Definition at line 126 of file modules.h.


Constructor & Destructor Documentation

+Definition at line 133 of file modules.h.

Constructor & Destructor Documentation

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

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

-

00304 { }
+
00306 { }
 
@@ -169,9 +169,9 @@ Default destructor destroys a module class.

-Definition at line 305 of file modules.cpp. +Definition at line 307 of file modules.cpp.

-

00305 { }
+
00307 { }
 
@@ -205,9 +205,11 @@ 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 316 of file modules.cpp. +Definition at line 318 of file modules.cpp. +

+References VF_VENDOR.

-

00316 { return Version(1,0,0,0); }
+
00318 { return Version(1,0,0,0,VF_VENDOR); }
 
@@ -241,9 +243,9 @@ Called when a 005 numeric is about to be output.

The module should modify the 005 numeric if needed to indicate its features.

-Definition at line 328 of file modules.cpp. +Definition at line 330 of file modules.cpp.

-

00328 { };
+
00330 { };
 
@@ -310,11 +312,11 @@ This function is called before many functions which check a users status on a ch
Upon returning from your function you must return either ACR_DEFAULT, to indicate the module wishes to do nothing, or ACR_DENY where approprate to deny the action, and ACR_ALLOW where appropriate to allow the action. Please note that in the case of some access checks (such as AC_GENERAL_MODE) access may be denied 'upstream' causing other checks such as AC_DEOP to not be reached. Be very careful with use of the AC_GENERAL_MODE type, as it may inadvertently override the behaviour of other modules. When the access_type is AC_GENERAL_MODE, the destination of the mode will be NULL (as it has not yet been determined).

-Definition at line 325 of file modules.cpp. +Definition at line 327 of file modules.cpp.

References ACR_DEFAULT.

-

00325 { return ACR_DEFAULT; };
+
00327 { return ACR_DEFAULT; };
 
@@ -324,7 +326,7 @@ References ACR_DEFAULT. - + @@ -348,11 +350,11 @@ Called during a netburst to sync channel data.

This is called during the netburst on a per-channel basis. You should use this call to up any special channel-related things which are implemented by your module, e.g. sending listmodes. You may return multiple commands in the string_list.

-Definition at line 327 of file modules.cpp. +Definition at line 329 of file modules.cpp.

-References string_list. +References string_list.

-

00327 { string_list empty; return empty; }
+
00329 { string_list empty; return empty; }
 
string_list Module::OnChannelSync string_list Module::OnChannelSync chanrec chan
@@ -394,7 +396,7 @@ References string_list. - string_list &  + string_listparams @@ -419,9 +421,9 @@ Called whenever an extended mode is to be processed.

The type parameter is MT_SERVER, MT_CLIENT or MT_CHANNEL, dependent on where the mode is being changed. mode_on is set when the mode is being set, in which case params contains a list of parameters for the mode as strings. If mode_on is false, the mode is being removed, and parameters may contain the parameters for the mode, dependent on wether they were defined when a mode handler was set up with Server::AddExtendedMode If the mode is a channel mode, target is a chanrec*, and if it is a user mode, target is a userrec*. You must cast this value yourself to make use of it.

-Definition at line 315 of file modules.cpp. +Definition at line 317 of file modules.cpp.

-

00315 { return false; }
+
00317 { return false; }
 
@@ -456,9 +458,9 @@ Called whenever a user types /INFO. The userrec will contain the information of the user who typed the command. Modules may use this method to output their own credits in /INFO (which is the ircd's version of an about box). It is purposefully not possible to modify any info that has already been output, or halt the list. You must write a 371 numeric to the user, containing your info in the following format:

<nick> :information here

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

-

00318 { };
+
00320 { };
 
@@ -507,9 +509,9 @@ Called when a client is disconnected by KILL.

If a client is killed by a server, e.g. a nickname collision or protocol error, source is NULL. Return 1 from this function to prevent the kill, and 0 from this function to allow it as normal. If you prevent the kill no output will be sent to the client, it is down to your module to generate this information. NOTE: It is NOT advisable to stop kills which originate from servers. If you do so youre risking race conditions, desyncs and worse!

-Definition at line 329 of file modules.cpp. +Definition at line 331 of file modules.cpp.

-

00329 { return 0; };
+
00331 { return 0; };
 
@@ -552,9 +554,9 @@ Called whenever a module is loaded.

mod will contain a pointer to the module, and string will contain its name, for example m_widgets.so. This function is primary for dependency checking, your module may decide to enable some extra features if it sees that you have for example loaded "m_killwidgets.so" with "m_makewidgets.so". It is highly recommended that modules do *NOT* bail if they cannot satisfy dependencies, but instead operate under reduced functionality, unless the dependency is absolutely neccessary (e.g. a module that extends the features of another module).

-Definition at line 330 of file modules.cpp. +Definition at line 332 of file modules.cpp.

-

00330 { };
+
00332 { };
 
@@ -588,9 +590,9 @@ Called whenever a user opers locally.

The userrec will contain the oper mode 'o' as this function is called after any modifications are made to the user's structure by the core.

-Definition at line 317 of file modules.cpp. +Definition at line 319 of file modules.cpp.

-

00317 { };
+
00319 { };
 
@@ -624,9 +626,9 @@ Called after a packet is received from another irc server.

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

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

-

00311 { }
+
00313 { }
 
@@ -660,9 +662,9 @@ Called before a packet is transmitted across the irc network between two irc ser

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

-Definition at line 310 of file modules.cpp. +Definition at line 312 of file modules.cpp.

-

00310 { }
+
00312 { }
 
@@ -695,9 +697,9 @@ Called on rehash.

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

-Definition at line 312 of file modules.cpp. +Definition at line 314 of file modules.cpp.

-

00312 { }
+
00314 { }
 
@@ -746,9 +748,9 @@ Called when a raw command is transmitted or received.

This method is the lowest level of handler available to a module. It will be called with raw data which is passing through a connected socket. If you wish, you may munge this data by changing the string parameter "raw". If you do this, after your function exits it will immediately be cut down to 510 characters plus a carriage return and linefeed. For INBOUND messages only (where inbound is set to true) the value of user will be the userrec of the connection sending the data. This is not possible for outbound data because the data may be being routed to multiple targets.

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

-

00313 { }
+
00315 { }
 
@@ -782,9 +784,9 @@ Called when a user connects.

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

-Definition at line 306 of file modules.cpp. +Definition at line 308 of file modules.cpp.

-

00306 { }
+
00308 { }
 
@@ -827,9 +829,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 308 of file modules.cpp. +Definition at line 310 of file modules.cpp.

-

00308 { }
+
00310 { }
 
@@ -872,9 +874,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 309 of file modules.cpp. +Definition at line 311 of file modules.cpp.

-

00309 { }
+
00311 { }
 
@@ -917,9 +919,9 @@ Called after any nickchange, local or remote.

This can be used to track users after nickchanges have been applied. Please note that although you can see remote nickchanges through this function, you should NOT make any changes to the userrec if the user is a remote user as this may cause a desnyc. check user->server before taking any action (including returning nonzero from the method). Because this method is called after the nickchange is taken place, no return values are possible to indicate forbidding of the nick change. Use OnUserPreNick for this.

-Definition at line 324 of file modules.cpp. +Definition at line 326 of file modules.cpp.

-

00324 { };
+
00326 { };
 
@@ -968,9 +970,9 @@ Called whenever a user is about to invite another user into a channel, before an

Returning 1 from this function stops the process immediately, causing no output to be sent to the user by the core. If you do this you must produce your own numerics, notices etc. This is useful for modules which may want to filter invites to channels.

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

-

00320 { return 0; };
+
00322 { return 0; };
 
@@ -1021,9 +1023,9 @@ Returning a value of 1 from this function stops the process immediately, causing IMPORTANT NOTE!

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

-Definition at line 314 of file modules.cpp. +Definition at line 316 of file modules.cpp.

-

00314 { return 0; }
+
00316 { return 0; }
 
@@ -1078,9 +1080,9 @@ Called whenever a user is about to PRIVMSG A user or a channel, before any proce

Returning any nonzero value from this function stops the process immediately, causing no output to be sent to the user by the core. If you do this you must produce your own numerics, notices etc. This is useful for modules which may want to filter or redirect messages. target_type can be one of TYPE_USER or TYPE_CHANNEL. If the target_type value is a user, you must cast dest to a userrec* otherwise you must cast it to a chanrec*, this is the details of where the message is destined to be sent.

-Definition at line 321 of file modules.cpp. +Definition at line 323 of file modules.cpp.

-

00321 { return 0; };
+
00323 { return 0; };
 
@@ -1123,9 +1125,9 @@ Called before any nickchange, local or remote.

This can be used to implement Q-lines etc. Please note that although you can see remote nickchanges through this function, you should NOT make any changes to the userrec if the user is a remote user as this may cause a desnyc. check user->server before taking any action (including returning nonzero from the method). If your method returns nonzero, the nickchange is silently forbidden, and it is down to your module to generate some meaninful output.

-Definition at line 323 of file modules.cpp. +Definition at line 325 of file modules.cpp.

-

00323 { return 0; };
+
00325 { return 0; };
 
@@ -1180,9 +1182,9 @@ Called whenever a user is about to NOTICE A user or a channel, before any proces

Returning any nonzero value from this function stops the process immediately, causing no output to be sent to the user by the core. If you do this you must produce your own numerics, notices etc. This is useful for modules which may want to filter or redirect messages. target_type can be one of TYPE_USER or TYPE_CHANNEL. If the target_type value is a user, you must cast dest to a userrec* otherwise you must cast it to a chanrec*, this is the details of where the message is destined to be sent. You may alter the message text as you wish before relinquishing control to the next module in the chain, and if no other modules block the text this altered form of the text will be sent out to the user and possibly to other servers.

-Definition at line 322 of file modules.cpp. +Definition at line 324 of file modules.cpp.

-

00322 { return 0; };
+
00324 { return 0; };
 
@@ -1216,9 +1218,9 @@ Called when a user quits.

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

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

-

00307 { }
+
00309 { }
 
@@ -1228,7 +1230,7 @@ Definition at line 307 - + @@ -1252,11 +1254,11 @@ Called during a netburst to sync user data.

This is called during the netburst on a per-user basis. You should use this call to up any special user-related things which are implemented by your module, e.g. sending listmodes. You may return multiple commands in the string_list.

-Definition at line 326 of file modules.cpp. +Definition at line 328 of file modules.cpp.

-References string_list. +References string_list.

-

00326 { string_list empty; return empty; }
+
00328 { string_list empty; return empty; }
 
string_list Module::OnUserSync string_list Module::OnUserSync userrec user
@@ -1299,15 +1301,15 @@ Called whenever a /WHOIS is performed on a local user.

The source parameter contains the details of the user who issued the WHOIS command, and the dest parameter contains the information of the user they are whoising.

-Definition at line 319 of file modules.cpp. +Definition at line 321 of file modules.cpp.

-

00319 { };
+
00321 { };
 

The documentation for this class was generated from the following files: -
Generated on Mon Apr 4 18:12:53 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:25 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classModuleFactory-members.html b/docs/module-doc/classModuleFactory-members.html index 7f64a72c2..d22e64210 100644 --- a/docs/module-doc/classModuleFactory-members.html +++ b/docs/module-doc/classModuleFactory-members.html @@ -12,7 +12,7 @@ ModuleFactory()ModuleFactory [inline] ~classbase()classbase [inline] ~ModuleFactory()ModuleFactory [inline, virtual] -
Generated on Mon Apr 4 18:12:53 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:25 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classModuleFactory.html b/docs/module-doc/classModuleFactory.html index 2146d55b5..f7abc4b3f 100644 --- a/docs/module-doc/classModuleFactory.html +++ b/docs/module-doc/classModuleFactory.html @@ -30,7 +30,7 @@ This is to allow for modules to create many different variants of

-Definition at line 819 of file modules.h.


Constructor & Destructor Documentation

+Definition at line 829 of file modules.h.

Constructor & Destructor Documentation

@@ -58,9 +58,9 @@ Definition at line 819 of

-Definition at line 822 of file modules.h. +Definition at line 832 of file modules.h.

-

00822 { }
+
00832 { }
 
@@ -91,9 +91,9 @@ Definition at line 822 of

-Definition at line 823 of file modules.h. +Definition at line 833 of file modules.h.

-

00823 { }
+
00833 { }
 
@@ -130,7 +130,7 @@ Your inherited class of ModuleFactory must return a pointer to your modules.h -
Generated on Mon Apr 4 18:12:53 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:25 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classQLine-members.html b/docs/module-doc/classQLine-members.html index 65fabcd6d..a9e407220 100644 --- a/docs/module-doc/classQLine-members.html +++ b/docs/module-doc/classQLine-members.html @@ -16,7 +16,7 @@ set_timeXLine sourceXLine ~classbase()classbase [inline] -
Generated on Mon Apr 4 18:12:53 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:25 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classQLine.html b/docs/module-doc/classQLine.html index dfe01a725..9a5de4ee5 100644 --- a/docs/module-doc/classQLine.html +++ b/docs/module-doc/classQLine.html @@ -82,7 +82,7 @@ Definition at line 114 of f
The documentation for this class was generated from the following file: -
Generated on Mon Apr 4 18:12:53 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:25 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classServer-members.html b/docs/module-doc/classServer-members.html index 75226da12..b96842b07 100644 --- a/docs/module-doc/classServer-members.html +++ b/docs/module-doc/classServer-members.html @@ -6,7 +6,7 @@

Server Member List

This is the complete list of members for Server, including all inherited members. - + @@ -45,7 +45,7 @@ -
AddCommand(char *cmd, handlerfunc f, char flags, int minparams)Server [virtual]
AddCommand(char *cmd, handlerfunc f, char flags, int minparams, char *source)Server [virtual]
AddExtendedListMode(char modechar)Server [virtual]
AddExtendedMode(char modechar, int type, bool requires_oper, int params_when_on, int params_when_off)Server [virtual]
ageclassbase
Server()Server
~classbase()classbase [inline]
~Server()Server [virtual]

Generated on Mon Apr 4 18:12:54 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:26 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classServer.html b/docs/module-doc/classServer.html index 23971e233..c126dc81a 100644 --- a/docs/module-doc/classServer.html +++ b/docs/module-doc/classServer.html @@ -84,7 +84,7 @@ Inherits classbase. virtual bool AddExtendedListMode (char modechar)  Adds an extended mode letter which is parsed by a module and handled in a list fashion.

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


virtual void SendMode (char **parameters, int pcnt, userrec *user) @@ -120,7 +120,7 @@ Inherits classbase. virtual bool IsUlined (std::string server)  Returns true if the servername you give is ulined.


-virtual chanuserlist GetUsers (chanrec *chan) +virtual chanuserlist GetUsers (chanrec *chan)  Fetches the userlist of a channel.


@@ -131,7 +131,7 @@ All modules should instantiate at least one copy of this class, and use its memb

-Definition at line 371 of file modules.h.


Constructor & Destructor Documentation

+Definition at line 378 of file modules.h.

Constructor & Destructor Documentation

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

Creates a Server object.

-Definition at line 337 of file modules.cpp. +Definition at line 339 of file modules.cpp.

-

00338 {
-00339 }
+
00340 {
+00341 }
 
@@ -197,10 +197,10 @@ Default destructor.

Destroys a Server object.

-Definition at line 341 of file modules.cpp. +Definition at line 343 of file modules.cpp.

-

00342 {
-00343 }
+
00344 {
+00345 }
 
@@ -232,7 +232,13 @@ Definition at line 341 int  - minparams + minparams, + + + + + char *  + source @@ -256,15 +262,15 @@ Adds a command to the command table.

This allows modules to add extra commands into the command table. You must place a function within your module which is is of type handlerfunc:

typedef void (handlerfunc) (char**, int, userrec*); ... void handle_kill(char **parameters, int pcnt, userrec *user)

-When the command is typed, the parameters will be placed into the parameters array (similar to argv) and the parameter count will be placed into pcnt (similar to argv). There will never be any less parameters than the 'minparams' value you specified when creating the command. The *user parameter is the class of the user which caused the command to trigger, who will always have the flag you specified in 'flags' when creating the initial command. For example to create an oper only command create the commands with flags='o'. +When the command is typed, the parameters will be placed into the parameters array (similar to argv) and the parameter count will be placed into pcnt (similar to argv). There will never be any less parameters than the 'minparams' value you specified when creating the command. The *user parameter is the class of the user which caused the command to trigger, who will always have the flag you specified in 'flags' when creating the initial command. For example to create an oper only command create the commands with flags='o'. The source parameter is used for resource tracking, and should contain the name of your module (with file extension) e.g. "m_blarp.so". If you place the wrong identifier here, you can cause crashes if your module is unloaded.

-Definition at line 418 of file modules.cpp. +Definition at line 420 of file modules.cpp.

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

-

00419 {
-00420         createcommand(cmd,f,flags,minparams);
-00421 }
+
00421 {
+00422         createcommand(cmd,f,flags,minparams,source);
+00423 }
 
@@ -303,16 +309,16 @@ This call is used to implement modes like +q and +a. The characteristics of thes (4) The mode and its parameter are NOT stored in the channels modes structure

It is down to the module handling the mode to maintain state and determine what 'items' (e.g. users, or a banlist) have the mode set on them, and process the modes at the correct times, e.g. during access checks on channels, etc. When the extended mode is triggered the OnExtendedMode method will be triggered as above. Note that the target you are given will be a channel, if for example your mode is set 'on a user' (in for example +a) you must use Server::Find to locate the user the mode is operating on. Your mode handler may return 1 to handle the mode AND tell the core to display the mode change, e.g. '+aaa one two three' in the case of the mode for 'two', or it may return -1 to 'eat' the mode change, so the above example would become '+aa one three' after processing.

-Definition at line 563 of file modules.cpp. +Definition at line 565 of file modules.cpp.

-References DoAddExtendedMode(), ModeMakeList(), and MT_CHANNEL. +References DoAddExtendedMode(), ModeMakeList(), and MT_CHANNEL.

-

00564 {
-00565         bool res = DoAddExtendedMode(modechar,MT_CHANNEL,false,1,1);
-00566         if (res)
-00567                 ModeMakeList(modechar);
-00568         return res;
-00569 }
+
00566 {
+00567         bool res = DoAddExtendedMode(modechar,MT_CHANNEL,false,1,1);
+00568         if (res)
+00569                 ModeMakeList(modechar);
+00570         return res;
+00571 }
 
@@ -373,28 +379,28 @@ Adds an extended mode letter which is parsed by a module.

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

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

-References DEBUG, DoAddExtendedMode(), MT_CLIENT, and MT_SERVER. -

-

00544 {
-00545         if (type == MT_SERVER)
-00546         {
-00547                 log(DEBUG,"*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion");
-00548                 return false;
-00549         }
-00550         if (((params_when_on>0) || (params_when_off>0)) && (type == MT_CLIENT))
-00551         {
-00552                 log(DEBUG,"*** API ERROR *** Parameters on MT_CLIENT modes are not supported");
-00553                 return false;
-00554         }
-00555         if ((params_when_on>1) || (params_when_off>1))
-00556         {
-00557                 log(DEBUG,"*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported");
-00558                 return false;
-00559         }
-00560         return DoAddExtendedMode(modechar,type,requires_oper,params_when_on,params_when_off);
-00561 }
+Definition at line 545 of file modules.cpp.
+

+References DEBUG, DoAddExtendedMode(), MT_CLIENT, and MT_SERVER. +

+

00546 {
+00547         if (type == MT_SERVER)
+00548         {
+00549                 log(DEBUG,"*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion");
+00550                 return false;
+00551         }
+00552         if (((params_when_on>0) || (params_when_off>0)) && (type == MT_CLIENT))
+00553         {
+00554                 log(DEBUG,"*** API ERROR *** Parameters on MT_CLIENT modes are not supported");
+00555                 return false;
+00556         }
+00557         if ((params_when_on>1) || (params_when_off>1))
+00558         {
+00559                 log(DEBUG,"*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported");
+00560                 return false;
+00561         }
+00562         return DoAddExtendedMode(modechar,type,requires_oper,params_when_on,params_when_off);
+00563 }
 
@@ -450,11 +456,11 @@ Calls the handler for a command, either implemented by the core or by another mo You can use this function to trigger other commands in the ircd, such as PRIVMSG, JOIN, KICK etc, or even as a method of callback. By defining command names that are untypeable for users on irc (e.g. those which contain a or
) you may use them as callback identifiers. The first parameter to this method is the name of the command handler you wish to call, e.g. PRIVMSG. This will be a command handler previously registered by the core or wih AddCommand(). The second parameter is an array of parameters, and the third parameter is a count of parameters in the array. If you do not pass enough parameters to meet the minimum needed by the handler, the functiom will silently ignore it. The final parameter is the user executing the command handler, used for privilage checks, etc.

-Definition at line 408 of file modules.cpp. +Definition at line 410 of file modules.cpp.

-

00409 {
-00410         call_handler(commandname.c_str(),parameters,pcnt,user);
-00411 }
+
00411 {
+00412         call_handler(commandname.c_str(),parameters,pcnt,user);
+00413 }
 
@@ -497,13 +503,13 @@ Change GECOS (fullname) of a user.

You should always call this method to change a user's GECOS rather than writing directly to the fullname member of userrec, as any change applied via this method will be propogated to any linked servers.

-Definition at line 496 of file modules.cpp. +Definition at line 498 of file modules.cpp.

References ChangeName().

-

00497 {
-00498         ChangeName(user,gecos.c_str());
-00499 }
+
00499 {
+00500         ChangeName(user,gecos.c_str());
+00501 }
 
@@ -546,13 +552,13 @@ Change displayed hostname of a user.

You should always call this method to change a user's host rather than writing directly to the dhost member of userrec, as any change applied via this method will be propogated to any linked servers.

-Definition at line 491 of file modules.cpp. +Definition at line 493 of file modules.cpp.

References ChangeDisplayedHost().

-

00492 {
-00493         ChangeDisplayedHost(user,host.c_str());
-00494 }
+
00494 {
+00495         ChangeDisplayedHost(user,host.c_str());
+00496 }
 
@@ -595,11 +601,11 @@ Forces a user nickchange.

This command works similarly to SVSNICK, and can be used to implement Q-lines etc. If you specify an invalid nickname, the nick change will be dropped and the target user will receive the error numeric for it.

-Definition at line 392 of file modules.cpp. +Definition at line 394 of file modules.cpp.

-

00393 {
-00394         force_nickchange(user,nickname.c_str());
-00395 }
+
00395 {
+00396         force_nickchange(user,nickname.c_str());
+00397 }
 
@@ -642,13 +648,13 @@ 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 516 of file modules.cpp. +Definition at line 518 of file modules.cpp.

References cmode().

-

00517 {
-00518         return cmode(User,Chan);
-00519 }
+
00519 {
+00520         return cmode(User,Chan);
+00521 }
 
@@ -691,13 +697,13 @@ 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 469 of file modules.cpp. +Definition at line 471 of file modules.cpp.

References common_channels().

-

00470 {
-00471         return (common_channels(u1,u2) != 0);
-00472 }
+
00472 {
+00473         return (common_channels(u1,u2) != 0);
+00474 }
 
@@ -731,11 +737,11 @@ Returns a count of the number of users on a channel.

This will NEVER be 0, as if the chanrec exists, it will have at least one user in the channel.

-Definition at line 571 of file modules.cpp. +Definition at line 573 of file modules.cpp.

-

00572 {
-00573         return usercount(c);
-00574 }
+
00574 {
+00575         return usercount(c);
+00576 }
 
@@ -769,11 +775,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 511 of file modules.cpp. +Definition at line 513 of file modules.cpp.

-

00512 {
-00513         return FindChan(channel.c_str());
-00514 }
+
00514 {
+00515         return FindChan(channel.c_str());
+00516 }
 
@@ -807,11 +813,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 506 of file modules.cpp. +Definition at line 508 of file modules.cpp.

-

00507 {
-00508         return Find(nick);
-00509 }
+
00509 {
+00510         return Find(nick);
+00511 }
 
@@ -844,11 +850,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 536 of file modules.cpp. +Definition at line 538 of file modules.cpp.

-

00537 {
-00538         return Admin(getadminname(),getadminemail(),getadminnick());
-00539 }
+
00539 {
+00540         return Admin(getadminname(),getadminemail(),getadminnick());
+00541 }
 
@@ -881,11 +887,11 @@ Returns the network name, global to all linked servers.

-Definition at line 531 of file modules.cpp. +Definition at line 533 of file modules.cpp.

-

00532 {
-00533         return getnetworkname();
-00534 }
+
00534 {
+00535         return getnetworkname();
+00536 }
 
@@ -918,11 +924,11 @@ Returns the server name of the server where the module is loaded.

-Definition at line 526 of file modules.cpp. +Definition at line 528 of file modules.cpp.

-

00527 {
-00528         return getservername();
-00529 }
+
00529 {
+00530         return getservername();
+00531 }
 
@@ -932,7 +938,7 @@ Definition at line 526 - + @@ -956,28 +962,28 @@ Fetches the userlist of a channel.

This function must be here and not a member of userrec or chanrec due to include constraints.

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

-References chanuserlist, clientlist, has_channel(), and isnick(). -

-

00374 {
-00375         chanuserlist userl;
-00376         userl.clear();
-00377         for (user_hash::const_iterator i = clientlist.begin(); i != clientlist.end(); i++)
-00378         {
-00379                 if (i->second)
-00380                 {
-00381                         if (has_channel(i->second,chan))
-00382                         {
-00383                                 if (isnick(i->second->nick))
-00384                                 {
-00385                                         userl.push_back(i->second);
-00386                                 }
-00387                         }
-00388                 }
-00389         }
-00390         return userl;
-00391 }
+Definition at line 375 of file modules.cpp.
+

+References chanuserlist, clientlist, has_channel(), and isnick(). +

+

00376 {
+00377         chanuserlist userl;
+00378         userl.clear();
+00379         for (user_hash::const_iterator i = clientlist.begin(); i != clientlist.end(); i++)
+00380         {
+00381                 if (i->second)
+00382                 {
+00383                         if (has_channel(i->second,chan))
+00384                         {
+00385                                 if (isnick(i->second->nick))
+00386                                 {
+00387                                         userl.push_back(i->second);
+00388                                 }
+00389                         }
+00390                 }
+00391         }
+00392         return userl;
+00393 }
 
chanuserlist Server::GetUsers chanuserlist Server::GetUsers chanrec chan
@@ -1011,13 +1017,13 @@ Returns true if a nick is valid.

Nicks for unregistered connections will return false.

-Definition at line 501 of file modules.cpp. +Definition at line 503 of file modules.cpp.

References isnick().

-

00502 {
-00503         return (isnick(nick.c_str()) != 0);
-00504 }
+
00504 {
+00505         return (isnick(nick.c_str()) != 0);
+00506 }
 
@@ -1060,13 +1066,13 @@ Checks if a user is on a channel.

This function will return true or false to indicate if user 'User' is on channel 'Chan'.

-Definition at line 521 of file modules.cpp. +Definition at line 523 of file modules.cpp.

References has_channel().

-

00522 {
-00523         return has_channel(User,Chan);
-00524 }
+
00524 {
+00525         return has_channel(User,Chan);
+00526 }
 
@@ -1100,13 +1106,13 @@ Returns true if the servername you give is ulined.

ULined servers have extra privilages. They are allowed to change nicknames on remote servers, change modes of clients which are on remote servers and set modes of channels where there are no channel operators for that channel on the ulined server, amongst other things. Ulined server data is also broadcast across the mesh at all times as opposed to selectively messaged in the case of normal servers, as many ulined server types (such as services) do not support meshed links and must operate in this manner.

-Definition at line 403 of file modules.cpp. +Definition at line 405 of file modules.cpp.

-References is_uline(). +References is_uline().

-

00404 {
-00405         return is_uline(server.c_str());
-00406 }
+
00406 {
+00407         return is_uline(server.c_str());
+00408 }
 
@@ -1155,11 +1161,11 @@ Forces a user to join a channel.

This is similar to svsjoin and can be used to implement redirection, etc. On success, the return value is a valid pointer to a chanrec* of the channel the user was joined to. On failure, the result is NULL.

-Definition at line 363 of file modules.cpp. +Definition at line 365 of file modules.cpp.

-

00364 {
-00365         return add_channel(user,cname.c_str(),key.c_str(),true);
-00366 }
+
00366 {
+00367         return add_channel(user,cname.c_str(),key.c_str(),true);
+00368 }
 
@@ -1202,11 +1208,11 @@ Writes a log string.

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

-Definition at line 413 of file modules.cpp. +Definition at line 415 of file modules.cpp.

-

00414 {
-00415         log(level,"%s",s.c_str());
-00416 }
+
00416 {
+00417         log(level,"%s",s.c_str());
+00418 }
 
@@ -1249,14 +1255,14 @@ Matches text against a glob pattern.

Uses the ircd's internal matching function to match string against a globbing pattern, e.g. *!*@*.com Returns true if the literal successfully matches the pattern, false if otherwise.

-Definition at line 350 of file modules.cpp. +Definition at line 352 of file modules.cpp.

-

00351 {
-00352         char literal[MAXBUF],pattern[MAXBUF];
-00353         strlcpy(literal,sliteral.c_str(),MAXBUF);
-00354         strlcpy(pattern,spattern.c_str(),MAXBUF);
-00355         return match(literal,pattern);
-00356 }
+
00353 {
+00354         char literal[MAXBUF],pattern[MAXBUF];
+00355         strlcpy(literal,sliteral.c_str(),MAXBUF);
+00356         strlcpy(pattern,spattern.c_str(),MAXBUF);
+00357         return match(literal,pattern);
+00358 }
 
@@ -1305,11 +1311,11 @@ Forces a user to part a channel.

This is similar to svspart and can be used to implement redirection, etc. Although the return value of this function is a pointer to a channel record, the returned data is undefined and should not be read or written to. This behaviour may be changed in a future version.

-Definition at line 368 of file modules.cpp. +Definition at line 370 of file modules.cpp.

-

00369 {
-00370         return del_channel(user,cname.c_str(),reason.c_str(),false);
-00371 }
+
00371 {
+00372         return del_channel(user,cname.c_str(),reason.c_str(),false);
+00373 }
 
@@ -1354,14 +1360,14 @@ To the user, it will appear as if they typed /QUIT themselves, except for the fa WARNING!

Once you call this function, userrec* user will immediately become INVALID. You MUST NOT write to, or read from this pointer after calling the QuitUser method UNDER ANY CIRCUMSTANCES! The best course of action after calling this method is to immediately bail from your handler.

-Definition at line 397 of file modules.cpp. +Definition at line 399 of file modules.cpp.

References userrec::nick, and send_network_quit().

-

00398 {
-00399         send_network_quit(user->nick,reason.c_str());
-00400         kill_link(user,reason.c_str());
-00401 }
+
00400 {
+00401         send_network_quit(user->nick,reason.c_str());
+00402         kill_link(user,reason.c_str());
+00403 }
 
@@ -1404,11 +1410,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 428 of file modules.cpp. +Definition at line 430 of file modules.cpp.

-

00429 {
-00430         Write(Socket,"%s",s.c_str());
-00431 }
+
00431 {
+00432         Write(Socket,"%s",s.c_str());
+00433 }
 
@@ -1463,18 +1469,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 457 of file modules.cpp. -

-

00458 {
-00459         if (IncludeSender)
-00460         {
-00461                 WriteChannel(Channel,User,"%s",s.c_str());
-00462         }
-00463         else
-00464         {
-00465                 ChanExceptSender(Channel,User,"%s",s.c_str());
-00466         }
-00467 }
+Definition at line 459 of file modules.cpp.
+

+

00460 {
+00461         if (IncludeSender)
+00462         {
+00463                 WriteChannel(Channel,User,"%s",s.c_str());
+00464         }
+00465         else
+00466         {
+00467                 ChanExceptSender(Channel,User,"%s",s.c_str());
+00468         }
+00469 }
 
@@ -1523,18 +1529,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 474 of file modules.cpp. -

-

00475 {
-00476         if (IncludeSender)
-00477         {
-00478                 WriteCommon(User,"%s",text.c_str());
-00479         }
-00480         else
-00481         {
-00482                 WriteCommonExcept(User,"%s",text.c_str());
-00483         }
-00484 }
+Definition at line 476 of file modules.cpp.
+

+

00477 {
+00478         if (IncludeSender)
+00479         {
+00480                 WriteCommon(User,"%s",text.c_str());
+00481         }
+00482         else
+00483         {
+00484                 WriteCommonExcept(User,"%s",text.c_str());
+00485         }
+00486 }
 
@@ -1583,11 +1589,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 438 of file modules.cpp. +Definition at line 440 of file modules.cpp.

-

00439 {
-00440         WriteFrom(Socket,User,"%s",s.c_str());
-00441 }
+
00441 {
+00442         WriteFrom(Socket,User,"%s",s.c_str());
+00443 }
 
@@ -1643,13 +1649,13 @@ modes[2] = user->nick;

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

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

-Definition at line 423 of file modules.cpp. +Definition at line 425 of file modules.cpp.

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

-

00424 {
-00425         server_mode(parameters,pcnt,user);
-00426 }
+
00426 {
+00427         server_mode(parameters,pcnt,user);
+00428 }
 
@@ -1683,11 +1689,11 @@ Sends text to all opers.

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

-Definition at line 345 of file modules.cpp. +Definition at line 347 of file modules.cpp.

-

00346 {
-00347         WriteOpers("%s",s.c_str());
-00348 }
+
00348 {
+00349         WriteOpers("%s",s.c_str());
+00350 }
 
@@ -1730,11 +1736,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 433 of file modules.cpp. +Definition at line 435 of file modules.cpp.

-

00434 {
-00435         WriteServ(Socket,"%s",s.c_str());
-00436 }
+
00436 {
+00437         WriteServ(Socket,"%s",s.c_str());
+00438 }
 
@@ -1787,22 +1793,22 @@ The format will become:

:localserver TEXT

Which is useful for numerics and server notices to single users, etc.

-Definition at line 443 of file modules.cpp. +Definition at line 445 of file modules.cpp.

References connection::fd.

-

00444 {
-00445         if (!Source)
-00446         {
-00447                 // if source is NULL, then the message originates from the local server
-00448                 Write(Dest->fd,":%s %s",this->GetServerName().c_str(),s.c_str());
-00449         }
-00450         else
-00451         {
-00452                 // otherwise it comes from the user specified
-00453                 WriteTo(Source,Dest,"%s",s.c_str());
-00454         }
-00455 }
+
00446 {
+00447         if (!Source)
+00448         {
+00449                 // if source is NULL, then the message originates from the local server
+00450                 Write(Dest->fd,":%s %s",this->GetServerName().c_str(),s.c_str());
+00451         }
+00452         else
+00453         {
+00454                 // otherwise it comes from the user specified
+00455                 WriteTo(Source,Dest,"%s",s.c_str());
+00456         }
+00457 }
 
@@ -1853,11 +1859,11 @@ These can be RFC specified modes such as +i, or module provided modes, including Serv->SendToModeMask("xi", WM_OR, "m00");

Then the text 'm00' will be sent to all users with EITHER mode x or i. Conversely if you used WM_AND, the user must have both modes set to receive the message.

-Definition at line 358 of file modules.cpp. +Definition at line 360 of file modules.cpp.

-

00359 {
-00360         WriteMode(modes.c_str(),flags,"%s",text.c_str());
-00361 }
+
00361 {
+00362         WriteMode(modes.c_str(),flags,"%s",text.c_str());
+00363 }
 
@@ -1900,17 +1906,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 486 of file modules.cpp. +Definition at line 488 of file modules.cpp.

-

00487 {
-00488         WriteWallOps(User,false,"%s",text.c_str());
-00489 }
+
00489 {
+00490         WriteWallOps(User,false,"%s",text.c_str());
+00491 }
 

The documentation for this class was generated from the following files: -
Generated on Mon Apr 4 18:12:54 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:26 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classVersion-members.html b/docs/module-doc/classVersion-members.html index 9b517dc80..7d5e8ee8f 100644 --- a/docs/module-doc/classVersion-members.html +++ b/docs/module-doc/classVersion-members.html @@ -9,12 +9,13 @@ ageclassbase BuildVersion classbase()classbase [inline] + FlagsVersion MajorVersion MinorVersion RevisionVersion - Version(int major, int minor, int revision, int build)Version + Version(int major, int minor, int revision, int build, int flags)Version ~classbase()classbase [inline] -
Generated on Mon Apr 4 18:12:54 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:27 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classVersion.html b/docs/module-doc/classVersion.html index 165a74c82..46528e46a 100644 --- a/docs/module-doc/classVersion.html +++ b/docs/module-doc/classVersion.html @@ -15,7 +15,7 @@ Inherits classbase. List of all members. - + @@ -26,6 +26,8 @@ Inherits classbase. + +

Public Member Functions

 Version (int major, int minor, int revision, int build)
 Version (int major, int minor, int revision, int build, int flags)

Public Attributes

const int Major
const int Build
const int Flags

Detailed Description

Holds a module's Version information The four members (set by the constructor only) indicate details as to the version number of a module. @@ -34,7 +36,7 @@ A class of type Version is returned by the GetVersion method of the 102 of file modules.h.

Constructor & Destructor Documentation

+Definition at line 109 of file modules.h.

Constructor & Destructor Documentation

@@ -62,7 +64,13 @@ Definition at line 102 of - + + + + + + + @@ -84,9 +92,9 @@ Definition at line 102 of

-Definition at line 298 of file modules.cpp. +Definition at line 300 of file modules.cpp.

-

00298 : Major(major), Minor(minor), Revision(revision), Build(build) { };
+
00300 : Major(major), Minor(minor), Revision(revision), Build(build), Flags(flags) { };
 
int  build build,
int  flags
@@ -112,7 +120,31 @@ Definition at line 298

-Definition at line 105 of file modules.h. +Definition at line 112 of file modules.h. + + +

+ + + + +
+ + +
const int Version::Flags +
+
+ + + +
+   + + +

+ +

+Definition at line 112 of file modules.h.

@@ -136,7 +168,7 @@ Definition at line 105 of

-Definition at line 105 of file modules.h. +Definition at line 112 of file modules.h.

@@ -160,7 +192,7 @@ Definition at line 105 of

-Definition at line 105 of file modules.h. +Definition at line 112 of file modules.h.

@@ -184,12 +216,12 @@ Definition at line 105 of

-Definition at line 105 of file modules.h. +Definition at line 112 of file modules.h.


The documentation for this class was generated from the following files: -
Generated on Mon Apr 4 18:12:54 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:27 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classXLine-members.html b/docs/module-doc/classXLine-members.html index 6adda8c2a..4f68e11f3 100644 --- a/docs/module-doc/classXLine-members.html +++ b/docs/module-doc/classXLine-members.html @@ -14,7 +14,7 @@ set_timeXLine sourceXLine ~classbase()classbase [inline] -
Generated on Mon Apr 4 18:12:54 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:27 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classXLine.html b/docs/module-doc/classXLine.html index 29339e3bc..da64d6a00 100644 --- a/docs/module-doc/classXLine.html +++ b/docs/module-doc/classXLine.html @@ -171,7 +171,7 @@ Definition at line 48 of fi
The documentation for this class was generated from the following file: -
Generated on Mon Apr 4 18:12:54 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:27 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classZLine-members.html b/docs/module-doc/classZLine-members.html index e255f32c5..9637edfe7 100644 --- a/docs/module-doc/classZLine-members.html +++ b/docs/module-doc/classZLine-members.html @@ -16,7 +16,7 @@ set_timeXLine sourceXLine ~classbase()classbase [inline] -
Generated on Mon Apr 4 18:12:54 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:27 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classZLine.html b/docs/module-doc/classZLine.html index 310335b58..7400fcd87 100644 --- a/docs/module-doc/classZLine.html +++ b/docs/module-doc/classZLine.html @@ -82,7 +82,7 @@ Definition at line 103 of f
The documentation for this class was generated from the following file: -
Generated on Mon Apr 4 18:12:54 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:27 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classchanrec-members.html b/docs/module-doc/classchanrec-members.html index e7a73c026..c114639dc 100644 --- a/docs/module-doc/classchanrec-members.html +++ b/docs/module-doc/classchanrec-members.html @@ -33,7 +33,7 @@ topicsetchanrec ~chanrec()chanrec [inline, virtual] ~classbase()classbase [inline] -
Generated on Mon Apr 4 18:12:50 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:23 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classchanrec.html b/docs/module-doc/classchanrec.html index 500221ee4..f3090de19 100644 --- a/docs/module-doc/classchanrec.html +++ b/docs/module-doc/classchanrec.html @@ -116,19 +116,19 @@ Creates a channel record and initialises it with default values.

-Definition at line 112 of file channels.cpp. +Definition at line 113 of file channels.cpp.

References c_private, created, custom_modes, inviteonly, key, limit, moderated, name, noexternal, secret, setby, topic, topiclock, and topicset.

-

00113 {
-00114         strcpy(name,"");
-00115         strcpy(custom_modes,"");
-00116         strcpy(topic,"");
-00117         strcpy(setby,"");
-00118         strcpy(key,"");
-00119         created = topicset = limit = 0;
-00120         topiclock = noexternal = inviteonly = moderated = secret = c_private = false;
-00121 }
+
00114 {
+00115         strcpy(name,"");
+00116         strcpy(custom_modes,"");
+00117         strcpy(topic,"");
+00118         strcpy(setby,"");
+00119         strcpy(key,"");
+00120         created = topicset = limit = 0;
+00121         topiclock = noexternal = inviteonly = moderated = secret = c_private = false;
+00122 }
 
@@ -196,23 +196,23 @@ Returns the parameter for a custom mode on a channel.

For example if "+L #foo" is set, and you pass this method 'L', it will return '#foo'. If the mode is not set on the channel, or the mode has no parameters associated with it, it will return an empty string.

-Definition at line 185 of file channels.cpp. -

-References custom_mode_params. -

-

00186 {
-00187         if (custom_mode_params.size())
-00188         {
-00189                 for (vector<ModeParameter>::iterator i = custom_mode_params.begin(); i < custom_mode_params.end(); i++)
-00190                 {
-00191                         if ((i->mode == mode) && (!strcasecmp(this->name,i->channel)))
-00192                         {
-00193                                 return std::string(i->parameter);
-00194                         }
-00195                 }
-00196         }
-00197         return std::string("");
-00198 }
+Definition at line 186 of file channels.cpp.
+

+References custom_mode_params. +

+

00187 {
+00188         if (custom_mode_params.size())
+00189         {
+00190                 for (vector<ModeParameter>::iterator i = custom_mode_params.begin(); i < custom_mode_params.end(); i++)
+00191                 {
+00192                         if ((i->mode == mode) && (!strcasecmp(this->name,i->channel)))
+00193                         {
+00194                                 return std::string(i->parameter);
+00195                         }
+00196                 }
+00197         }
+00198         return std::string("");
+00199 }
 
@@ -246,14 +246,14 @@ Returns true if a custom mode is set on a channel.

-Definition at line 179 of file channels.cpp. +Definition at line 180 of file channels.cpp.

References DEBUG.

-

00180 {
-00181         log(DEBUG,"Checking ISCustomModeSet: %c %s",mode,this->custom_modes);
-00182         return (strchr(this->custom_modes,mode) != 0);
-00183 }
+
00181 {
+00182         log(DEBUG,"Checking ISCustomModeSet: %c %s",mode,this->custom_modes);
+00183         return (strchr(this->custom_modes,mode) != 0);
+00184 }
 
@@ -296,32 +296,32 @@ Sets or unsets a custom mode in the channels info.

-Definition at line 123 of file channels.cpp. -

-References custom_modes, DEBUG, and SetCustomModeParam(). -

-

00124 {
-00125         if (mode_on) {
-00126                 char m[3];
-00127                 m[0] = mode;
-00128                 m[1] = '\0';
-00129                 if (!strchr(this->custom_modes,mode))
-00130                 {
-00131                         strlcat(custom_modes,m,MAXMODES);
-00132                 }
-00133                 log(DEBUG,"Custom mode %c set",mode);
-00134         }
-00135         else {
-00136 
-00137                 std::string a = this->custom_modes;
-00138                 int pos = a.find(mode);
-00139                 a.erase(pos,1);
-00140                 strncpy(this->custom_modes,a.c_str(),MAXMODES);
-00141 
-00142                 log(DEBUG,"Custom mode %c removed: modelist='%s'",mode,this->custom_modes);
-00143                 this->SetCustomModeParam(mode,"",false);
-00144         }
-00145 }
+Definition at line 124 of file channels.cpp.
+

+References custom_modes, DEBUG, and SetCustomModeParam(). +

+

00125 {
+00126         if (mode_on) {
+00127                 char m[3];
+00128                 m[0] = mode;
+00129                 m[1] = '\0';
+00130                 if (!strchr(this->custom_modes,mode))
+00131                 {
+00132                         strlcat(custom_modes,m,MAXMODES);
+00133                 }
+00134                 log(DEBUG,"Custom mode %c set",mode);
+00135         }
+00136         else {
+00137 
+00138                 std::string a = this->custom_modes;
+00139                 int pos = a.find(mode);
+00140                 a.erase(pos,1);
+00141                 strncpy(this->custom_modes,a.c_str(),MAXMODES);
+00142 
+00143                 log(DEBUG,"Custom mode %c removed: modelist='%s'",mode,this->custom_modes);
+00144                 this->SetCustomModeParam(mode,"",false);
+00145         }
+00146 }
 
@@ -370,41 +370,41 @@ Sets or unsets the parameters for a custom mode in a channels info.

-Definition at line 148 of file channels.cpp. -

-References ModeParameter::channel, custom_mode_params, DEBUG, ModeParameter::mode, and ModeParameter::parameter. -

-Referenced by SetCustomMode(). -

-

00149 {
-00150 
-00151         log(DEBUG,"SetCustomModeParam called");
-00152         ModeParameter M;
-00153         M.mode = mode;
-00154         strlcpy(M.channel,this->name,CHANMAX);
-00155         strlcpy(M.parameter,parameter,MAXBUF);
-00156         if (mode_on)
-00157         {
-00158                 log(DEBUG,"Custom mode parameter %c %s added",mode,parameter);
-00159                 custom_mode_params.push_back(M);
-00160         }
-00161         else
-00162         {
-00163                 if (custom_mode_params.size())
-00164                 {
-00165                         for (vector<ModeParameter>::iterator i = custom_mode_params.begin(); i < custom_mode_params.end(); i++)
-00166                         {
-00167                                 if ((i->mode == mode) && (!strcasecmp(this->name,i->channel)))
-00168                                 {
-00169                                         log(DEBUG,"Custom mode parameter %c %s removed",mode,parameter);
-00170                                         custom_mode_params.erase(i);
-00171                                         return;
-00172                                 }
-00173                         }
-00174                 }
-00175                 log(DEBUG,"*** BUG *** Attempt to remove non-existent mode parameter!");
-00176         }
-00177 }
+Definition at line 149 of file channels.cpp.
+

+References ModeParameter::channel, custom_mode_params, DEBUG, ModeParameter::mode, and ModeParameter::parameter. +

+Referenced by SetCustomMode(). +

+

00150 {
+00151 
+00152         log(DEBUG,"SetCustomModeParam called");
+00153         ModeParameter M;
+00154         M.mode = mode;
+00155         strlcpy(M.channel,this->name,CHANMAX);
+00156         strlcpy(M.parameter,parameter,MAXBUF);
+00157         if (mode_on)
+00158         {
+00159                 log(DEBUG,"Custom mode parameter %c %s added",mode,parameter);
+00160                 custom_mode_params.push_back(M);
+00161         }
+00162         else
+00163         {
+00164                 if (custom_mode_params.size())
+00165                 {
+00166                         for (vector<ModeParameter>::iterator i = custom_mode_params.begin(); i < custom_mode_params.end(); i++)
+00167                         {
+00168                                 if ((i->mode == mode) && (!strcasecmp(this->name,i->channel)))
+00169                                 {
+00170                                         log(DEBUG,"Custom mode parameter %c %s removed",mode,parameter);
+00171                                         custom_mode_params.erase(i);
+00172                                         return;
+00173                                 }
+00174                         }
+00175                 }
+00176                 log(DEBUG,"*** BUG *** Attempt to remove non-existent mode parameter!");
+00177         }
+00178 }
 
@@ -460,7 +460,7 @@ This value cannot be set at the same time as 155 of file channels.h.

-Referenced by chanrec(). +Referenced by chanrec().

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

Definition at line 111 of file channels.h.

-Referenced by chanrec(). +Referenced by chanrec().

@@ -516,7 +516,7 @@ Plugins may use this field in any way they see fit.

Definition at line 103 of file channels.h.

-Referenced by chanrec(), and SetCustomMode(). +Referenced by chanrec(), and SetCustomMode().

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

Definition at line 141 of file channels.h.

-Referenced by chanrec(). +Referenced by chanrec().

@@ -572,7 +572,7 @@ If this value is an empty string, there is no channel key in place.

Definition at line 129 of file channels.h.

-Referenced by chanrec(). +Referenced by chanrec().

@@ -600,7 +600,7 @@ If this value is zero, there is no limit in place.

Definition at line 124 of file channels.h.

-Referenced by chanrec(). +Referenced by chanrec().

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

Definition at line 145 of file channels.h.

-Referenced by chanrec(). +Referenced by chanrec().

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

Definition at line 99 of file channels.h.

-Referenced by chanrec(). +Referenced by chanrec().

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

Definition at line 137 of file channels.h.

-Referenced by chanrec(). +Referenced by chanrec().

@@ -712,7 +712,7 @@ This value cannot be set at the same time as 150 of file channels.h.

-Referenced by chanrec(). +Referenced by chanrec().

@@ -740,7 +740,7 @@ If this member is an empty string, no topic was ever set.

Definition at line 119 of file channels.h.

-Referenced by chanrec(). +Referenced by chanrec().

@@ -768,7 +768,7 @@ If this is an empty string, no channel topic is set.

Definition at line 108 of file channels.h.

-Referenced by chanrec(). +Referenced by chanrec().

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

Definition at line 133 of file channels.h.

-Referenced by chanrec(). +Referenced by chanrec().

@@ -824,12 +824,12 @@ If no topic was ever set, this will be equal to 115 of file channels.h.

-Referenced by chanrec(). +Referenced by chanrec().


The documentation for this class was generated from the following files: -
Generated on Mon Apr 4 18:12:50 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:23 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classclassbase-members.html b/docs/module-doc/classclassbase-members.html index b592d0499..f9dae7a73 100644 --- a/docs/module-doc/classclassbase-members.html +++ b/docs/module-doc/classclassbase-members.html @@ -9,7 +9,7 @@ ageclassbase classbase()classbase [inline] ~classbase()classbase [inline] -
Generated on Mon Apr 4 18:12:50 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:23 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classclassbase.html b/docs/module-doc/classclassbase.html index 00af10405..37ec77e2a 100644 --- a/docs/module-doc/classclassbase.html +++ b/docs/module-doc/classclassbase.html @@ -132,7 +132,7 @@ Referenced by classbase().
The documentation for this class was generated from the following file: -
Generated on Mon Apr 4 18:12:50 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:23 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classcommand__t-members.html b/docs/module-doc/classcommand__t-members.html index 03013e5f6..6671f8a76 100644 --- a/docs/module-doc/classcommand__t-members.html +++ b/docs/module-doc/classcommand__t-members.html @@ -15,10 +15,11 @@ handler_functioncommand_t min_paramscommand_t Shrink(std::string key)Extensible + sourcecommand_t total_bytescommand_t use_countcommand_t ~classbase()classbase [inline] -
Generated on Mon Apr 4 18:12:50 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:23 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classcommand__t.html b/docs/module-doc/classcommand__t.html index 8f88460a4..4a8d75d74 100644 --- a/docs/module-doc/classcommand__t.html +++ b/docs/module-doc/classcommand__t.html @@ -33,6 +33,9 @@ Inherits Extensible. long total_bytes  used by /stats m

+char source [MAXBUF] + + used for resource tracking between modules



Detailed Description

A structure that defines a command. @@ -144,6 +147,32 @@ Minimum number of parameters command takes. Definition at line 40 of file ctables.h. +

+ + + + +
+ + +
char command_t::source[MAXBUF] +
+
+ + + + + +
+   + + +

+used for resource tracking between modules +

+ +

+Definition at line 49 of file ctables.h.

@@ -198,7 +227,7 @@ Definition at line 43 of


The documentation for this class was generated from the following file: -
Generated on Mon Apr 4 18:12:50 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:23 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classconnection-members.html b/docs/module-doc/classconnection-members.html index 2159fac9b..f986d3f59 100644 --- a/docs/module-doc/classconnection-members.html +++ b/docs/module-doc/classconnection-members.html @@ -41,7 +41,7 @@ stateconnection TerminateLink(char *targethost)connection ~classbase()classbase [inline] -
Generated on Mon Apr 4 18:12:51 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:24 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classconnection.html b/docs/module-doc/classconnection.html index 2350d6f2c..ae9342e55 100644 --- a/docs/module-doc/classconnection.html +++ b/docs/module-doc/classconnection.html @@ -537,7 +537,7 @@ Stats counter for bytes inbound.

Definition at line 194 of file connection.h.

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

@@ -565,7 +565,7 @@ Stats counter for bytes outbound.

Definition at line 198 of file connection.h.

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

@@ -593,7 +593,7 @@ Stats counter for commands inbound.

Definition at line 202 of file connection.h.

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

@@ -621,7 +621,7 @@ Stats counter for commands outbound.

Definition at line 206 of file connection.h.

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

@@ -675,7 +675,7 @@ File descriptor of the connection.

Definition at line 178 of file connection.h.

-Referenced by ConfigReader::DumpErrors(), Server::SendTo(), serverrec::serverrec(), and userrec::userrec(). +Referenced by ConfigReader::DumpErrors(), Server::SendTo(), serverrec::serverrec(), and userrec::userrec().

@@ -703,7 +703,7 @@ True if server/user has authenticated, false if otherwise.

Definition at line 210 of file connection.h.

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

@@ -731,7 +731,7 @@ Not used if this is a serverrec

Definition at line 182 of file connection.h.

-Referenced by userrec::GetFullRealHost(), and userrec::userrec(). +Referenced by userrec::GetFullRealHost(), and userrec::userrec().

@@ -759,7 +759,7 @@ Time that the connection last sent data, used to calculate idle time.

Definition at line 236 of file connection.h.

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

@@ -787,7 +787,7 @@ Only used for userrec

Definition at line 190 of file connection.h.

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

@@ -867,7 +867,7 @@ Reserved for future use.

Definition at line 186 of file connection.h.

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

@@ -895,7 +895,7 @@ Time the connection was last pinged.

Definition at line 228 of file connection.h.

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

@@ -923,7 +923,7 @@ Used by PING checks with clients.

Definition at line 240 of file connection.h.

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

@@ -951,7 +951,7 @@ For a serverrec this is the current listening port of the serverrec object.

Definition at line 216 of file connection.h.

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

@@ -979,7 +979,7 @@ Used by userrec to indicate the registration status of the connection.

Definition at line 220 of file connection.h.

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

@@ -1007,7 +1007,7 @@ Time the connection was created, set in the constructor.

Definition at line 232 of file connection.h.

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

@@ -1038,7 +1038,7 @@ Definition at line 224


The documentation for this class was generated from the following file: -
Generated on Mon Apr 4 18:12:51 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:24 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classes.html b/docs/module-doc/classes.html index 5d1bdb706..915179245 100644 --- a/docs/module-doc/classes.html +++ b/docs/module-doc/classes.html @@ -25,7 +25,7 @@
  S  
  Z  
connection   GLine   ModeParameter   Server   ZLine   
  D  
-
Generated on Mon Apr 4 18:12:50 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:23 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classircd__connector-members.html b/docs/module-doc/classircd__connector-members.html index 0728e3b21..ae2656666 100644 --- a/docs/module-doc/classircd__connector-members.html +++ b/docs/module-doc/classircd__connector-members.html @@ -35,7 +35,7 @@ Shrink(std::string key)Extensible stateircd_connector [private] ~classbase()classbase [inline] -
Generated on Mon Apr 4 18:12:52 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:25 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classircd__connector.html b/docs/module-doc/classircd__connector.html index db1d38877..9a8a2802d 100644 --- a/docs/module-doc/classircd__connector.html +++ b/docs/module-doc/classircd__connector.html @@ -792,7 +792,7 @@ Definition at line 75
The documentation for this class was generated from the following file: -
Generated on Mon Apr 4 18:12:52 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:25 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classpacket-members.html b/docs/module-doc/classpacket-members.html index 2039fe3ce..2076fad17 100644 --- a/docs/module-doc/classpacket-members.html +++ b/docs/module-doc/classpacket-members.html @@ -9,7 +9,7 @@ ageclassbase classbase()classbase [inline] ~classbase()classbase [inline] -
Generated on Mon Apr 4 18:12:53 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:25 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classpacket.html b/docs/module-doc/classpacket.html index 7586d3523..bf2cde3d4 100644 --- a/docs/module-doc/classpacket.html +++ b/docs/module-doc/classpacket.html @@ -24,7 +24,7 @@ This declaration is preserved here to maintain documentation only.

Definition at line 167 of file connection.h.


The documentation for this class was generated from the following file: -
Generated on Mon Apr 4 18:12:53 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:25 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classserverrec-members.html b/docs/module-doc/classserverrec-members.html index 355406ed8..7ceec4d8d 100644 --- a/docs/module-doc/classserverrec-members.html +++ b/docs/module-doc/classserverrec-members.html @@ -55,7 +55,7 @@ versionserverrec ~classbase()classbase [inline] ~serverrec()serverrec -
Generated on Mon Apr 4 18:12:54 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:26 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classserverrec.html b/docs/module-doc/classserverrec.html index a2a10308f..d3deb179c 100644 --- a/docs/module-doc/classserverrec.html +++ b/docs/module-doc/classserverrec.html @@ -93,22 +93,22 @@ Constructor.

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

-References connection::fd, hops_away, jupiter, connection::lastping, name, nickserv, opercount, pingtime, connection::signon, sync_soon, usercount, usercount_i, and version. -

-

00025 {
-00026         strlcpy(name,"",256);
-00027         pingtime = 0;
-00028         lastping = time(NULL);
-00029         usercount_i = usercount = opercount = version = 0;
-00030         hops_away = 1;
-00031         signon = time(NULL);
-00032         jupiter = false;
-00033         fd = 0;
-00034         sync_soon = false;
-00035         strlcpy(nickserv,"",NICKMAX);
-00036 }
+Definition at line 26 of file servers.cpp.
+

+References connection::fd, hops_away, jupiter, connection::lastping, name, nickserv, opercount, pingtime, connection::signon, sync_soon, TIME, usercount, usercount_i, and version. +

+

00027 {
+00028         strlcpy(name,"",256);
+00029         pingtime = 0;
+00030         lastping = TIME;
+00031         usercount_i = usercount = opercount = version = 0;
+00032         hops_away = 1;
+00033         signon = TIME;
+00034         jupiter = false;
+00035         fd = 0;
+00036         sync_soon = false;
+00037         strlcpy(nickserv,"",NICKMAX);
+00038 }
 
@@ -157,22 +157,22 @@ Constructor which initialises some of the main variables.

-Definition at line 43 of file servers.cpp. +Definition at line 45 of file servers.cpp.

-References connection::fd, hops_away, jupiter, connection::lastping, name, nickserv, opercount, connection::signon, sync_soon, usercount, usercount_i, and version. +References connection::fd, hops_away, jupiter, connection::lastping, name, nickserv, opercount, connection::signon, sync_soon, TIME, usercount, usercount_i, and version.

-

00044 {
-00045         strlcpy(name,n,256);
-00046         lastping = time(NULL);
-00047         usercount_i = usercount = opercount = 0;
-00048         version = ver;
-00049         hops_away = 1;
-00050         signon = time(NULL);
-00051         jupiter = jupe;
-00052         fd = 0;
-00053         sync_soon = false;
-00054         strlcpy(nickserv,"",NICKMAX);
-00055 }
+
00046 {
+00047         strlcpy(name,n,256);
+00048         lastping = TIME;
+00049         usercount_i = usercount = opercount = 0;
+00050         version = ver;
+00051         hops_away = 1;
+00052         signon = TIME;
+00053         jupiter = jupe;
+00054         fd = 0;
+00055         sync_soon = false;
+00056         strlcpy(nickserv,"",NICKMAX);
+00057 }
 
@@ -205,10 +205,10 @@ Destructor.

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

-

00040 {
-00041 }
+
00042 {
+00043 }
 
@@ -264,7 +264,7 @@ number of hops away (for quick access)

Definition at line 51 of file servers.h.

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

@@ -292,7 +292,7 @@ is a JUPE server (faked to enforce a server ban)

Definition at line 57 of file servers.h.

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

@@ -320,7 +320,7 @@ server name

Definition at line 36 of file servers.h.

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

@@ -348,7 +348,7 @@ Holds nickserv's name on U:lined (services) servers (this is a kludge for ircser

Definition at line 65 of file servers.h.

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

@@ -376,7 +376,7 @@ opers on server

Definition at line 48 of file servers.h.

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

@@ -404,7 +404,7 @@ last ping response (ms)

Definition at line 39 of file servers.h.

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

@@ -430,7 +430,7 @@ Referenced by serverrec() Definition at line 67 of file servers.h.

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

@@ -458,7 +458,7 @@ non-invisible users on server

Definition at line 45 of file servers.h.

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

@@ -486,7 +486,7 @@ invisible users on server

Definition at line 42 of file servers.h.

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

@@ -514,12 +514,12 @@ ircd version

Definition at line 54 of file servers.h.

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


The documentation for this class was generated from the following files: -
Generated on Mon Apr 4 18:12:54 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:26 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classucrec-members.html b/docs/module-doc/classucrec-members.html index ded768059..9cb025c22 100644 --- a/docs/module-doc/classucrec-members.html +++ b/docs/module-doc/classucrec-members.html @@ -13,7 +13,7 @@ ucrec()ucrec [inline] ~classbase()classbase [inline] ~ucrec()ucrec [inline, virtual] -
Generated on Mon Apr 4 18:12:54 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:26 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classucrec.html b/docs/module-doc/classucrec.html index 65046d31e..0981ed714 100644 --- a/docs/module-doc/classucrec.html +++ b/docs/module-doc/classucrec.html @@ -127,7 +127,7 @@ If the record is not in use, this value will be NULL.

Definition at line 213 of file channels.h.

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

@@ -155,12 +155,12 @@ UCMODE_FOUNDER values. If this value is zero, the user has no privilages upon th

Definition at line 208 of file channels.h.

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


The documentation for this class was generated from the following file: -
Generated on Mon Apr 4 18:12:54 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:26 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classuserrec-members.html b/docs/module-doc/classuserrec-members.html index 61528cf42..f30c93eea 100644 --- a/docs/module-doc/classuserrec-members.html +++ b/docs/module-doc/classuserrec-members.html @@ -63,7 +63,7 @@ userrec()userrec ~classbase()classbase [inline] ~userrec()userrec [inline, virtual] -
Generated on Mon Apr 4 18:12:54 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:27 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classuserrec.html b/docs/module-doc/classuserrec.html index e37a6dc18..849d914eb 100644 --- a/docs/module-doc/classuserrec.html +++ b/docs/module-doc/classuserrec.html @@ -116,36 +116,36 @@ Definition at line 89 of fi

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

References awaymsg, connection::bytes_in, connection::bytes_out, ucrec::channel, chans, connection::cmds_in, connection::cmds_out, dhost, dns_done, connection::fd, flood, fullname, connection::haspassed, connection::host, ident, connection::idle_lastmsg, connection::inbuf, invites, connection::ip, connection::lastping, modes, nick, connection::nping, oper, connection::port, connection::registered, result, server, connection::signon, timeout, and ucrec::uc_modes.

-

00027 {
-00028         // the PROPER way to do it, AVOID bzero at *ALL* costs
-00029         strcpy(nick,"");
-00030         strcpy(ip,"127.0.0.1");
-00031         timeout = 0;
-00032         strcpy(ident,"");
-00033         strcpy(host,"");
-00034         strcpy(dhost,"");
-00035         strcpy(fullname,"");
-00036         strcpy(modes,"");
-00037         strcpy(inbuf,"");
-00038         strcpy(server,"");
-00039         strcpy(awaymsg,"");
-00040         strcpy(oper,"");
-00041         fd = lastping = signon = idle_lastmsg = nping = registered = 0;
-00042         flood = port = bytes_in = bytes_out = cmds_in = cmds_out = 0;
-00043         haspassed = false;
-00044         dns_done = false;
-00045         strcpy(result,"");
-00046         for (int i = 0; i < MAXCHANS; i++)
-00047         {
-00048                 this->chans[i].channel = NULL;
-00049                 this->chans[i].uc_modes = 0;
-00050         }
-00051         invites.clear();
-00052 }
+
00029 {
+00030         // the PROPER way to do it, AVOID bzero at *ALL* costs
+00031         strcpy(nick,"");
+00032         strcpy(ip,"127.0.0.1");
+00033         timeout = 0;
+00034         strcpy(ident,"");
+00035         strcpy(host,"");
+00036         strcpy(dhost,"");
+00037         strcpy(fullname,"");
+00038         strcpy(modes,"");
+00039         strcpy(inbuf,"");
+00040         strcpy(server,"");
+00041         strcpy(awaymsg,"");
+00042         strcpy(oper,"");
+00043         fd = lastping = signon = idle_lastmsg = nping = registered = 0;
+00044         flood = port = bytes_in = bytes_out = cmds_in = cmds_out = 0;
+00045         haspassed = false;
+00046         dns_done = false;
+00047         strcpy(result,"");
+00048         for (int i = 0; i < MAXCHANS; i++)
+00049         {
+00050                 this->chans[i].channel = NULL;
+00051                 this->chans[i].uc_modes = 0;
+00052         }
+00053         invites.clear();
+00054 }
 
@@ -212,14 +212,14 @@ Returns the full displayed host of the user This member function returns the hos

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

References dhost, ident, nick, and result.

-

00057 {
-00058         snprintf(result,MAXBUF,"%s!%s@%s",nick,ident,dhost);
-00059         return result;
-00060 }
+
00059 {
+00060         snprintf(result,MAXBUF,"%s!%s@%s",nick,ident,dhost);
+00061         return result;
+00062 }
 
@@ -252,14 +252,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 63 of file users.cpp. +Definition at line 65 of file users.cpp.

References connection::host, ident, nick, and result.

-

00064 {
-00065         snprintf(result,MAXBUF,"%s!%s@%s",nick,ident,host);
-00066         return result;
-00067 }
+
00066 {
+00067         snprintf(result,MAXBUF,"%s!%s@%s",nick,ident,host);
+00068         return result;
+00069 }
 
@@ -293,60 +293,60 @@ Returns true or false for if a user can execute a privilaged oper command.

This is done by looking up their oper type from userrec::oper, then referencing this to their oper classes and checking the commands they can execute.

-Definition at line 112 of file users.cpp. +Definition at line 114 of file users.cpp.

References config_f, and DEBUG.

-

00113 {
-00114         char TypeName[MAXBUF],Classes[MAXBUF],ClassName[MAXBUF],CommandList[MAXBUF];
-00115         char* myclass;
-00116         char* mycmd;
-00117         char* savept;
-00118         char* savept2;
-00119         
-00120         // are they even an oper at all?
-00121         if (strchr(this->modes,'o'))
-00122         {
-00123                 log(DEBUG,"*** HasPermission: %s is an oper",this->nick);
-00124                 for (int j =0; j < ConfValueEnum("type",&config_f); j++)
-00125                 {
-00126                         ConfValue("type","name",j,TypeName,&config_f);
-00127                         if (!strcmp(TypeName,this->oper))
-00128                         {
-00129                                 log(DEBUG,"*** HasPermission: %s is an oper of type '%s'",this->nick,this->oper);
-00130                                 ConfValue("type","classes",j,Classes,&config_f);
-00131                                 char* myclass = strtok_r(Classes," ",&savept);
-00132                                 while (myclass)
-00133                                 {
-00134                                         log(DEBUG,"*** HasPermission: checking classtype '%s'",myclass);
-00135                                         for (int k =0; k < ConfValueEnum("class",&config_f); k++)
-00136                                         {
-00137                                                 ConfValue("class","name",k,ClassName,&config_f);
-00138                                                 if (!strcmp(ClassName,myclass))
-00139                                                 {
-00140                                                         ConfValue("class","commands",k,CommandList,&config_f);
-00141                                                         log(DEBUG,"*** HasPermission: found class named %s with commands: '%s'",ClassName,CommandList);
-00142                                                         
-00143                                                         
-00144                                                         mycmd = strtok_r(CommandList," ",&savept2);
-00145                                                         while (mycmd)
-00146                                                         {
-00147                                                                 if (!strcasecmp(mycmd,command))
-00148                                                                 {
-00149                                                                         log(DEBUG,"*** Command %s found, returning true",command);
-00150                                                                         return true;
-00151                                                                 }
-00152                                                                 mycmd = strtok_r(NULL," ",&savept2);
-00153                                                         }
-00154                                                 }
-00155                                         }
-00156                                         myclass = strtok_r(NULL," ",&savept);
-00157                                 }
-00158                         }
-00159                 }
-00160         }
-00161         return false;
-00162 }
+
00115 {
+00116         char TypeName[MAXBUF],Classes[MAXBUF],ClassName[MAXBUF],CommandList[MAXBUF];
+00117         char* myclass;
+00118         char* mycmd;
+00119         char* savept;
+00120         char* savept2;
+00121         
+00122         // are they even an oper at all?
+00123         if (strchr(this->modes,'o'))
+00124         {
+00125                 log(DEBUG,"*** HasPermission: %s is an oper",this->nick);
+00126                 for (int j =0; j < ConfValueEnum("type",&config_f); j++)
+00127                 {
+00128                         ConfValue("type","name",j,TypeName,&config_f);
+00129                         if (!strcmp(TypeName,this->oper))
+00130                         {
+00131                                 log(DEBUG,"*** HasPermission: %s is an oper of type '%s'",this->nick,this->oper);
+00132                                 ConfValue("type","classes",j,Classes,&config_f);
+00133                                 char* myclass = strtok_r(Classes," ",&savept);
+00134                                 while (myclass)
+00135                                 {
+00136                                         log(DEBUG,"*** HasPermission: checking classtype '%s'",myclass);
+00137                                         for (int k =0; k < ConfValueEnum("class",&config_f); k++)
+00138                                         {
+00139                                                 ConfValue("class","name",k,ClassName,&config_f);
+00140                                                 if (!strcmp(ClassName,myclass))
+00141                                                 {
+00142                                                         ConfValue("class","commands",k,CommandList,&config_f);
+00143                                                         log(DEBUG,"*** HasPermission: found class named %s with commands: '%s'",ClassName,CommandList);
+00144                                                         
+00145                                                         
+00146                                                         mycmd = strtok_r(CommandList," ",&savept2);
+00147                                                         while (mycmd)
+00148                                                         {
+00149                                                                 if (!strcasecmp(mycmd,command))
+00150                                                                 {
+00151                                                                         log(DEBUG,"*** Command %s found, returning true",command);
+00152                                                                         return true;
+00153                                                                 }
+00154                                                                 mycmd = strtok_r(NULL," ",&savept2);
+00155                                                         }
+00156                                                 }
+00157                                         }
+00158                                         myclass = strtok_r(NULL," ",&savept);
+00159                                 }
+00160                         }
+00161                 }
+00162         }
+00163         return false;
+00164 }
 
@@ -380,15 +380,15 @@ Adds a channel to a users invite list (invites them to a channel).

-Definition at line 83 of file users.cpp. +Definition at line 85 of file users.cpp.

References Invited::channel, and invites.

-

00084 {
-00085         Invited i;
-00086         strlcpy(i.channel,channel,CHANMAX);
-00087         invites.push_back(i);
-00088 }
+
00086 {
+00087         Invited i;
+00088         strlcpy(i.channel,channel,CHANMAX);
+00089         invites.push_back(i);
+00090 }
 
@@ -422,22 +422,22 @@ Returns true if a user is invited to a channel.

-Definition at line 69 of file users.cpp. +Definition at line 71 of file users.cpp.

References invites.

-

00070 {
-00071         for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++)
-00072         {
-00073                 if (i->channel) {
-00074                         if (!strcasecmp(i->channel,channel))
-00075                         {
-00076                                 return true;
-00077                         }
-00078                 }
-00079         }
-00080         return false;
-00081 }
+
00072 {
+00073         for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++)
+00074         {
+00075                 if (i->channel) {
+00076                         if (!strcasecmp(i->channel,channel))
+00077                         {
+00078                                 return true;
+00079                         }
+00080                 }
+00081         }
+00082         return false;
+00083 }
 
@@ -471,30 +471,30 @@ 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 90 of file users.cpp. +Definition at line 92 of file users.cpp.

References DEBUG, and invites.

-

00091 {
-00092         log(DEBUG,"Removing invites");
-00093         if (channel)
-00094         {
-00095                 if (invites.size())
-00096                 {
-00097                         for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++)
-00098                         {
-00099                                 if (i->channel)
-00100                                 {
-00101                                         if (!strcasecmp(i->channel,channel))
-00102                                         {
-00103                                                 invites.erase(i);
-00104                                                 return;
-00105                                         }
-00106                                 }
-00107                         }
-00108                 }
-00109         }
-00110 }
+
00093 {
+00094         log(DEBUG,"Removing invites");
+00095         if (channel)
+00096         {
+00097                 if (invites.size())
+00098                 {
+00099                         for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++)
+00100                         {
+00101                                 if (i->channel)
+00102                                 {
+00103                                         if (!strcasecmp(i->channel,channel))
+00104                                         {
+00105                                                 invites.erase(i);
+00106                                                 return;
+00107                                         }
+00108                                 }
+00109                         }
+00110                 }
+00111         }
+00112 }
 
@@ -524,7 +524,7 @@ If this string is empty, the user is not marked as away.

Definition at line 132 of file users.h.

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

@@ -550,7 +550,7 @@ Referenced by userrec().

Definition at line 123 of file users.h.

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

@@ -578,7 +578,7 @@ This usually matches the value of u

Definition at line 111 of file users.h.

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

@@ -606,7 +606,7 @@ True when DNS lookups are completed.

Definition at line 160 of file users.h.

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

@@ -634,7 +634,7 @@ Number of lines the user can place into the buffer (up to the global NetBufferSi

Definition at line 143 of file users.h.

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

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

Definition at line 115 of file users.h.

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

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

Definition at line 106 of file users.h.

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

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

Definition at line 95 of file users.h.

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

@@ -746,7 +746,7 @@ This may contain any of the following RFC characters: o, w, s, i Your module may

Definition at line 121 of file users.h.

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

@@ -774,7 +774,7 @@ An invalid nickname indicates an unregistered connection prior to the NICK comma

Definition at line 102 of file users.h.

-Referenced by ConfigReader::DumpErrors(), GetFullHost(), GetFullRealHost(), Server::QuitUser(), and userrec(). +Referenced by ConfigReader::DumpErrors(), GetFullHost(), GetFullRealHost(), Server::QuitUser(), and userrec().

@@ -802,7 +802,7 @@ This is used to check permissions in operclasses, so that we can say 'yay' or 'n

Definition at line 156 of file users.h.

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

@@ -830,7 +830,7 @@ You may use this to increase the speed of use of this class.

Definition at line 137 of file users.h.

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

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

Definition at line 127 of file users.h.

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

@@ -886,12 +886,12 @@ Number of seconds this user is given to send USER/NICK If they do not send their

Definition at line 149 of file users.h.

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


The documentation for this class was generated from the following files: -
Generated on Mon Apr 4 18:12:54 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:27 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/commands_8h-source.html b/docs/module-doc/commands_8h-source.html index c7d69f256..2796b60d8 100644 --- a/docs/module-doc/commands_8h-source.html +++ b/docs/module-doc/commands_8h-source.html @@ -84,37 +84,39 @@ 00079 void handle_qline(char **parameters, int pcnt, userrec *user); 00080 void handle_eline(char **parameters, int pcnt, userrec *user); 00081 void handle_server(char **parameters, int pcnt, userrec *user); -00082 -00085 void handle_link_packet(char* udp_msg, char* tcp_host, serverrec *serv); -00086 void process_restricted_commands(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host,char* ipaddr,int port); -00087 -00090 void handle_amp(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -00091 void handle_dollar(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -00092 void handle_J(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -00093 void handle_R(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -00094 void handle_plus(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -00095 void handle_b(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -00096 void handle_a(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -00097 void handle_F(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -00098 void handle_N(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -00099 void handle_AT(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -00100 void handle_k(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -00101 void handle_n(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -00102 void handle_Q(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -00103 void handle_K(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -00104 void handle_L(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -00105 void handle_m(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -00106 void handle_M(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -00107 void handle_T(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -00108 void handle_t(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -00109 void handle_i(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -00110 void handle_P(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -00111 void handle_V(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -00112 -00115 bool is_uline(const char* server); -00116 -00117 #endif -

Generated on Mon Apr 4 18:12:47 2005 for InspIRCd by +00082 void handle_loadmodule(char **parameters, int pcnt, userrec *user); +00083 void handle_unloadmodule(char **parameters, int pcnt, userrec *user); +00084 +00087 void handle_link_packet(char* udp_msg, char* tcp_host, serverrec *serv); +00088 void process_restricted_commands(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host,char* ipaddr,int port); +00089 +00092 void handle_amp(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00093 void handle_dollar(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00094 void handle_J(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00095 void handle_R(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00096 void handle_plus(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00097 void handle_b(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00098 void handle_a(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00099 void handle_F(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00100 void handle_N(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00101 void handle_AT(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00102 void handle_k(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00103 void handle_n(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00104 void handle_Q(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00105 void handle_K(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00106 void handle_L(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00107 void handle_m(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00108 void handle_M(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00109 void handle_T(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00110 void handle_t(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00111 void handle_i(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00112 void handle_P(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00113 void handle_V(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00114 +00117 bool is_uline(const char* server); +00118 +00119 #endif +

Generated on Thu Apr 7 20:14:20 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/commands_8h.html b/docs/module-doc/commands_8h.html index dbf9eb9f7..09e7aca04 100644 --- a/docs/module-doc/commands_8h.html +++ b/docs/module-doc/commands_8h.html @@ -115,62 +115,66 @@ void handle_server (char **parameters, int pcnt, userrec *user) -void handle_link_packet (char *udp_msg, char *tcp_host, serverrec *serv) +void handle_loadmodule (char **parameters, int pcnt, userrec *user) - Special functions for processing server to server traffic.

-void process_restricted_commands (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host, char *ipaddr, int port) +void handle_unloadmodule (char **parameters, int pcnt, userrec *user) -void handle_amp (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) +void handle_link_packet (char *udp_msg, char *tcp_host, serverrec *serv) - These are the handlers for server commands (tokens).


-void handle_dollar (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) + Special functions for processing server to server traffic.


+void process_restricted_commands (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host, char *ipaddr, int port) -void handle_J (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) +void handle_amp (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) -void handle_R (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) + These are the handlers for server commands (tokens).


+void handle_dollar (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) -void handle_plus (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) +void handle_J (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) -void handle_b (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) +void handle_R (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) -void handle_a (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) +void handle_plus (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) -void handle_F (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) +void handle_b (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) -void handle_N (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) +void handle_a (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) -void handle_AT (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) +void handle_F (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) -void handle_k (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) +void handle_N (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) -void handle_n (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) +void handle_AT (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) -void handle_Q (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) +void handle_k (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) -void handle_K (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) +void handle_n (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) -void handle_L (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) +void handle_Q (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) -void handle_m (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) +void handle_K (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) -void handle_M (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) +void handle_L (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) -void handle_T (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) +void handle_m (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) -void handle_t (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) +void handle_M (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) -void handle_i (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) +void handle_T (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) -void handle_P (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) +void handle_t (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) -void handle_V (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) +void handle_i (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) -bool is_uline (const char *server) +void handle_P (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) - Functions for u:lined servers.


+void handle_V (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) + +bool is_uline (const char *server) + + Functions for u:lined servers.



Function Documentation

-

+

@@ -270,7 +274,7 @@
-

+

@@ -328,7 +332,7 @@ These are the handlers for server commands (tokens).
-

+

@@ -428,7 +432,7 @@ These are the handlers for server commands (tokens).
-

+

@@ -572,7 +576,7 @@ These are the handlers for server commands (tokens).
-

+

@@ -672,7 +676,7 @@ These are the handlers for server commands (tokens).
-

+

@@ -772,7 +776,7 @@ These are the handlers for server commands (tokens).
-

+

@@ -960,7 +964,7 @@ These are the handlers for server commands (tokens).
-

+

@@ -1062,7 +1066,7 @@ These are the handlers for user commands.
-

+

@@ -1118,7 +1122,7 @@ These are the handlers for user commands.
-

+

@@ -1306,7 +1310,7 @@ These are the handlers for user commands.
-

+

@@ -1362,7 +1366,7 @@ These are the handlers for user commands.
-

+

+ +
@@ -1492,6 +1496,50 @@ Special functions for processing server to server traffic. +

+

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
void handle_loadmodule char **  parameters,
int  pcnt,
userrec user
+
+ + + + @@ -1540,7 +1588,7 @@ Special functions for processing server to server traffic.
+   + +

-

+

@@ -1596,7 +1644,7 @@ Special functions for processing server to server traffic.
-

+

@@ -1784,7 +1832,7 @@ Special functions for processing server to server traffic.
-

+

@@ -1840,7 +1888,7 @@ Special functions for processing server to server traffic.
-

+

@@ -2072,7 +2120,7 @@ Special functions for processing server to server traffic.
-

+

@@ -2260,7 +2308,7 @@ Special functions for processing server to server traffic.
-

+

@@ -2404,7 +2452,7 @@ Special functions for processing server to server traffic.
-

+

@@ -2548,7 +2596,7 @@ Special functions for processing server to server traffic.
-

+

@@ -2912,7 +2960,7 @@ Special functions for processing server to server traffic.
-

+

@@ -2968,7 +3016,7 @@ Special functions for processing server to server traffic.
-

+

+ +
@@ -3152,6 +3200,50 @@ Special functions for processing server to server traffic. +

+

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
void handle_unloadmodule char **  parameters,
int  pcnt,
userrec user
+
+ + + + @@ -3288,7 +3380,7 @@ Special functions for processing server to server traffic.
+   + +

-

+

@@ -3564,7 +3656,7 @@ Special functions for processing server to server traffic.
-

+

+Referenced by Server::IsUlined().
@@ -3594,10 +3686,10 @@ Functions for u:lined servers.

-Referenced by Server::IsUlined().

-

+

@@ -3665,7 +3757,7 @@ Referenced by Server::IsUli
-


Generated on Mon Apr 4 18:12:49 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:22 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/connection_8h-source.html b/docs/module-doc/connection_8h-source.html index db4a23d38..529253b4d 100644 --- a/docs/module-doc/connection_8h-source.html +++ b/docs/module-doc/connection_8h-source.html @@ -168,7 +168,7 @@ 00300 00301 #endif 00302 -

Generated on Mon Apr 4 18:12:47 2005 for InspIRCd by +

Generated on Thu Apr 7 20:14:20 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/connection_8h.html b/docs/module-doc/connection_8h.html index 45445700a..5c0e7c65c 100644 --- a/docs/module-doc/connection_8h.html +++ b/docs/module-doc/connection_8h.html @@ -191,7 +191,7 @@ Definition at line 39 Definition at line 36 of file connection.h. -
Generated on Mon Apr 4 18:12:49 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:22 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/ctables_8h-source.html b/docs/module-doc/ctables_8h-source.html index cb44a9bb7..5a494dec2 100644 --- a/docs/module-doc/ctables_8h-source.html +++ b/docs/module-doc/ctables_8h-source.html @@ -37,11 +37,12 @@ 00040 int min_params; 00043 long use_count; 00046 long total_bytes; -00047 }; -00048 -00049 #endif -00050 -

Generated on Mon Apr 4 18:12:47 2005 for InspIRCd by +00049 char source[MAXBUF]; +00050 }; +00051 +00052 #endif +00053 +

Generated on Thu Apr 7 20:14:20 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/ctables_8h.html b/docs/module-doc/ctables_8h.html index f5b54eb9b..dd6873135 100644 --- a/docs/module-doc/ctables_8h.html +++ b/docs/module-doc/ctables_8h.html @@ -17,7 +17,7 @@  A structure that defines a command. More...

-
Generated on Mon Apr 4 18:12:49 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:22 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/dns_8h-source.html b/docs/module-doc/dns_8h-source.html index 1f86c06cd..bdb67706e 100644 --- a/docs/module-doc/dns_8h-source.html +++ b/docs/module-doc/dns_8h-source.html @@ -69,7 +69,7 @@ 00092 }; 00093 00094 #endif -

Generated on Mon Apr 4 18:12:47 2005 for InspIRCd by +

Generated on Thu Apr 7 20:14:20 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/dns_8h.html b/docs/module-doc/dns_8h.html index 601b39633..6ef986b05 100644 --- a/docs/module-doc/dns_8h.html +++ b/docs/module-doc/dns_8h.html @@ -20,7 +20,7 @@ struct  dns_ip4list -
Generated on Mon Apr 4 18:12:49 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:22 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/files.html b/docs/module-doc/files.html index 199cc96e4..7787eb326 100644 --- a/docs/module-doc/files.html +++ b/docs/module-doc/files.html @@ -23,7 +23,7 @@ users.h [code] xline.h [code] -
Generated on Mon Apr 4 18:12:47 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:20 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/functions.html b/docs/module-doc/functions.html index 1bd992f14..b65c317a9 100644 --- a/docs/module-doc/functions.html +++ b/docs/module-doc/functions.html @@ -104,7 +104,8 @@ Here is a list of all class members with links to the classes they belong to:

FileReader
  • FindChannel() : Server
  • FindHost() : connection
  • FindNick() -: Server
  • flags_needed +: Server
  • Flags +: Version
  • flags_needed : command_t
  • flood : userrec, ConnectClass
  • ForwardLookup() : DNS
  • fullname @@ -281,9 +282,9 @@ Here is a list of all class members with links to the classes they belong to:

    Server
  • SendTo() : Server
  • SendToModeMask() : Server
  • SendWallops() -: Server
  • Server() -: Server
  • server -: userrec
  • servername +: Server
  • server +: userrec
  • Server() +: Server
  • servername : ircd_connector
  • serverrec() : serverrec
  • set_by : HostItem
  • set_time @@ -300,7 +301,7 @@ Here is a list of all class members with links to the classes they belong to:

    ircd_connector
  • Shrink() : Extensible
  • signon : connection
  • source -: XLine
  • state +: XLine, command_t
  • state : connection, ircd_connector
  • sync_soon : serverrec

    - t - @@ -344,7 +345,7 @@ Here is a list of all class members with links to the classes they belong to:

    serverrec
  • ~ucrec() : ucrec
  • ~userrec() : userrec -
    Generated on Mon Apr 4 18:12:50 2005 for InspIRCd by +
    Generated on Thu Apr 7 20:14:23 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/functions_func.html b/docs/module-doc/functions_func.html index 5fd0af4b8..4aa12e5c3 100644 --- a/docs/module-doc/functions_func.html +++ b/docs/module-doc/functions_func.html @@ -231,7 +231,7 @@ : serverrec
  • ~ucrec() : ucrec
  • ~userrec() : userrec -
    Generated on Mon Apr 4 18:12:50 2005 for InspIRCd by +
    Generated on Thu Apr 7 20:14:23 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/functions_vars.html b/docs/module-doc/functions_vars.html index 5f0209a6b..cb0115aac 100644 --- a/docs/module-doc/functions_vars.html +++ b/docs/module-doc/functions_vars.html @@ -57,7 +57,8 @@
  • @@ -154,7 +155,7 @@ : XLine, HostItem
  • setby : chanrec
  • signon : connection
  • source -: XLine
  • state +: XLine, command_t
  • state : connection, ircd_connector
  • sync_soon : serverrec

    - t - @@ -178,7 +179,7 @@

    -
    Generated on Mon Apr 4 18:12:50 2005 for InspIRCd by +
    Generated on Thu Apr 7 20:14:23 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/globals.html b/docs/module-doc/globals.html index 341598a04..d5af87be0 100644 --- a/docs/module-doc/globals.html +++ b/docs/module-doc/globals.html @@ -32,79 +32,79 @@ Here is a list of all file members with links to the files they belong to:

    xline.h
  • add_qline() : xline.h
  • add_zline() : xline.h
  • address_cache -: modules.cpp
  • AdminEmail -: modules.cpp, channels.cpp
  • AdminName -: modules.cpp, channels.cpp
  • AdminNick -: modules.cpp, channels.cpp
  • allowed_umode() +: modules.cpp
  • AdminEmail +: modules.cpp, channels.cpp
  • AdminName +: modules.cpp, channels.cpp
  • AdminNick +: modules.cpp, channels.cpp
  • allowed_umode() : mode.h
  • apply_lines() : xline.h
  • auth_cookies -: modules.cpp, channels.cpp +: modules.cpp, channels.cpp

    - b -

    +: modules.cpp, channels.cpp

    - c -

    +: channels.cpp

    - d -

    +: modules.cpp, channels.cpp
  • diepass +: modules.cpp, channels.cpp
  • DieValue +: modules.cpp, channels.cpp
  • DoAddExtendedMode() +: modules.cpp

    - e -

    +: modules.cpp
  • ExtModeListIter +: modules.cpp

    - f -

    +: modules.cpp, channels.cpp
  • fd_reap +: modules.cpp, channels.cpp
  • file_cache +: modules.h
  • FOREACH_MOD +: modules.h
  • FOREACH_RESULT +: modules.h

    - g -

    +: modules.cpp, channels.cpp
  • log_file +: modules.cpp, channels.cpp
  • LogLevel +: modules.cpp, channels.cpp

    - m -

    - n -

    - p -

    +: commands.h

    - q -

    - s -

    - t -

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

      mode.h
    • take_voice() : mode.h
    • TidyBan() : message.h
    • tidystring() -: message.h
    +: message.h
  • TIME +: users.cpp, servers.cpp, modules.cpp, channels.cpp

    - u -

    +: modules.cpp, channels.cpp
  • user_hash +: modules.cpp

    - v -

    - w -

    +: modules.cpp
  • WHOWAS_MAX +: modules.cpp, channels.cpp
  • WHOWAS_STALE +: modules.cpp, channels.cpp

    - z -

    -
    Generated on Mon Apr 4 18:12:54 2005 for InspIRCd by +
    Generated on Thu Apr 7 20:14:27 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/globals_defs.html b/docs/module-doc/globals_defs.html index 6e861d151..9622ea633 100644 --- a/docs/module-doc/globals_defs.html +++ b/docs/module-doc/globals_defs.html @@ -31,10 +31,10 @@
  • CC_ALLOW : users.h
  • CC_DENY : users.h
  • CONF_FILE_NOT_FOUND -: modules.h
  • CONF_NOT_A_NUMBER -: modules.h
  • CONF_NOT_UNSIGNED -: modules.h
  • CONF_VALUE_NOT_FOUND -: modules.h +: modules.h
  • CONF_NOT_A_NUMBER +: modules.h
  • CONF_NOT_UNSIGNED +: modules.h
  • CONF_VALUE_NOT_FOUND +: modules.h

    - d -

    - l -

    +
    Generated on Thu Apr 7 20:14:27 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/globals_func.html b/docs/module-doc/globals_func.html index 77d980b66..5bbe5eeab 100644 --- a/docs/module-doc/globals_func.html +++ b/docs/module-doc/globals_func.html @@ -37,7 +37,7 @@ : message.h
  • cmode() : message.h
  • common_channels() : message.h
  • createcommand() -: modules.h
  • cstatus() +: modules.h
  • cstatus() : message.h

    - d -

    +: modules.cpp

    - e -

    - g -

    - n -

    • NonBlocking() @@ -172,7 +174,7 @@
    • process_modes() : mode.h
    • process_module_umode() : mode.h
    • process_restricted_commands() -: commands.h
    +: commands.h

    - q -

    -
    Generated on Mon Apr 4 18:12:54 2005 for InspIRCd by +
    Generated on Thu Apr 7 20:14:27 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/globals_type.html b/docs/module-doc/globals_type.html index 4f8651a3a..7d5f2a301 100644 --- a/docs/module-doc/globals_type.html +++ b/docs/module-doc/globals_type.html @@ -10,23 +10,23 @@

    -
    Generated on Mon Apr 4 18:12:55 2005 for InspIRCd by +
    Generated on Thu Apr 7 20:14:27 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/globals_vars.html b/docs/module-doc/globals_vars.html index a4764fd01..f3ed933dd 100644 --- a/docs/module-doc/globals_vars.html +++ b/docs/module-doc/globals_vars.html @@ -6,7 +6,7 @@ -
    a | b | c | d | e | f | i | l | m | n | p | r | s | u | w
    +
    a | b | c | d | e | f | i | l | m | n | p | r | s | t | u | w

    @@ -14,94 +14,98 @@

    - a -

    +: modules.cpp, channels.cpp
  • AdminName +: modules.cpp, channels.cpp
  • AdminNick +: modules.cpp, channels.cpp
  • auth_cookies +: modules.cpp, channels.cpp

    - b -

    +: modules.cpp, channels.cpp

    - c -

    +: modules.cpp
  • clientlist +: modules.cpp
  • cmdlist +: modules.cpp
  • config_f +: users.cpp, modules.cpp, channels.cpp
  • custom_mode_params +: channels.cpp

    - d -

    +: modules.cpp, channels.cpp
  • defaultRoute +: modules.cpp, channels.cpp
  • DieDelay +: modules.cpp, channels.cpp
  • diepass +: modules.cpp, channels.cpp
  • DieValue +: modules.cpp, channels.cpp

    - e -

    +: modules.cpp

    - f -

    +: modules.cpp, channels.cpp
  • fd_reap +: modules.cpp, channels.cpp

    - i -

    +: modules.cpp

    - l -

    +: modules.cpp, channels.cpp
  • log_file +: modules.cpp, channels.cpp
  • LogLevel +: modules.cpp, channels.cpp

    - m -

    +: modules.cpp, channels.cpp
  • modules +: modules.cpp, channels.cpp
  • MOTD +: modules.cpp
  • motd +: modules.cpp, channels.cpp

    - n -

    +: modules.cpp, channels.cpp
  • NetBufferSize +: modules.cpp, channels.cpp
  • Network +: modules.cpp, channels.cpp

    - p -

    +: modules.cpp, channels.cpp
  • ports +: modules.cpp, channels.cpp
  • PrefixQuit +: modules.cpp, channels.cpp

    - r -

    +: modules.cpp, channels.cpp
  • rules +: modules.cpp, channels.cpp
  • RULES +: modules.cpp

    - s -

    +: modules.cpp, channels.cpp
  • ServerName +: modules.cpp, channels.cpp
  • startup_time +: modules.cpp, channels.cpp +

    - t - +

    - u -

    +: modules.cpp, channels.cpp

    - w -

    -
    Generated on Mon Apr 4 18:12:54 2005 for InspIRCd by +: modules.cpp
  • WHOWAS_MAX +: modules.cpp, channels.cpp
  • WHOWAS_STALE +: modules.cpp, channels.cpp +
    Generated on Thu Apr 7 20:14:27 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/hierarchy.html b/docs/module-doc/hierarchy.html index 442453cb0..d0e0061f7 100644 --- a/docs/module-doc/hierarchy.html +++ b/docs/module-doc/hierarchy.html @@ -54,7 +54,7 @@
  • nspace::hash< string >
  • StrHashComp -
    Generated on Mon Apr 4 18:12:50 2005 for InspIRCd by +
    Generated on Thu Apr 7 20:14:23 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/main.html b/docs/module-doc/main.html index c94c45c29..384976574 100644 --- a/docs/module-doc/main.html +++ b/docs/module-doc/main.html @@ -7,7 +7,7 @@

    InspIRCd Documentation

    -


    Generated on Mon Apr 4 18:12:47 2005 for InspIRCd by +
    Generated on Thu Apr 7 20:14:20 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/message_8h-source.html b/docs/module-doc/message_8h-source.html index abbd2bd81..9a90fcde4 100644 --- a/docs/module-doc/message_8h-source.html +++ b/docs/module-doc/message_8h-source.html @@ -57,7 +57,7 @@ 00050 void send_network_quit(const char* nick, const char* reason); 00051 00052 #endif -

  • Generated on Mon Apr 4 18:12:47 2005 for InspIRCd by +

    Generated on Thu Apr 7 20:14:20 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/message_8h.html b/docs/module-doc/message_8h.html index d07ea2c5d..09077536a 100644 --- a/docs/module-doc/message_8h.html +++ b/docs/module-doc/message_8h.html @@ -155,7 +155,7 @@

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

    @@ -195,7 +195,7 @@ Referenced by Server::Chang

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

    @@ -331,7 +331,7 @@ Referenced by Server::Chang

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

    @@ -371,7 +371,7 @@ Referenced by Server::ChanM

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

    @@ -449,7 +449,7 @@ Referenced by Server::Commo

    -Referenced by Server::GetUsers(), and Server::IsOnChannel(). +Referenced by Server::GetUsers(), and Server::IsOnChannel().

    @@ -547,7 +547,7 @@ Referenced by Server::GetUs

    -Referenced by Server::GetUsers(), and Server::IsNick(). +Referenced by Server::GetUsers(), and Server::IsNick().

    @@ -674,7 +674,7 @@ Referenced by Server::GetUs

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

    @@ -735,7 +735,7 @@ Referenced by Server::QuitU -


    Generated on Mon Apr 4 18:12:49 2005 for InspIRCd by +
    Generated on Thu Apr 7 20:14:22 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/mode_8h-source.html b/docs/module-doc/mode_8h-source.html index 3a8bbcd18..3752ef460 100644 --- a/docs/module-doc/mode_8h-source.html +++ b/docs/module-doc/mode_8h-source.html @@ -47,13 +47,13 @@ 00040 bool allowed_umode(char umode, char* sourcemodes,bool adding); 00041 bool process_module_umode(char umode, userrec* source, void* dest, bool adding); 00042 void handle_mode(char **parameters, int pcnt, userrec *user); -00043 void server_mode(char **parameters, int pcnt, userrec *user); +00043 void server_mode(char **parameters, int pcnt, userrec *user); 00044 void merge_mode(char **parameters, int pcnt); 00045 void merge_mode2(char **parameters, int pcnt, userrec* user); 00046 00047 00048 #endif -

    Generated on Mon Apr 4 18:12:47 2005 for InspIRCd by +

    Generated on Thu Apr 7 20:14:20 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/mode_8h.html b/docs/module-doc/mode_8h.html index 9b8672283..42b01b489 100644 --- a/docs/module-doc/mode_8h.html +++ b/docs/module-doc/mode_8h.html @@ -788,7 +788,7 @@ -
    Generated on Mon Apr 4 18:12:49 2005 for InspIRCd by +
    Generated on Thu Apr 7 20:14:22 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/modules_8cpp-source.html b/docs/module-doc/modules_8cpp-source.html index 8b4297c73..5079fa4a4 100644 --- a/docs/module-doc/modules_8cpp-source.html +++ b/docs/module-doc/modules_8cpp-source.html @@ -72,716 +72,718 @@ 00065 extern std::vector<Module*> modules; 00066 extern std::vector<ircd_module*> factory; 00067 -00068 extern int LogLevel; -00069 extern char ServerName[MAXBUF]; -00070 extern char Network[MAXBUF]; -00071 extern char ServerDesc[MAXBUF]; -00072 extern char AdminName[MAXBUF]; -00073 extern char AdminEmail[MAXBUF]; -00074 extern char AdminNick[MAXBUF]; -00075 extern char diepass[MAXBUF]; -00076 extern char restartpass[MAXBUF]; -00077 extern char motd[MAXBUF]; -00078 extern char rules[MAXBUF]; -00079 extern char list[MAXBUF]; -00080 extern char PrefixQuit[MAXBUF]; -00081 extern char DieValue[MAXBUF]; -00082 -00083 extern int debugging; -00084 extern int WHOWAS_STALE; -00085 extern int WHOWAS_MAX; -00086 extern int DieDelay; -00087 extern time_t startup_time; -00088 extern int NetBufferSize; -00089 extern int MaxWhoResults; -00090 extern time_t nb_start; -00091 -00092 extern std::vector<int> fd_reap; -00093 extern std::vector<std::string> module_names; -00094 -00095 extern int boundPortCount; -00096 extern int portCount; -00097 extern int UDPportCount; -00098 extern int ports[MAXSOCKS]; -00099 extern int defaultRoute; -00100 -00101 extern std::vector<long> auth_cookies; -00102 extern std::stringstream config_f; -00103 -00104 extern serverrec* me[32]; +00068 extern time_t TIME; +00069 +00070 extern int LogLevel; +00071 extern char ServerName[MAXBUF]; +00072 extern char Network[MAXBUF]; +00073 extern char ServerDesc[MAXBUF]; +00074 extern char AdminName[MAXBUF]; +00075 extern char AdminEmail[MAXBUF]; +00076 extern char AdminNick[MAXBUF]; +00077 extern char diepass[MAXBUF]; +00078 extern char restartpass[MAXBUF]; +00079 extern char motd[MAXBUF]; +00080 extern char rules[MAXBUF]; +00081 extern char list[MAXBUF]; +00082 extern char PrefixQuit[MAXBUF]; +00083 extern char DieValue[MAXBUF]; +00084 +00085 extern int debugging; +00086 extern int WHOWAS_STALE; +00087 extern int WHOWAS_MAX; +00088 extern int DieDelay; +00089 extern time_t startup_time; +00090 extern int NetBufferSize; +00091 extern int MaxWhoResults; +00092 extern time_t nb_start; +00093 +00094 extern std::vector<int> fd_reap; +00095 extern std::vector<std::string> module_names; +00096 +00097 extern int boundPortCount; +00098 extern int portCount; +00099 extern int UDPportCount; +00100 extern int ports[MAXSOCKS]; +00101 extern int defaultRoute; +00102 +00103 extern std::vector<long> auth_cookies; +00104 extern std::stringstream config_f; 00105 -00106 extern FILE *log_file; +00106 extern serverrec* me[32]; 00107 -00108 -00109 namespace nspace -00110 { -00111 #ifdef GCC34 -00112 template<> struct hash<in_addr> -00113 #else -00114 template<> struct nspace::hash<in_addr> -00115 #endif -00116 { -00117 size_t operator()(const struct in_addr &a) const -00118 { -00119 size_t q; -00120 memcpy(&q,&a,sizeof(size_t)); -00121 return q; -00122 } -00123 }; -00124 #ifdef GCC34 -00125 template<> struct hash<string> -00126 #else -00127 template<> struct nspace::hash<string> -00128 #endif -00129 { -00130 size_t operator()(const string &s) const -00131 { -00132 char a[MAXBUF]; -00133 static struct hash<const char *> strhash; -00134 strlcpy(a,s.c_str(),MAXBUF); -00135 strlower(a); -00136 return strhash(a); -00137 } -00138 }; -00139 } -00140 -00141 struct StrHashComp -00142 { -00143 -00144 bool operator()(const string& s1, const string& s2) const -00145 { -00146 char a[MAXBUF],b[MAXBUF]; -00147 strlcpy(a,s1.c_str(),MAXBUF); -00148 strlcpy(b,s2.c_str(),MAXBUF); -00149 return (strcasecmp(a,b) == 0); -00150 } -00151 -00152 }; +00108 extern FILE *log_file; +00109 +00110 +00111 namespace nspace +00112 { +00113 #ifdef GCC34 +00114 template<> struct hash<in_addr> +00115 #else +00116 template<> struct nspace::hash<in_addr> +00117 #endif +00118 { +00119 size_t operator()(const struct in_addr &a) const +00120 { +00121 size_t q; +00122 memcpy(&q,&a,sizeof(size_t)); +00123 return q; +00124 } +00125 }; +00126 #ifdef GCC34 +00127 template<> struct hash<string> +00128 #else +00129 template<> struct nspace::hash<string> +00130 #endif +00131 { +00132 size_t operator()(const string &s) const +00133 { +00134 char a[MAXBUF]; +00135 static struct hash<const char *> strhash; +00136 strlcpy(a,s.c_str(),MAXBUF); +00137 strlower(a); +00138 return strhash(a); +00139 } +00140 }; +00141 } +00142 +00143 struct StrHashComp +00144 { +00145 +00146 bool operator()(const string& s1, const string& s2) const +00147 { +00148 char a[MAXBUF],b[MAXBUF]; +00149 strlcpy(a,s1.c_str(),MAXBUF); +00150 strlcpy(b,s2.c_str(),MAXBUF); +00151 return (strcasecmp(a,b) == 0); +00152 } 00153 -00154 struct InAddr_HashComp -00155 { -00156 -00157 bool operator()(const in_addr &s1, const in_addr &s2) const -00158 { -00159 size_t q; -00160 size_t p; -00161 -00162 memcpy(&q,&s1,sizeof(size_t)); -00163 memcpy(&p,&s2,sizeof(size_t)); -00164 -00165 return (q == p); -00166 } -00167 -00168 }; +00154 }; +00155 +00156 struct InAddr_HashComp +00157 { +00158 +00159 bool operator()(const in_addr &s1, const in_addr &s2) const +00160 { +00161 size_t q; +00162 size_t p; +00163 +00164 memcpy(&q,&s1,sizeof(size_t)); +00165 memcpy(&p,&s2,sizeof(size_t)); +00166 +00167 return (q == p); +00168 } 00169 -00170 -00171 typedef nspace::hash_map<std::string, userrec*, nspace::hash<string>, StrHashComp> user_hash; -00172 typedef nspace::hash_map<std::string, chanrec*, nspace::hash<string>, StrHashComp> chan_hash; -00173 typedef nspace::hash_map<in_addr,string*, nspace::hash<in_addr>, InAddr_HashComp> address_cache; -00174 typedef std::deque<command_t> command_table; -00175 -00176 -00177 extern user_hash clientlist; -00178 extern chan_hash chanlist; -00179 extern user_hash whowas; -00180 extern command_table cmdlist; -00181 extern file_cache MOTD; -00182 extern file_cache RULES; -00183 extern address_cache IP; -00184 -00185 -00186 // class type for holding an extended mode character - internal to core +00170 }; +00171 +00172 +00173 typedef nspace::hash_map<std::string, userrec*, nspace::hash<string>, StrHashComp> user_hash; +00174 typedef nspace::hash_map<std::string, chanrec*, nspace::hash<string>, StrHashComp> chan_hash; +00175 typedef nspace::hash_map<in_addr,string*, nspace::hash<in_addr>, InAddr_HashComp> address_cache; +00176 typedef std::deque<command_t> command_table; +00177 +00178 +00179 extern user_hash clientlist; +00180 extern chan_hash chanlist; +00181 extern user_hash whowas; +00182 extern command_table cmdlist; +00183 extern file_cache MOTD; +00184 extern file_cache RULES; +00185 extern address_cache IP; +00186 00187 -00188 class ExtMode : public classbase -00189 { -00190 public: -00191 char modechar; -00192 int type; -00193 int params_when_on; -00194 int params_when_off; -00195 bool needsoper; -00196 bool list; -00197 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) { }; -00198 }; -00199 -00200 typedef std::vector<ExtMode> ExtModeList; -00201 typedef ExtModeList::iterator ExtModeListIter; -00202 -00203 -00204 ExtModeList EMode; +00188 // class type for holding an extended mode character - internal to core +00189 +00190 class ExtMode : public classbase +00191 { +00192 public: +00193 char modechar; +00194 int type; +00195 int params_when_on; +00196 int params_when_off; +00197 bool needsoper; +00198 bool list; +00199 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) { }; +00200 }; +00201 +00202 typedef std::vector<ExtMode> ExtModeList; +00203 typedef ExtModeList::iterator ExtModeListIter; +00204 00205 -00206 // returns true if an extended mode character is in use -00207 bool ModeDefined(char modechar, int type) -00208 { -00209 log(DEBUG,"Size of extmodes vector is %d",EMode.size()); -00210 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -00211 { -00212 if ((i->modechar == modechar) && (i->type == type)) -00213 { -00214 return true; -00215 } -00216 } -00217 return false; -00218 } -00219 -00220 bool ModeIsListMode(char modechar, int type) -00221 { -00222 log(DEBUG,"Size of extmodes vector is %d",EMode.size()); -00223 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -00224 { -00225 if ((i->modechar == modechar) && (i->type == type) && (i->list == true)) -00226 { -00227 return true; -00228 } -00229 } -00230 return false; -00231 } -00232 -00233 bool ModeDefinedOper(char modechar, int type) -00234 { -00235 log(DEBUG,"Size of extmodes vector is %d",EMode.size()); -00236 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -00237 { -00238 if ((i->modechar == modechar) && (i->type == type) && (i->needsoper == true)) -00239 { -00240 return true; -00241 } -00242 } -00243 return false; -00244 } -00245 -00246 // returns number of parameters for a custom mode when it is switched on -00247 int ModeDefinedOn(char modechar, int type) -00248 { -00249 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -00250 { -00251 if ((i->modechar == modechar) && (i->type == type)) -00252 { -00253 return i->params_when_on; -00254 } -00255 } -00256 return 0; -00257 } -00258 -00259 // returns number of parameters for a custom mode when it is switched on -00260 int ModeDefinedOff(char modechar, int type) -00261 { -00262 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -00263 { -00264 if ((i->modechar == modechar) && (i->type == type)) -00265 { -00266 return i->params_when_off; -00267 } -00268 } -00269 return 0; -00270 } -00271 -00272 // returns true if an extended mode character is in use -00273 bool DoAddExtendedMode(char modechar, int type, bool requires_oper, int params_on, int params_off) -00274 { -00275 if (ModeDefined(modechar,type)) { -00276 return false; -00277 } -00278 EMode.push_back(ExtMode(modechar,type,requires_oper,params_on,params_off)); -00279 return true; -00280 } -00281 -00282 // turns a mode into a listmode -00283 void ModeMakeList(char modechar) -00284 { -00285 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -00286 { -00287 if ((i->modechar == modechar) && (i->type == MT_CHANNEL)) -00288 { -00289 i->list = true; -00290 return; -00291 } -00292 } -00293 return; -00294 } -00295 -00296 // version is a simple class for holding a modules version number +00206 ExtModeList EMode; +00207 +00208 // returns true if an extended mode character is in use +00209 bool ModeDefined(char modechar, int type) +00210 { +00211 log(DEBUG,"Size of extmodes vector is %d",EMode.size()); +00212 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +00213 { +00214 if ((i->modechar == modechar) && (i->type == type)) +00215 { +00216 return true; +00217 } +00218 } +00219 return false; +00220 } +00221 +00222 bool ModeIsListMode(char modechar, int type) +00223 { +00224 log(DEBUG,"Size of extmodes vector is %d",EMode.size()); +00225 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +00226 { +00227 if ((i->modechar == modechar) && (i->type == type) && (i->list == true)) +00228 { +00229 return true; +00230 } +00231 } +00232 return false; +00233 } +00234 +00235 bool ModeDefinedOper(char modechar, int type) +00236 { +00237 log(DEBUG,"Size of extmodes vector is %d",EMode.size()); +00238 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +00239 { +00240 if ((i->modechar == modechar) && (i->type == type) && (i->needsoper == true)) +00241 { +00242 return true; +00243 } +00244 } +00245 return false; +00246 } +00247 +00248 // returns number of parameters for a custom mode when it is switched on +00249 int ModeDefinedOn(char modechar, int type) +00250 { +00251 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +00252 { +00253 if ((i->modechar == modechar) && (i->type == type)) +00254 { +00255 return i->params_when_on; +00256 } +00257 } +00258 return 0; +00259 } +00260 +00261 // returns number of parameters for a custom mode when it is switched on +00262 int ModeDefinedOff(char modechar, int type) +00263 { +00264 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +00265 { +00266 if ((i->modechar == modechar) && (i->type == type)) +00267 { +00268 return i->params_when_off; +00269 } +00270 } +00271 return 0; +00272 } +00273 +00274 // returns true if an extended mode character is in use +00275 bool DoAddExtendedMode(char modechar, int type, bool requires_oper, int params_on, int params_off) +00276 { +00277 if (ModeDefined(modechar,type)) { +00278 return false; +00279 } +00280 EMode.push_back(ExtMode(modechar,type,requires_oper,params_on,params_off)); +00281 return true; +00282 } +00283 +00284 // turns a mode into a listmode +00285 void ModeMakeList(char modechar) +00286 { +00287 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +00288 { +00289 if ((i->modechar == modechar) && (i->type == MT_CHANNEL)) +00290 { +00291 i->list = true; +00292 return; +00293 } +00294 } +00295 return; +00296 } 00297 -00298 Version::Version(int major, int minor, int revision, int build) : Major(major), Minor(minor), Revision(revision), Build(build) { }; +00298 // version is a simple class for holding a modules version number 00299 -00300 // admin is a simple class for holding a server's administrative info +00300 Version::Version(int major, int minor, int revision, int build, int flags) : Major(major), Minor(minor), Revision(revision), Build(build), Flags(flags) { }; 00301 -00302 Admin::Admin(std::string name, std::string email, std::string nick) : Name(name), Email(email), Nick(nick) { }; +00302 // admin is a simple class for holding a server's administrative info 00303 -00304 Module::Module() { } -00305 Module::~Module() { } -00306 void Module::OnUserConnect(userrec* user) { } -00307 void Module::OnUserQuit(userrec* user) { } -00308 void Module::OnUserJoin(userrec* user, chanrec* channel) { } -00309 void Module::OnUserPart(userrec* user, chanrec* channel) { } -00310 void Module::OnPacketTransmit(char *p) { } -00311 void Module::OnPacketReceive(char *p) { } -00312 void Module::OnRehash() { } -00313 void Module::OnServerRaw(std::string &raw, bool inbound, userrec* user) { } -00314 int Module::OnUserPreJoin(userrec* user, chanrec* chan, const char* cname) { return 0; } -00315 int Module::OnExtendedMode(userrec* user, void* target, char modechar, int type, bool mode_on, string_list &params) { return false; } -00316 Version Module::GetVersion() { return Version(1,0,0,0); } -00317 void Module::OnOper(userrec* user) { }; -00318 void Module::OnInfo(userrec* user) { }; -00319 void Module::OnWhois(userrec* source, userrec* dest) { }; -00320 int Module::OnUserPreInvite(userrec* source,userrec* dest,chanrec* channel) { return 0; }; -00321 int Module::OnUserPreMessage(userrec* user,void* dest,int target_type, std::string &text) { return 0; }; -00322 int Module::OnUserPreNotice(userrec* user,void* dest,int target_type, std::string &text) { return 0; }; -00323 int Module::OnUserPreNick(userrec* user, std::string newnick) { return 0; }; -00324 void Module::OnUserPostNick(userrec* user, std::string oldnick) { }; -00325 int Module::OnAccessCheck(userrec* source,userrec* dest,chanrec* channel,int access_type) { return ACR_DEFAULT; }; -00326 string_list Module::OnUserSync(userrec* user) { string_list empty; return empty; } -00327 string_list Module::OnChannelSync(chanrec* chan) { string_list empty; return empty; } -00328 void Module::On005Numeric(std::string &output) { }; -00329 int Module::OnKill(userrec* source, userrec* dest, std::string reason) { return 0; }; -00330 void Module::OnLoadModule(Module* mod,std::string name) { }; -00331 -00332 -00333 // server is a wrapper class that provides methods to all of the C-style -00334 // exports in the core -00335 // -00336 -00337 Server::Server() -00338 { -00339 } -00340 -00341 Server::~Server() -00342 { -00343 } -00344 -00345 void Server::SendOpers(std::string s) -00346 { -00347 WriteOpers("%s",s.c_str()); -00348 } -00349 -00350 bool Server::MatchText(std::string sliteral, std::string spattern) -00351 { -00352 char literal[MAXBUF],pattern[MAXBUF]; -00353 strlcpy(literal,sliteral.c_str(),MAXBUF); -00354 strlcpy(pattern,spattern.c_str(),MAXBUF); -00355 return match(literal,pattern); -00356 } -00357 -00358 void Server::SendToModeMask(std::string modes, int flags, std::string text) -00359 { -00360 WriteMode(modes.c_str(),flags,"%s",text.c_str()); -00361 } -00362 -00363 chanrec* Server::JoinUserToChannel(userrec* user, std::string cname, std::string key) -00364 { -00365 return add_channel(user,cname.c_str(),key.c_str(),true); -00366 } -00367 -00368 chanrec* Server::PartUserFromChannel(userrec* user, std::string cname, std::string reason) -00369 { -00370 return del_channel(user,cname.c_str(),reason.c_str(),false); -00371 } -00372 -00373 chanuserlist Server::GetUsers(chanrec* chan) -00374 { -00375 chanuserlist userl; -00376 userl.clear(); -00377 for (user_hash::const_iterator i = clientlist.begin(); i != clientlist.end(); i++) -00378 { -00379 if (i->second) -00380 { -00381 if (has_channel(i->second,chan)) -00382 { -00383 if (isnick(i->second->nick)) -00384 { -00385 userl.push_back(i->second); -00386 } -00387 } -00388 } -00389 } -00390 return userl; -00391 } -00392 void Server::ChangeUserNick(userrec* user, std::string nickname) -00393 { -00394 force_nickchange(user,nickname.c_str()); -00395 } -00396 -00397 void Server::QuitUser(userrec* user, std::string reason) -00398 { -00399 send_network_quit(user->nick,reason.c_str()); -00400 kill_link(user,reason.c_str()); -00401 } -00402 -00403 bool Server::IsUlined(std::string server) -00404 { -00405 return is_uline(server.c_str()); -00406 } -00407 -00408 void Server::CallCommandHandler(std::string commandname, char** parameters, int pcnt, userrec* user) -00409 { -00410 call_handler(commandname.c_str(),parameters,pcnt,user); -00411 } -00412 -00413 void Server::Log(int level, std::string s) -00414 { -00415 log(level,"%s",s.c_str()); -00416 } -00417 -00418 void Server::AddCommand(char* cmd, handlerfunc f, char flags, int minparams) -00419 { -00420 createcommand(cmd,f,flags,minparams); -00421 } -00422 -00423 void Server::SendMode(char **parameters, int pcnt, userrec *user) -00424 { -00425 server_mode(parameters,pcnt,user); -00426 } -00427 -00428 void Server::Send(int Socket, std::string s) -00429 { -00430 Write(Socket,"%s",s.c_str()); -00431 } -00432 -00433 void Server::SendServ(int Socket, std::string s) -00434 { -00435 WriteServ(Socket,"%s",s.c_str()); -00436 } -00437 -00438 void Server::SendFrom(int Socket, userrec* User, std::string s) -00439 { -00440 WriteFrom(Socket,User,"%s",s.c_str()); -00441 } -00442 -00443 void Server::SendTo(userrec* Source, userrec* Dest, std::string s) -00444 { -00445 if (!Source) -00446 { -00447 // if source is NULL, then the message originates from the local server -00448 Write(Dest->fd,":%s %s",this->GetServerName().c_str(),s.c_str()); -00449 } -00450 else -00451 { -00452 // otherwise it comes from the user specified -00453 WriteTo(Source,Dest,"%s",s.c_str()); -00454 } -00455 } -00456 -00457 void Server::SendChannel(userrec* User, chanrec* Channel, std::string s,bool IncludeSender) -00458 { -00459 if (IncludeSender) -00460 { -00461 WriteChannel(Channel,User,"%s",s.c_str()); -00462 } -00463 else -00464 { -00465 ChanExceptSender(Channel,User,"%s",s.c_str()); -00466 } -00467 } -00468 -00469 bool Server::CommonChannels(userrec* u1, userrec* u2) -00470 { -00471 return (common_channels(u1,u2) != 0); -00472 } -00473 -00474 void Server::SendCommon(userrec* User, std::string text,bool IncludeSender) -00475 { -00476 if (IncludeSender) -00477 { -00478 WriteCommon(User,"%s",text.c_str()); -00479 } -00480 else -00481 { -00482 WriteCommonExcept(User,"%s",text.c_str()); -00483 } -00484 } -00485 -00486 void Server::SendWallops(userrec* User, std::string text) -00487 { -00488 WriteWallOps(User,false,"%s",text.c_str()); -00489 } -00490 -00491 void Server::ChangeHost(userrec* user, std::string host) -00492 { -00493 ChangeDisplayedHost(user,host.c_str()); -00494 } -00495 -00496 void Server::ChangeGECOS(userrec* user, std::string gecos) -00497 { -00498 ChangeName(user,gecos.c_str()); -00499 } -00500 -00501 bool Server::IsNick(std::string nick) -00502 { -00503 return (isnick(nick.c_str()) != 0); -00504 } -00505 -00506 userrec* Server::FindNick(std::string nick) -00507 { -00508 return Find(nick); -00509 } -00510 -00511 chanrec* Server::FindChannel(std::string channel) -00512 { -00513 return FindChan(channel.c_str()); -00514 } -00515 -00516 std::string Server::ChanMode(userrec* User, chanrec* Chan) -00517 { -00518 return cmode(User,Chan); -00519 } -00520 -00521 bool Server::IsOnChannel(userrec* User, chanrec* Chan) -00522 { -00523 return has_channel(User,Chan); -00524 } -00525 -00526 std::string Server::GetServerName() -00527 { -00528 return getservername(); -00529 } -00530 -00531 std::string Server::GetNetworkName() -00532 { -00533 return getnetworkname(); -00534 } -00535 -00536 Admin Server::GetAdmin() -00537 { -00538 return Admin(getadminname(),getadminemail(),getadminnick()); -00539 } -00540 -00541 +00304 Admin::Admin(std::string name, std::string email, std::string nick) : Name(name), Email(email), Nick(nick) { }; +00305 +00306 Module::Module() { } +00307 Module::~Module() { } +00308 void Module::OnUserConnect(userrec* user) { } +00309 void Module::OnUserQuit(userrec* user) { } +00310 void Module::OnUserJoin(userrec* user, chanrec* channel) { } +00311 void Module::OnUserPart(userrec* user, chanrec* channel) { } +00312 void Module::OnPacketTransmit(char *p) { } +00313 void Module::OnPacketReceive(char *p) { } +00314 void Module::OnRehash() { } +00315 void Module::OnServerRaw(std::string &raw, bool inbound, userrec* user) { } +00316 int Module::OnUserPreJoin(userrec* user, chanrec* chan, const char* cname) { return 0; } +00317 int Module::OnExtendedMode(userrec* user, void* target, char modechar, int type, bool mode_on, string_list &params) { return false; } +00318 Version Module::GetVersion() { return Version(1,0,0,0,VF_VENDOR); } +00319 void Module::OnOper(userrec* user) { }; +00320 void Module::OnInfo(userrec* user) { }; +00321 void Module::OnWhois(userrec* source, userrec* dest) { }; +00322 int Module::OnUserPreInvite(userrec* source,userrec* dest,chanrec* channel) { return 0; }; +00323 int Module::OnUserPreMessage(userrec* user,void* dest,int target_type, std::string &text) { return 0; }; +00324 int Module::OnUserPreNotice(userrec* user,void* dest,int target_type, std::string &text) { return 0; }; +00325 int Module::OnUserPreNick(userrec* user, std::string newnick) { return 0; }; +00326 void Module::OnUserPostNick(userrec* user, std::string oldnick) { }; +00327 int Module::OnAccessCheck(userrec* source,userrec* dest,chanrec* channel,int access_type) { return ACR_DEFAULT; }; +00328 string_list Module::OnUserSync(userrec* user) { string_list empty; return empty; } +00329 string_list Module::OnChannelSync(chanrec* chan) { string_list empty; return empty; } +00330 void Module::On005Numeric(std::string &output) { }; +00331 int Module::OnKill(userrec* source, userrec* dest, std::string reason) { return 0; }; +00332 void Module::OnLoadModule(Module* mod,std::string name) { }; +00333 +00334 +00335 // server is a wrapper class that provides methods to all of the C-style +00336 // exports in the core +00337 // +00338 +00339 Server::Server() +00340 { +00341 } +00342 +00343 Server::~Server() +00344 { +00345 } +00346 +00347 void Server::SendOpers(std::string s) +00348 { +00349 WriteOpers("%s",s.c_str()); +00350 } +00351 +00352 bool Server::MatchText(std::string sliteral, std::string spattern) +00353 { +00354 char literal[MAXBUF],pattern[MAXBUF]; +00355 strlcpy(literal,sliteral.c_str(),MAXBUF); +00356 strlcpy(pattern,spattern.c_str(),MAXBUF); +00357 return match(literal,pattern); +00358 } +00359 +00360 void Server::SendToModeMask(std::string modes, int flags, std::string text) +00361 { +00362 WriteMode(modes.c_str(),flags,"%s",text.c_str()); +00363 } +00364 +00365 chanrec* Server::JoinUserToChannel(userrec* user, std::string cname, std::string key) +00366 { +00367 return add_channel(user,cname.c_str(),key.c_str(),true); +00368 } +00369 +00370 chanrec* Server::PartUserFromChannel(userrec* user, std::string cname, std::string reason) +00371 { +00372 return del_channel(user,cname.c_str(),reason.c_str(),false); +00373 } +00374 +00375 chanuserlist Server::GetUsers(chanrec* chan) +00376 { +00377 chanuserlist userl; +00378 userl.clear(); +00379 for (user_hash::const_iterator i = clientlist.begin(); i != clientlist.end(); i++) +00380 { +00381 if (i->second) +00382 { +00383 if (has_channel(i->second,chan)) +00384 { +00385 if (isnick(i->second->nick)) +00386 { +00387 userl.push_back(i->second); +00388 } +00389 } +00390 } +00391 } +00392 return userl; +00393 } +00394 void Server::ChangeUserNick(userrec* user, std::string nickname) +00395 { +00396 force_nickchange(user,nickname.c_str()); +00397 } +00398 +00399 void Server::QuitUser(userrec* user, std::string reason) +00400 { +00401 send_network_quit(user->nick,reason.c_str()); +00402 kill_link(user,reason.c_str()); +00403 } +00404 +00405 bool Server::IsUlined(std::string server) +00406 { +00407 return is_uline(server.c_str()); +00408 } +00409 +00410 void Server::CallCommandHandler(std::string commandname, char** parameters, int pcnt, userrec* user) +00411 { +00412 call_handler(commandname.c_str(),parameters,pcnt,user); +00413 } +00414 +00415 void Server::Log(int level, std::string s) +00416 { +00417 log(level,"%s",s.c_str()); +00418 } +00419 +00420 void Server::AddCommand(char* cmd, handlerfunc f, char flags, int minparams, char* source) +00421 { +00422 createcommand(cmd,f,flags,minparams,source); +00423 } +00424 +00425 void Server::SendMode(char **parameters, int pcnt, userrec *user) +00426 { +00427 server_mode(parameters,pcnt,user); +00428 } +00429 +00430 void Server::Send(int Socket, std::string s) +00431 { +00432 Write(Socket,"%s",s.c_str()); +00433 } +00434 +00435 void Server::SendServ(int Socket, std::string s) +00436 { +00437 WriteServ(Socket,"%s",s.c_str()); +00438 } +00439 +00440 void Server::SendFrom(int Socket, userrec* User, std::string s) +00441 { +00442 WriteFrom(Socket,User,"%s",s.c_str()); +00443 } +00444 +00445 void Server::SendTo(userrec* Source, userrec* Dest, std::string s) +00446 { +00447 if (!Source) +00448 { +00449 // if source is NULL, then the message originates from the local server +00450 Write(Dest->fd,":%s %s",this->GetServerName().c_str(),s.c_str()); +00451 } +00452 else +00453 { +00454 // otherwise it comes from the user specified +00455 WriteTo(Source,Dest,"%s",s.c_str()); +00456 } +00457 } +00458 +00459 void Server::SendChannel(userrec* User, chanrec* Channel, std::string s,bool IncludeSender) +00460 { +00461 if (IncludeSender) +00462 { +00463 WriteChannel(Channel,User,"%s",s.c_str()); +00464 } +00465 else +00466 { +00467 ChanExceptSender(Channel,User,"%s",s.c_str()); +00468 } +00469 } +00470 +00471 bool Server::CommonChannels(userrec* u1, userrec* u2) +00472 { +00473 return (common_channels(u1,u2) != 0); +00474 } +00475 +00476 void Server::SendCommon(userrec* User, std::string text,bool IncludeSender) +00477 { +00478 if (IncludeSender) +00479 { +00480 WriteCommon(User,"%s",text.c_str()); +00481 } +00482 else +00483 { +00484 WriteCommonExcept(User,"%s",text.c_str()); +00485 } +00486 } +00487 +00488 void Server::SendWallops(userrec* User, std::string text) +00489 { +00490 WriteWallOps(User,false,"%s",text.c_str()); +00491 } +00492 +00493 void Server::ChangeHost(userrec* user, std::string host) +00494 { +00495 ChangeDisplayedHost(user,host.c_str()); +00496 } +00497 +00498 void Server::ChangeGECOS(userrec* user, std::string gecos) +00499 { +00500 ChangeName(user,gecos.c_str()); +00501 } +00502 +00503 bool Server::IsNick(std::string nick) +00504 { +00505 return (isnick(nick.c_str()) != 0); +00506 } +00507 +00508 userrec* Server::FindNick(std::string nick) +00509 { +00510 return Find(nick); +00511 } +00512 +00513 chanrec* Server::FindChannel(std::string channel) +00514 { +00515 return FindChan(channel.c_str()); +00516 } +00517 +00518 std::string Server::ChanMode(userrec* User, chanrec* Chan) +00519 { +00520 return cmode(User,Chan); +00521 } +00522 +00523 bool Server::IsOnChannel(userrec* User, chanrec* Chan) +00524 { +00525 return has_channel(User,Chan); +00526 } +00527 +00528 std::string Server::GetServerName() +00529 { +00530 return getservername(); +00531 } +00532 +00533 std::string Server::GetNetworkName() +00534 { +00535 return getnetworkname(); +00536 } +00537 +00538 Admin Server::GetAdmin() +00539 { +00540 return Admin(getadminname(),getadminemail(),getadminnick()); +00541 } 00542 -00543 bool Server::AddExtendedMode(char modechar, int type, bool requires_oper, int params_when_on, int params_when_off) -00544 { -00545 if (type == MT_SERVER) -00546 { -00547 log(DEBUG,"*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion"); -00548 return false; -00549 } -00550 if (((params_when_on>0) || (params_when_off>0)) && (type == MT_CLIENT)) -00551 { -00552 log(DEBUG,"*** API ERROR *** Parameters on MT_CLIENT modes are not supported"); -00553 return false; -00554 } -00555 if ((params_when_on>1) || (params_when_off>1)) -00556 { -00557 log(DEBUG,"*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported"); -00558 return false; -00559 } -00560 return DoAddExtendedMode(modechar,type,requires_oper,params_when_on,params_when_off); -00561 } -00562 -00563 bool Server::AddExtendedListMode(char modechar) -00564 { -00565 bool res = DoAddExtendedMode(modechar,MT_CHANNEL,false,1,1); -00566 if (res) -00567 ModeMakeList(modechar); -00568 return res; -00569 } -00570 -00571 int Server::CountUsers(chanrec* c) -00572 { -00573 return usercount(c); -00574 } -00575 -00576 -00577 ConfigReader::ConfigReader() -00578 { -00579 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); -00580 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); -00581 this->readerror = LoadConf(CONFIG_FILE,this->cache,this->errorlog); -00582 if (!this->readerror) -00583 this->error = CONF_FILE_NOT_FOUND; -00584 } -00585 -00586 -00587 ConfigReader::~ConfigReader() -00588 { -00589 if (this->cache) -00590 delete this->cache; -00591 if (this->errorlog) -00592 delete this->errorlog; -00593 } -00594 -00595 -00596 ConfigReader::ConfigReader(std::string filename) -00597 { -00598 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); -00599 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); -00600 this->readerror = LoadConf(filename.c_str(),this->cache,this->errorlog); -00601 if (!this->readerror) -00602 this->error = CONF_FILE_NOT_FOUND; -00603 }; -00604 -00605 std::string ConfigReader::ReadValue(std::string tag, std::string name, int index) -00606 { -00607 char val[MAXBUF]; -00608 char t[MAXBUF]; -00609 char n[MAXBUF]; -00610 strlcpy(t,tag.c_str(),MAXBUF); -00611 strlcpy(n,name.c_str(),MAXBUF); -00612 int res = ReadConf(cache,t,n,index,val); -00613 if (!res) -00614 { -00615 this->error = CONF_VALUE_NOT_FOUND; -00616 return ""; -00617 } -00618 return std::string(val); -00619 } -00620 -00621 bool ConfigReader::ReadFlag(std::string tag, std::string name, int index) -00622 { -00623 char val[MAXBUF]; -00624 char t[MAXBUF]; -00625 char n[MAXBUF]; -00626 strlcpy(t,tag.c_str(),MAXBUF); -00627 strlcpy(n,name.c_str(),MAXBUF); -00628 int res = ReadConf(cache,t,n,index,val); -00629 if (!res) -00630 { -00631 this->error = CONF_VALUE_NOT_FOUND; -00632 return false; -00633 } -00634 std::string s = val; -00635 return ((s == "yes") || (s == "YES") || (s == "true") || (s == "TRUE") || (s == "1")); -00636 } -00637 -00638 long ConfigReader::ReadInteger(std::string tag, std::string name, int index, bool needs_unsigned) -00639 { -00640 char val[MAXBUF]; -00641 char t[MAXBUF]; -00642 char n[MAXBUF]; -00643 strlcpy(t,tag.c_str(),MAXBUF); -00644 strlcpy(n,name.c_str(),MAXBUF); -00645 int res = ReadConf(cache,t,n,index,val); -00646 if (!res) -00647 { -00648 this->error = CONF_VALUE_NOT_FOUND; -00649 return 0; -00650 } -00651 for (int i = 0; i < strlen(val); i++) -00652 { -00653 if (!isdigit(val[i])) -00654 { -00655 this->error = CONF_NOT_A_NUMBER; -00656 return 0; -00657 } -00658 } -00659 if ((needs_unsigned) && (atoi(val)<0)) -00660 { -00661 this->error = CONF_NOT_UNSIGNED; -00662 return 0; -00663 } -00664 return atoi(val); -00665 } -00666 -00667 long ConfigReader::GetError() -00668 { -00669 long olderr = this->error; -00670 this->error = 0; -00671 return olderr; -00672 } -00673 -00674 void ConfigReader::DumpErrors(bool bail, userrec* user) -00675 { -00676 if (bail) -00677 { -00678 printf("There were errors in your configuration:\n%s",errorlog->str().c_str()); -00679 exit(0); -00680 } -00681 else -00682 { -00683 char dataline[1024]; -00684 if (user) -00685 { -00686 WriteServ(user->fd,"NOTICE %s :There were errors in the configuration file:",user->nick); -00687 while (!errorlog->eof()) -00688 { -00689 errorlog->getline(dataline,1024); -00690 WriteServ(user->fd,"NOTICE %s :%s",user->nick,dataline); -00691 } -00692 } -00693 else -00694 { -00695 WriteOpers("There were errors in the configuration file:",user->nick); -00696 while (!errorlog->eof()) -00697 { -00698 errorlog->getline(dataline,1024); -00699 WriteOpers(dataline); -00700 } -00701 } -00702 return; -00703 } -00704 } -00705 -00706 -00707 int ConfigReader::Enumerate(std::string tag) -00708 { -00709 return EnumConf(cache,tag.c_str()); -00710 } -00711 -00712 int ConfigReader::EnumerateValues(std::string tag, int index) -00713 { -00714 return EnumValues(cache, tag.c_str(), index); -00715 } -00716 -00717 bool ConfigReader::Verify() -00718 { -00719 return this->readerror; -00720 } -00721 -00722 -00723 FileReader::FileReader(std::string filename) -00724 { -00725 file_cache c; -00726 readfile(c,filename.c_str()); -00727 this->fc = c; -00728 } -00729 -00730 FileReader::FileReader() -00731 { -00732 } -00733 -00734 void FileReader::LoadFile(std::string filename) -00735 { -00736 file_cache c; -00737 readfile(c,filename.c_str()); -00738 this->fc = c; -00739 } -00740 -00741 -00742 FileReader::~FileReader() -00743 { -00744 } -00745 -00746 bool FileReader::Exists() -00747 { -00748 if (fc.size() == 0) -00749 { -00750 return(false); -00751 } -00752 else -00753 { -00754 return(true); -00755 } -00756 } -00757 -00758 std::string FileReader::GetLine(int x) -00759 { -00760 if ((x<0) || (x>fc.size())) -00761 return ""; -00762 return fc[x]; -00763 } -00764 -00765 int FileReader::FileSize() -00766 { -00767 return fc.size(); -00768 } -00769 -00770 -00771 std::vector<Module*> modules(255); -00772 std::vector<ircd_module*> factory(255); -00773 -00774 int MODCOUNT = -1; +00543 +00544 +00545 bool Server::AddExtendedMode(char modechar, int type, bool requires_oper, int params_when_on, int params_when_off) +00546 { +00547 if (type == MT_SERVER) +00548 { +00549 log(DEBUG,"*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion"); +00550 return false; +00551 } +00552 if (((params_when_on>0) || (params_when_off>0)) && (type == MT_CLIENT)) +00553 { +00554 log(DEBUG,"*** API ERROR *** Parameters on MT_CLIENT modes are not supported"); +00555 return false; +00556 } +00557 if ((params_when_on>1) || (params_when_off>1)) +00558 { +00559 log(DEBUG,"*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported"); +00560 return false; +00561 } +00562 return DoAddExtendedMode(modechar,type,requires_oper,params_when_on,params_when_off); +00563 } +00564 +00565 bool Server::AddExtendedListMode(char modechar) +00566 { +00567 bool res = DoAddExtendedMode(modechar,MT_CHANNEL,false,1,1); +00568 if (res) +00569 ModeMakeList(modechar); +00570 return res; +00571 } +00572 +00573 int Server::CountUsers(chanrec* c) +00574 { +00575 return usercount(c); +00576 } +00577 +00578 +00579 ConfigReader::ConfigReader() +00580 { +00581 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); +00582 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); +00583 this->readerror = LoadConf(CONFIG_FILE,this->cache,this->errorlog); +00584 if (!this->readerror) +00585 this->error = CONF_FILE_NOT_FOUND; +00586 } +00587 +00588 +00589 ConfigReader::~ConfigReader() +00590 { +00591 if (this->cache) +00592 delete this->cache; +00593 if (this->errorlog) +00594 delete this->errorlog; +00595 } +00596 +00597 +00598 ConfigReader::ConfigReader(std::string filename) +00599 { +00600 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); +00601 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); +00602 this->readerror = LoadConf(filename.c_str(),this->cache,this->errorlog); +00603 if (!this->readerror) +00604 this->error = CONF_FILE_NOT_FOUND; +00605 }; +00606 +00607 std::string ConfigReader::ReadValue(std::string tag, std::string name, int index) +00608 { +00609 char val[MAXBUF]; +00610 char t[MAXBUF]; +00611 char n[MAXBUF]; +00612 strlcpy(t,tag.c_str(),MAXBUF); +00613 strlcpy(n,name.c_str(),MAXBUF); +00614 int res = ReadConf(cache,t,n,index,val); +00615 if (!res) +00616 { +00617 this->error = CONF_VALUE_NOT_FOUND; +00618 return ""; +00619 } +00620 return std::string(val); +00621 } +00622 +00623 bool ConfigReader::ReadFlag(std::string tag, std::string name, int index) +00624 { +00625 char val[MAXBUF]; +00626 char t[MAXBUF]; +00627 char n[MAXBUF]; +00628 strlcpy(t,tag.c_str(),MAXBUF); +00629 strlcpy(n,name.c_str(),MAXBUF); +00630 int res = ReadConf(cache,t,n,index,val); +00631 if (!res) +00632 { +00633 this->error = CONF_VALUE_NOT_FOUND; +00634 return false; +00635 } +00636 std::string s = val; +00637 return ((s == "yes") || (s == "YES") || (s == "true") || (s == "TRUE") || (s == "1")); +00638 } +00639 +00640 long ConfigReader::ReadInteger(std::string tag, std::string name, int index, bool needs_unsigned) +00641 { +00642 char val[MAXBUF]; +00643 char t[MAXBUF]; +00644 char n[MAXBUF]; +00645 strlcpy(t,tag.c_str(),MAXBUF); +00646 strlcpy(n,name.c_str(),MAXBUF); +00647 int res = ReadConf(cache,t,n,index,val); +00648 if (!res) +00649 { +00650 this->error = CONF_VALUE_NOT_FOUND; +00651 return 0; +00652 } +00653 for (int i = 0; i < strlen(val); i++) +00654 { +00655 if (!isdigit(val[i])) +00656 { +00657 this->error = CONF_NOT_A_NUMBER; +00658 return 0; +00659 } +00660 } +00661 if ((needs_unsigned) && (atoi(val)<0)) +00662 { +00663 this->error = CONF_NOT_UNSIGNED; +00664 return 0; +00665 } +00666 return atoi(val); +00667 } +00668 +00669 long ConfigReader::GetError() +00670 { +00671 long olderr = this->error; +00672 this->error = 0; +00673 return olderr; +00674 } +00675 +00676 void ConfigReader::DumpErrors(bool bail, userrec* user) +00677 { +00678 if (bail) +00679 { +00680 printf("There were errors in your configuration:\n%s",errorlog->str().c_str()); +00681 exit(0); +00682 } +00683 else +00684 { +00685 char dataline[1024]; +00686 if (user) +00687 { +00688 WriteServ(user->fd,"NOTICE %s :There were errors in the configuration file:",user->nick); +00689 while (!errorlog->eof()) +00690 { +00691 errorlog->getline(dataline,1024); +00692 WriteServ(user->fd,"NOTICE %s :%s",user->nick,dataline); +00693 } +00694 } +00695 else +00696 { +00697 WriteOpers("There were errors in the configuration file:",user->nick); +00698 while (!errorlog->eof()) +00699 { +00700 errorlog->getline(dataline,1024); +00701 WriteOpers(dataline); +00702 } +00703 } +00704 return; +00705 } +00706 } +00707 +00708 +00709 int ConfigReader::Enumerate(std::string tag) +00710 { +00711 return EnumConf(cache,tag.c_str()); +00712 } +00713 +00714 int ConfigReader::EnumerateValues(std::string tag, int index) +00715 { +00716 return EnumValues(cache, tag.c_str(), index); +00717 } +00718 +00719 bool ConfigReader::Verify() +00720 { +00721 return this->readerror; +00722 } +00723 +00724 +00725 FileReader::FileReader(std::string filename) +00726 { +00727 file_cache c; +00728 readfile(c,filename.c_str()); +00729 this->fc = c; +00730 } +00731 +00732 FileReader::FileReader() +00733 { +00734 } +00735 +00736 void FileReader::LoadFile(std::string filename) +00737 { +00738 file_cache c; +00739 readfile(c,filename.c_str()); +00740 this->fc = c; +00741 } +00742 +00743 +00744 FileReader::~FileReader() +00745 { +00746 } +00747 +00748 bool FileReader::Exists() +00749 { +00750 if (fc.size() == 0) +00751 { +00752 return(false); +00753 } +00754 else +00755 { +00756 return(true); +00757 } +00758 } +00759 +00760 std::string FileReader::GetLine(int x) +00761 { +00762 if ((x<0) || (x>fc.size())) +00763 return ""; +00764 return fc[x]; +00765 } +00766 +00767 int FileReader::FileSize() +00768 { +00769 return fc.size(); +00770 } +00771 +00772 +00773 std::vector<Module*> modules(255); +00774 std::vector<ircd_module*> factory(255); 00775 -00776 -

    Generated on Mon Apr 4 18:12:48 2005 for InspIRCd by +00776 int MODCOUNT = -1; +00777 +00778 +

    Generated on Thu Apr 7 20:14:21 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/modules_8cpp.html b/docs/module-doc/modules_8cpp.html index 1d49c4368..1874e8024 100644 --- a/docs/module-doc/modules_8cpp.html +++ b/docs/module-doc/modules_8cpp.html @@ -57,129 +57,131 @@

    Typedefs

    typedef nspace::hash_map<
    std::string, userrec *, nspace::hash<
    - string >, StrHashCompuser_hash + string >, StrHashCompuser_hash typedef nspace::hash_map<
    std::string, chanrec *, nspace::hash<
    - string >, StrHashCompchan_hash + string >, StrHashCompchan_hash typedef nspace::hash_map<
    in_addr, string *, nspace::hash<
    - in_addr >, InAddr_HashCompaddress_cache + in_addr >, InAddr_HashCompaddress_cache -typedef std::deque< command_tcommand_table +typedef std::deque< command_tcommand_table -typedef std::vector< ExtModeExtModeList +typedef std::vector< ExtModeExtModeList -typedef ExtModeList::iterator ExtModeListIter +typedef ExtModeList::iterator ExtModeListIter

    Functions

    -bool ModeDefined (char modechar, int type) +bool ModeDefined (char modechar, int type) -bool ModeIsListMode (char modechar, int type) +bool ModeIsListMode (char modechar, int type) -bool ModeDefinedOper (char modechar, int type) +bool ModeDefinedOper (char modechar, int type) -int ModeDefinedOn (char modechar, int type) +int ModeDefinedOn (char modechar, int type) -int ModeDefinedOff (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) +bool DoAddExtendedMode (char modechar, int type, bool requires_oper, int params_on, int params_off) -void ModeMakeList (char modechar) +void ModeMakeList (char modechar) -std::vector< Module * > modules (255) +std::vector< Module * > modules (255) -std::vector< ircd_module * > factory (255) +std::vector< ircd_module * > factory (255)

    Variables

    int MODCOUNT = -1 std::vector< Module * > modules -std::vector< ircd_module * > factory +std::vector< ircd_module * > factory -int LogLevel +time_t TIME -char ServerName [MAXBUF] +int LogLevel -char Network [MAXBUF] +char ServerName [MAXBUF] -char ServerDesc [MAXBUF] +char Network [MAXBUF] -char AdminName [MAXBUF] +char ServerDesc [MAXBUF] -char AdminEmail [MAXBUF] +char AdminName [MAXBUF] -char AdminNick [MAXBUF] +char AdminEmail [MAXBUF] -char diepass [MAXBUF] +char AdminNick [MAXBUF] -char restartpass [MAXBUF] +char diepass [MAXBUF] -char motd [MAXBUF] +char restartpass [MAXBUF] -char rules [MAXBUF] +char motd [MAXBUF] -char list [MAXBUF] +char rules [MAXBUF] -char PrefixQuit [MAXBUF] +char list [MAXBUF] -char DieValue [MAXBUF] +char PrefixQuit [MAXBUF] -int debugging +char DieValue [MAXBUF] -int WHOWAS_STALE +int debugging -int WHOWAS_MAX +int WHOWAS_STALE -int DieDelay +int WHOWAS_MAX -time_t startup_time +int DieDelay -int NetBufferSize +time_t startup_time -int MaxWhoResults +int NetBufferSize -time_t nb_start +int MaxWhoResults -std::vector< int > fd_reap +time_t nb_start -std::vector< std::string > module_names +std::vector< int > fd_reap -int boundPortCount +std::vector< std::string > module_names -int portCount +int boundPortCount -int UDPportCount +int portCount -int ports [MAXSOCKS] +int UDPportCount -int defaultRoute +int ports [MAXSOCKS] -std::vector< long > auth_cookies +int defaultRoute -std::stringstream config_f +std::vector< long > auth_cookies -serverrecme [32] +std::stringstream config_f -FILE * log_file +serverrecme [32] -user_hash clientlist +FILE * log_file -chan_hash chanlist +user_hash clientlist -user_hash whowas +chan_hash chanlist -command_table cmdlist +user_hash whowas -file_cache MOTD +command_table cmdlist -file_cache RULES +file_cache MOTD -address_cache IP +file_cache RULES -ExtModeList EMode +address_cache IP + +ExtModeList EMode

    Define Documentation

    @@ -208,13 +210,13 @@ Definition at line 59 o

    Typedef Documentation

    -

    +

    @@ -229,16 +231,16 @@ Definition at line 59 o

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

    -
    typedef nspace::hash_map<in_addr,string*, nspace::hash<in_addr>, InAddr_HashComp> address_cache + typedef nspace::hash_map<in_addr,string*, nspace::hash<in_addr>, InAddr_HashComp> address_cache
    -

    +

    @@ -253,16 +255,16 @@ Definition at line 173

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

    -
    typedef nspace::hash_map<std::string, chanrec*, nspace::hash<string>, StrHashComp> chan_hash + typedef nspace::hash_map<std::string, chanrec*, nspace::hash<string>, StrHashComp> chan_hash
    -

    +

    @@ -277,16 +279,16 @@ Definition at line 172

    -Definition at line 174 of file modules.cpp. +Definition at line 176 of file modules.cpp.

    -
    typedef std::deque<command_t> command_table + typedef std::deque<command_t> command_table
    -

    +

    @@ -301,16 +303,16 @@ Definition at line 174

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

    -
    typedef std::vector<ExtMode> ExtModeList + typedef std::vector<ExtMode> ExtModeList
    -

    +

    @@ -325,18 +327,18 @@ Definition at line 200

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

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

    -
    typedef ExtModeList::iterator ExtModeListIter + typedef ExtModeList::iterator ExtModeListIter
    -

    +

    @@ -351,11 +353,11 @@ Referenced by ModeDefined()

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

    -
    typedef nspace::hash_map<std::string, userrec*, nspace::hash<string>, StrHashComp> user_hash + typedef nspace::hash_map<std::string, userrec*, nspace::hash<string>, StrHashComp> user_hash


    Function Documentation

    -

    +

    @@ -410,29 +412,29 @@ Definition at line 171

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

    -References EMode, and ModeDefined(). +References EMode, and ModeDefined().

    -Referenced by Server::AddExtendedListMode(), and Server::AddExtendedMode(). +Referenced by Server::AddExtendedListMode(), and Server::AddExtendedMode().

    -

    00274 {
    -00275         if (ModeDefined(modechar,type)) {
    -00276                 return false;
    -00277         }
    -00278         EMode.push_back(ExtMode(modechar,type,requires_oper,params_on,params_off));
    -00279         return true;
    -00280 }
    +
    00276 {
    +00277         if (ModeDefined(modechar,type)) {
    +00278                 return false;
    +00279         }
    +00280         EMode.push_back(ExtMode(modechar,type,requires_oper,params_on,params_off));
    +00281         return true;
    +00282 }
     
    -

    +

    @@ -1196,13 +1198,13 @@ Referenced by DoAddExtended Definition at line 66 of file modules.cpp.
    - + @@ -455,7 +457,7 @@ Referenced by Server::AddEx
    std::vector<ircd_module*> factory std::vector<ircd_module*> factory 255 
    -

    +

    @@ -492,27 +494,27 @@ Referenced by Server::AddEx

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

    -References DEBUG, EMode, and ExtModeListIter. +References DEBUG, EMode, and ExtModeListIter.

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

    -

    00208 {
    -00209         log(DEBUG,"Size of extmodes vector is %d",EMode.size());
    -00210         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    -00211         {
    -00212                 if ((i->modechar == modechar) && (i->type == type))
    -00213                 {
    -00214                         return true;
    -00215                 }
    -00216         }
    -00217         return false;
    -00218 }
    +
    00210 {
    +00211         log(DEBUG,"Size of extmodes vector is %d",EMode.size());
    +00212         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    +00213         {
    +00214                 if ((i->modechar == modechar) && (i->type == type))
    +00215                 {
    +00216                         return true;
    +00217                 }
    +00218         }
    +00219         return false;
    +00220 }
     
    -

    +

    @@ -549,24 +551,24 @@ Referenced by DoAddExtended

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

    -References EMode, and ExtModeListIter. +References EMode, and ExtModeListIter.

    -

    00261 {
    -00262         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    -00263         {
    -00264                 if ((i->modechar == modechar) && (i->type == type))
    -00265                 {
    -00266                         return i->params_when_off;
    -00267                 }
    -00268         }
    -00269         return 0;
    -00270 }
    +
    00263 {
    +00264         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    +00265         {
    +00266                 if ((i->modechar == modechar) && (i->type == type))
    +00267                 {
    +00268                         return i->params_when_off;
    +00269                 }
    +00270         }
    +00271         return 0;
    +00272 }
     
    -

    +

    @@ -603,24 +605,24 @@ References EMode, and <

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

    -References EMode, and ExtModeListIter. +References EMode, and ExtModeListIter.

    -

    00248 {
    -00249         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    -00250         {
    -00251                 if ((i->modechar == modechar) && (i->type == type))
    -00252                 {
    -00253                         return i->params_when_on;
    -00254                 }
    -00255         }
    -00256         return 0;
    -00257 }
    +
    00250 {
    +00251         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    +00252         {
    +00253                 if ((i->modechar == modechar) && (i->type == type))
    +00254                 {
    +00255                         return i->params_when_on;
    +00256                 }
    +00257         }
    +00258         return 0;
    +00259 }
     
    -

    +

    @@ -657,25 +659,25 @@ References EMode, and <

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

    -References DEBUG, EMode, and ExtModeListIter. +References DEBUG, EMode, and ExtModeListIter.

    -

    00234 {
    -00235         log(DEBUG,"Size of extmodes vector is %d",EMode.size());
    -00236         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    -00237         {
    -00238                 if ((i->modechar == modechar) && (i->type == type) && (i->needsoper == true))
    -00239                 {
    -00240                         return true;
    -00241                 }
    -00242         }
    -00243         return false;
    -00244 }
    +
    00236 {
    +00237         log(DEBUG,"Size of extmodes vector is %d",EMode.size());
    +00238         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    +00239         {
    +00240                 if ((i->modechar == modechar) && (i->type == type) && (i->needsoper == true))
    +00241                 {
    +00242                         return true;
    +00243                 }
    +00244         }
    +00245         return false;
    +00246 }
     
    -

    +

    @@ -712,25 +714,25 @@ References DEBUG,

    -Definition at line 220 of file modules.cpp. +Definition at line 222 of file modules.cpp.

    -References DEBUG, EMode, and ExtModeListIter. +References DEBUG, EMode, and ExtModeListIter.

    -

    00221 {
    -00222         log(DEBUG,"Size of extmodes vector is %d",EMode.size());
    -00223         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    -00224         {
    -00225                 if ((i->modechar == modechar) && (i->type == type) && (i->list == true))
    -00226                 {
    -00227                         return true;
    -00228                 }
    -00229         }
    -00230         return false;
    -00231 }
    +
    00223 {
    +00224         log(DEBUG,"Size of extmodes vector is %d",EMode.size());
    +00225         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    +00226         {
    +00227                 if ((i->modechar == modechar) && (i->type == type) && (i->list == true))
    +00228                 {
    +00229                         return true;
    +00230                 }
    +00231         }
    +00232         return false;
    +00233 }
     
    -

    +

    @@ -758,27 +760,27 @@ References DEBUG,

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

    -References EMode, ExtModeListIter, and MT_CHANNEL. +References EMode, ExtModeListIter, and MT_CHANNEL.

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

    -

    00284 {
    -00285         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    -00286         {
    -00287                 if ((i->modechar == modechar) && (i->type == MT_CHANNEL))
    -00288                 {
    -00289                         i->list = true;
    -00290                         return;
    -00291                 }
    -00292         }
    -00293         return;
    -00294 }
    +
    00286 {
    +00287         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    +00288         {
    +00289                 if ((i->modechar == modechar) && (i->type == MT_CHANNEL))
    +00290                 {
    +00291                         i->list = true;
    +00292                         return;
    +00293                 }
    +00294         }
    +00295         return;
    +00296 }
     
    -

    +

    @@ -808,13 +810,13 @@ Referenced by Server::AddEx


    Variable Documentation

    -

    +

    @@ -829,16 +831,16 @@ Referenced by Server::AddEx

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

    -
    char AdminEmail[MAXBUF] + char AdminEmail[MAXBUF]
    -

    +

    @@ -853,16 +855,16 @@ Definition at line 73 o

    -Definition at line 72 of file modules.cpp. +Definition at line 74 of file modules.cpp.

    -
    char AdminName[MAXBUF] + char AdminName[MAXBUF]
    -

    +

    @@ -877,16 +879,16 @@ Definition at line 72 o

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

    -
    char AdminNick[MAXBUF] + char AdminNick[MAXBUF]
    -

    +

    @@ -901,16 +903,16 @@ Definition at line 74 o

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

    -
    std::vector<long> auth_cookies + std::vector<long> auth_cookies
    -

    +

    @@ -925,16 +927,16 @@ Definition at line 101

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

    -
    int boundPortCount + int boundPortCount
    -

    +

    @@ -949,16 +951,16 @@ Definition at line 95 o

    -Definition at line 178 of file modules.cpp. +Definition at line 180 of file modules.cpp.

    -
    chan_hash chanlist + chan_hash chanlist
    -

    +

    @@ -973,18 +975,18 @@ Definition at line 178

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

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

    -
    user_hash clientlist + user_hash clientlist
    -

    +

    @@ -999,10 +1001,10 @@ Referenced by Server::GetUs

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

    -
    command_table cmdlist + command_table cmdlist
    -

    +

    +Definition at line 104 of file modules.cpp.
    @@ -1023,16 +1025,16 @@ Definition at line 180

    -Definition at line 102 of file modules.cpp.

    -

    +

    @@ -1047,16 +1049,16 @@ Definition at line 102

    -Definition at line 83 of file modules.cpp. +Definition at line 85 of file modules.cpp.

    -
    int debugging + int debugging
    -

    +

    @@ -1071,16 +1073,16 @@ Definition at line 83 o

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

    -
    int defaultRoute + int defaultRoute
    -

    +

    @@ -1095,16 +1097,16 @@ Definition at line 99 o

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

    -
    int DieDelay + int DieDelay
    -

    +

    @@ -1119,16 +1121,16 @@ Definition at line 86 o

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

    -
    char diepass[MAXBUF] + char diepass[MAXBUF]
    -

    +

    @@ -1143,16 +1145,16 @@ Definition at line 75 o

    -Definition at line 81 of file modules.cpp. +Definition at line 83 of file modules.cpp.

    -
    char DieValue[MAXBUF] + char DieValue[MAXBUF]
    -

    +

    @@ -1167,9 +1169,9 @@ Definition at line 81 o

    -Definition at line 204 of file modules.cpp. +Definition at line 206 of file modules.cpp.

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

    -
    ExtModeList EMode + ExtModeList EMode

    @@ -1178,7 +1180,7 @@ Referenced by DoAddExtended

    -
    std::vector<ircd_module*> factory + std::vector<ircd_module*> factory
    -

    +

    @@ -1217,16 +1219,16 @@ Definition at line 66 o

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

    -
    std::vector<int> fd_reap + std::vector<int> fd_reap
    -

    +

    @@ -1241,16 +1243,16 @@ Definition at line 92 o

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

    -
    address_cache IP + address_cache IP
    -

    +

    @@ -1265,16 +1267,16 @@ Definition at line 183

    -Definition at line 79 of file modules.cpp. +Definition at line 81 of file modules.cpp.

    -
    char list[MAXBUF] + char list[MAXBUF]
    -

    +

    @@ -1289,16 +1291,16 @@ Definition at line 79 o

    -Definition at line 106 of file modules.cpp. +Definition at line 108 of file modules.cpp.

    -
    FILE* log_file + FILE* log_file
    -

    +

    @@ -1313,16 +1315,16 @@ Definition at line 106

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

    -
    int LogLevel + int LogLevel
    -

    +

    @@ -1337,16 +1339,16 @@ Definition at line 68 o

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

    -
    int MaxWhoResults + int MaxWhoResults
    -

    +

    @@ -1361,7 +1363,7 @@ Definition at line 89 o

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

    -
    serverrec* me[32] + serverrec* me[32]

    @@ -1385,16 +1387,16 @@ Definition at line 104

    -Definition at line 774 of file modules.cpp. +Definition at line 776 of file modules.cpp. -

    +

    @@ -1409,7 +1411,7 @@ Definition at line 774

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

    -
    std::vector<std::string> module_names + std::vector<std::string> module_names

    @@ -1436,13 +1438,13 @@ Definition at line 93 o Definition at line 65 of file modules.cpp. -

    +

    @@ -1457,16 +1459,16 @@ Definition at line 65 o

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

    -
    file_cache MOTD + file_cache MOTD
    -

    +

    @@ -1481,16 +1483,40 @@ Definition at line 181

    -Definition at line 77 of file modules.cpp. +Definition at line 79 of file modules.cpp.

    -
    char motd[MAXBUF] + char motd[MAXBUF]
    -

    +

    + +
    -
    time_t nb_start + time_t nb_start +
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 92 of file modules.cpp.

    +

    + + + @@ -1508,13 +1534,13 @@ Definition at line 77 o Definition at line 90 of file modules.cpp.
    + + +
    int NetBufferSize
    -

    +

    @@ -1529,16 +1555,16 @@ Definition at line 90 o

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

    -
    int NetBufferSize + char Network[MAXBUF]
    -

    +

    @@ -1553,16 +1579,16 @@ Definition at line 88 o

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

    -
    char Network[MAXBUF] + int portCount
    -

    +

    @@ -1577,16 +1603,16 @@ Definition at line 70 o

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

    -
    int portCount + int ports[MAXSOCKS]
    -

    +

    @@ -1601,16 +1627,16 @@ Definition at line 96 o

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

    -
    int ports[MAXSOCKS] + char PrefixQuit[MAXBUF]
    -

    +

    @@ -1625,16 +1651,16 @@ Definition at line 98 o

    -Definition at line 80 of file modules.cpp. +Definition at line 78 of file modules.cpp.

    -
    char PrefixQuit[MAXBUF] + char restartpass[MAXBUF]
    -

    +

    @@ -1649,16 +1675,16 @@ Definition at line 80 o

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

    -
    char restartpass[MAXBUF] + file_cache RULES
    -

    +

    @@ -1673,16 +1699,16 @@ Definition at line 76 o

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

    -
    file_cache RULES + char rules[MAXBUF]
    -

    +

    @@ -1697,16 +1723,16 @@ Definition at line 182

    -Definition at line 78 of file modules.cpp. +Definition at line 73 of file modules.cpp.

    -
    char rules[MAXBUF] + char ServerDesc[MAXBUF]
    -

    +

    @@ -1724,13 +1750,13 @@ Definition at line 78 o Definition at line 71 of file modules.cpp.
    -
    char ServerDesc[MAXBUF] + char ServerName[MAXBUF]
    -

    +

    @@ -1745,16 +1771,16 @@ Definition at line 71 o

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

    -
    char ServerName[MAXBUF] + time_t startup_time
    -

    +

    @@ -1769,16 +1795,16 @@ Definition at line 69 o

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

    -
    time_t startup_time + time_t TIME
    -

    +

    @@ -1793,16 +1819,16 @@ Definition at line 87 o

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

    -
    int UDPportCount + int UDPportCount
    -

    +

    @@ -1817,16 +1843,16 @@ Definition at line 97 o

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

    -
    user_hash whowas + user_hash whowas
    -

    +

    @@ -1841,16 +1867,16 @@ Definition at line 179

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

    -
    int WHOWAS_MAX + int WHOWAS_MAX
    -

    +

    @@ -1865,10 +1891,10 @@ Definition at line 85 o

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

    -
    int WHOWAS_STALE + int WHOWAS_STALE
    -


    Generated on Mon Apr 4 18:12:49 2005 for InspIRCd by +
    Generated on Thu Apr 7 20:14:22 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/modules_8h-source.html b/docs/module-doc/modules_8h-source.html index af553f1c7..80f93ef15 100644 --- a/docs/module-doc/modules_8h-source.html +++ b/docs/module-doc/modules_8h-source.html @@ -55,245 +55,252 @@ 00048 #define AC_INVITE 7 // a user is being invited 00049 #define AC_GENERAL_MODE 8 // a user channel mode is being changed 00050 -00051 #include "dynamic.h" -00052 #include "base.h" -00053 #include "ctables.h" -00054 #include <string> -00055 #include <deque> -00056 #include <sstream> -00057 -00060 typedef std::deque<std::string> file_cache; -00061 typedef file_cache string_list; -00062 -00065 typedef std::deque<userrec*> chanuserlist; -00066 -00067 -00068 // This #define allows us to call a method in all -00069 // loaded modules in a readable simple way, e.g.: -00070 // 'FOREACH_MOD OnConnect(user);' -00071 -00072 #define FOREACH_MOD for (int i = 0; i <= MODCOUNT; i++) modules[i]-> -00073 -00074 // This define is similar to the one above but returns a result in MOD_RESULT. -00075 // The first module to return a nonzero result is the value to be accepted, -00076 // and any modules after are ignored. -00077 -00078 // ********************************************************************************************* -00079 -00080 #define FOREACH_RESULT(x) { MOD_RESULT = 0; \ -00081 for (int i = 0; i <= MODCOUNT; i++) { \ -00082 int res = modules[i]->x ; \ -00083 if (res != 0) { \ -00084 MOD_RESULT = res; \ -00085 break; \ -00086 } \ -00087 } \ -00088 } -00089 -00090 // ********************************************************************************************* -00091 -00092 extern void createcommand(char* cmd, handlerfunc f, char flags, int minparams); -00093 extern void server_mode(char **parameters, int pcnt, userrec *user); -00094 -00095 // class Version holds the version information of a Module, returned -00096 // by Module::GetVersion (thanks RD) -00097 -00102 class Version : public classbase -00103 { -00104 public: -00105 const int Major, Minor, Revision, Build; -00106 Version(int major, int minor, int revision, int build); -00107 }; -00108 -00114 class Admin : public classbase -00115 { -00116 public: -00117 const std::string Name, Email, Nick; -00118 Admin(std::string name, std::string email, std::string nick); -00119 }; -00120 -00126 class Module : public classbase -00127 { -00128 public: -00129 -00133 Module(); -00134 -00138 virtual ~Module(); -00139 -00144 virtual Version GetVersion(); -00145 -00149 virtual void OnUserConnect(userrec* user); -00150 -00154 virtual void OnUserQuit(userrec* user); -00155 -00160 virtual void OnUserJoin(userrec* user, chanrec* channel); -00161 -00166 virtual void OnUserPart(userrec* user, chanrec* channel); -00167 -00174 virtual void OnPacketTransmit(char *p); -00175 -00183 virtual void OnPacketReceive(char *p); -00184 -00190 virtual void OnRehash(); +00051 // used to define a set of behavior bits for a module +00052 +00053 #define VF_STATIC 1 // module is static, cannot be /unloadmodule'd +00054 #define VF_VENDOR 2 // module is a vendor module (came in the original tarball, not 3rd party) +00055 #define VF_SERVICEPROVIDER 4 // module provides a service to other modules (can be a dependency) +00056 #define VF_COMMON 8 // module needs to be common on all servers in a mesh to link +00057 +00058 #include "dynamic.h" +00059 #include "base.h" +00060 #include "ctables.h" +00061 #include <string> +00062 #include <deque> +00063 #include <sstream> +00064 +00067 typedef std::deque<std::string> file_cache; +00068 typedef file_cache string_list; +00069 +00072 typedef std::deque<userrec*> chanuserlist; +00073 +00074 +00075 // This #define allows us to call a method in all +00076 // loaded modules in a readable simple way, e.g.: +00077 // 'FOREACH_MOD OnConnect(user);' +00078 +00079 #define FOREACH_MOD for (int i = 0; i <= MODCOUNT; i++) modules[i]-> +00080 +00081 // This define is similar to the one above but returns a result in MOD_RESULT. +00082 // The first module to return a nonzero result is the value to be accepted, +00083 // and any modules after are ignored. +00084 +00085 // ********************************************************************************************* +00086 +00087 #define FOREACH_RESULT(x) { MOD_RESULT = 0; \ +00088 for (int i = 0; i <= MODCOUNT; i++) { \ +00089 int res = modules[i]->x ; \ +00090 if (res != 0) { \ +00091 MOD_RESULT = res; \ +00092 break; \ +00093 } \ +00094 } \ +00095 } +00096 +00097 // ********************************************************************************************* +00098 +00099 extern void createcommand(char* cmd, handlerfunc f, char flags, int minparams, char* source); +00100 extern void server_mode(char **parameters, int pcnt, userrec *user); +00101 +00102 // class Version holds the version information of a Module, returned +00103 // by Module::GetVersion (thanks RD) +00104 +00109 class Version : public classbase +00110 { +00111 public: +00112 const int Major, Minor, Revision, Build, Flags; +00113 Version(int major, int minor, int revision, int build, int flags); +00114 }; +00115 +00121 class Admin : public classbase +00122 { +00123 public: +00124 const std::string Name, Email, Nick; +00125 Admin(std::string name, std::string email, std::string nick); +00126 }; +00127 +00133 class Module : public classbase +00134 { +00135 public: +00136 +00140 Module(); +00141 +00145 virtual ~Module(); +00146 +00151 virtual Version GetVersion(); +00152 +00156 virtual void OnUserConnect(userrec* user); +00157 +00161 virtual void OnUserQuit(userrec* user); +00162 +00167 virtual void OnUserJoin(userrec* user, chanrec* channel); +00168 +00173 virtual void OnUserPart(userrec* user, chanrec* channel); +00174 +00181 virtual void OnPacketTransmit(char *p); +00182 +00190 virtual void OnPacketReceive(char *p); 00191 -00200 virtual void OnServerRaw(std::string &raw, bool inbound, userrec* user); -00201 -00211 virtual int OnExtendedMode(userrec* user, void* target, char modechar, int type, bool mode_on, string_list &params); -00212 -00226 virtual int OnUserPreJoin(userrec* user, chanrec* chan, const char* cname); -00227 -00228 -00233 virtual void OnOper(userrec* user); +00197 virtual void OnRehash(); +00198 +00207 virtual void OnServerRaw(std::string &raw, bool inbound, userrec* user); +00208 +00218 virtual int OnExtendedMode(userrec* user, void* target, char modechar, int type, bool mode_on, string_list &params); +00219 +00233 virtual int OnUserPreJoin(userrec* user, chanrec* chan, const char* cname); 00234 -00243 virtual void OnInfo(userrec* user); -00244 -00249 virtual void OnWhois(userrec* source, userrec* dest); -00250 -00256 virtual int OnUserPreInvite(userrec* source,userrec* dest,chanrec* channel); +00235 +00240 virtual void OnOper(userrec* user); +00241 +00250 virtual void OnInfo(userrec* user); +00251 +00256 virtual void OnWhois(userrec* source, userrec* dest); 00257 -00266 virtual int OnUserPreMessage(userrec* user,void* dest,int target_type, std::string &text); -00267 -00279 virtual int OnUserPreNotice(userrec* user,void* dest,int target_type, std::string &text); -00280 -00288 virtual int OnUserPreNick(userrec* user, std::string newnick); -00289 -00297 virtual void OnUserPostNick(userrec* user, std::string oldnick); -00298 -00320 virtual int OnAccessCheck(userrec* source,userrec* dest,chanrec* channel,int access_type); -00321 -00327 virtual string_list OnUserSync(userrec* user); +00263 virtual int OnUserPreInvite(userrec* source,userrec* dest,chanrec* channel); +00264 +00273 virtual int OnUserPreMessage(userrec* user,void* dest,int target_type, std::string &text); +00274 +00286 virtual int OnUserPreNotice(userrec* user,void* dest,int target_type, std::string &text); +00287 +00295 virtual int OnUserPreNick(userrec* user, std::string newnick); +00296 +00304 virtual void OnUserPostNick(userrec* user, std::string oldnick); +00305 +00327 virtual int OnAccessCheck(userrec* source,userrec* dest,chanrec* channel,int access_type); 00328 -00334 virtual string_list OnChannelSync(chanrec* chan); +00334 virtual string_list OnUserSync(userrec* user); 00335 -00339 virtual void On005Numeric(std::string &output); -00340 -00350 virtual int OnKill(userrec* source, userrec* dest, std::string reason); -00351 -00362 virtual void OnLoadModule(Module* mod,std::string name); -00363 }; -00364 -00365 -00371 class Server : public classbase -00372 { -00373 public: -00377 Server(); -00381 virtual ~Server(); -00382 -00386 virtual void SendOpers(std::string s); -00391 virtual void Log(int level, std::string s); -00396 virtual void Send(int Socket, std::string s); -00401 virtual void SendServ(int Socket, std::string s); -00406 virtual void SendFrom(int Socket, userrec* User, std::string s); -00421 virtual void SendTo(userrec* Source, userrec* Dest, std::string s); -00428 virtual void SendChannel(userrec* User, chanrec* Channel, std::string s,bool IncludeSender); -00433 virtual bool CommonChannels(userrec* u1, userrec* u2); -00441 virtual void SendCommon(userrec* User, std::string text,bool IncludeSender); -00446 virtual void SendWallops(userrec* User, std::string text); -00447 -00451 virtual bool IsNick(std::string nick); -00455 virtual int CountUsers(chanrec* c); -00459 virtual userrec* FindNick(std::string nick); -00463 virtual chanrec* FindChannel(std::string channel); -00468 virtual std::string ChanMode(userrec* User, chanrec* Chan); -00472 virtual bool IsOnChannel(userrec* User, chanrec* Chan); -00475 virtual std::string GetServerName(); -00478 virtual std::string GetNetworkName(); -00484 virtual Admin GetAdmin(); -00503 virtual bool AddExtendedMode(char modechar, int type, bool requires_oper, int params_when_on, int params_when_off); -00504 -00526 virtual bool AddExtendedListMode(char modechar); -00527 -00542 virtual void AddCommand(char* cmd, handlerfunc f, char flags, int minparams); -00543 -00565 virtual void SendMode(char **parameters, int pcnt, userrec *user); -00566 -00579 virtual void SendToModeMask(std::string modes, int flags, std::string text); -00580 -00586 virtual chanrec* JoinUserToChannel(userrec* user, std::string cname, std::string key); -00587 -00593 virtual chanrec* PartUserFromChannel(userrec* user, std::string cname, std::string reason); -00594 -00600 virtual void ChangeUserNick(userrec* user, std::string nickname); -00601 -00612 virtual void QuitUser(userrec* user, std::string reason); -00613 -00618 virtual bool MatchText(std::string sliteral, std::string spattern); -00619 -00631 virtual void CallCommandHandler(std::string commandname, char** parameters, int pcnt, userrec* user); -00632 -00638 virtual void ChangeHost(userrec* user, std::string host); -00639 -00645 virtual void ChangeGECOS(userrec* user, std::string gecos); -00646 -00655 virtual bool IsUlined(std::string server); +00341 virtual string_list OnChannelSync(chanrec* chan); +00342 +00346 virtual void On005Numeric(std::string &output); +00347 +00357 virtual int OnKill(userrec* source, userrec* dest, std::string reason); +00358 +00369 virtual void OnLoadModule(Module* mod,std::string name); +00370 }; +00371 +00372 +00378 class Server : public classbase +00379 { +00380 public: +00384 Server(); +00388 virtual ~Server(); +00389 +00393 virtual void SendOpers(std::string s); +00398 virtual void Log(int level, std::string s); +00403 virtual void Send(int Socket, std::string s); +00408 virtual void SendServ(int Socket, std::string s); +00413 virtual void SendFrom(int Socket, userrec* User, std::string s); +00428 virtual void SendTo(userrec* Source, userrec* Dest, std::string s); +00435 virtual void SendChannel(userrec* User, chanrec* Channel, std::string s,bool IncludeSender); +00440 virtual bool CommonChannels(userrec* u1, userrec* u2); +00448 virtual void SendCommon(userrec* User, std::string text,bool IncludeSender); +00453 virtual void SendWallops(userrec* User, std::string text); +00454 +00458 virtual bool IsNick(std::string nick); +00462 virtual int CountUsers(chanrec* c); +00466 virtual userrec* FindNick(std::string nick); +00470 virtual chanrec* FindChannel(std::string channel); +00475 virtual std::string ChanMode(userrec* User, chanrec* Chan); +00479 virtual bool IsOnChannel(userrec* User, chanrec* Chan); +00482 virtual std::string GetServerName(); +00485 virtual std::string GetNetworkName(); +00491 virtual Admin GetAdmin(); +00510 virtual bool AddExtendedMode(char modechar, int type, bool requires_oper, int params_when_on, int params_when_off); +00511 +00533 virtual bool AddExtendedListMode(char modechar); +00534 +00552 virtual void AddCommand(char* cmd, handlerfunc f, char flags, int minparams, char* source); +00553 +00575 virtual void SendMode(char **parameters, int pcnt, userrec *user); +00576 +00589 virtual void SendToModeMask(std::string modes, int flags, std::string text); +00590 +00596 virtual chanrec* JoinUserToChannel(userrec* user, std::string cname, std::string key); +00597 +00603 virtual chanrec* PartUserFromChannel(userrec* user, std::string cname, std::string reason); +00604 +00610 virtual void ChangeUserNick(userrec* user, std::string nickname); +00611 +00622 virtual void QuitUser(userrec* user, std::string reason); +00623 +00628 virtual bool MatchText(std::string sliteral, std::string spattern); +00629 +00641 virtual void CallCommandHandler(std::string commandname, char** parameters, int pcnt, userrec* user); +00642 +00648 virtual void ChangeHost(userrec* user, std::string host); +00649 +00655 virtual void ChangeGECOS(userrec* user, std::string gecos); 00656 -00660 virtual chanuserlist GetUsers(chanrec* chan); -00661 -00662 }; -00663 -00664 #define CONF_NOT_A_NUMBER 0x000010 -00665 #define CONF_NOT_UNSIGNED 0x000080 -00666 #define CONF_VALUE_NOT_FOUND 0x000100 -00667 #define CONF_FILE_NOT_FOUND 0x000200 -00668 -00675 class ConfigReader : public classbase -00676 { -00677 protected: -00683 std::stringstream *cache; -00684 std::stringstream *errorlog; -00687 bool readerror; -00688 long error; -00689 -00690 public: -00695 ConfigReader(); // default constructor reads ircd.conf -00699 ConfigReader(std::string filename); // read a module-specific config -00703 ~ConfigReader(); -00708 std::string ReadValue(std::string tag, std::string name, int index); -00714 bool ReadFlag(std::string tag, std::string name, int index); -00723 long ReadInteger(std::string tag, std::string name, int index, bool needs_unsigned); -00728 long GetError(); -00735 int Enumerate(std::string tag); -00740 bool Verify(); -00747 void DumpErrors(bool bail,userrec* user); -00748 -00754 int EnumerateValues(std::string tag, int index); -00755 }; -00756 -00757 +00665 virtual bool IsUlined(std::string server); +00666 +00670 virtual chanuserlist GetUsers(chanrec* chan); +00671 +00672 }; +00673 +00674 #define CONF_NOT_A_NUMBER 0x000010 +00675 #define CONF_NOT_UNSIGNED 0x000080 +00676 #define CONF_VALUE_NOT_FOUND 0x000100 +00677 #define CONF_FILE_NOT_FOUND 0x000200 +00678 +00685 class ConfigReader : public classbase +00686 { +00687 protected: +00693 std::stringstream *cache; +00694 std::stringstream *errorlog; +00697 bool readerror; +00698 long error; +00699 +00700 public: +00705 ConfigReader(); // default constructor reads ircd.conf +00709 ConfigReader(std::string filename); // read a module-specific config +00713 ~ConfigReader(); +00718 std::string ReadValue(std::string tag, std::string name, int index); +00724 bool ReadFlag(std::string tag, std::string name, int index); +00733 long ReadInteger(std::string tag, std::string name, int index, bool needs_unsigned); +00738 long GetError(); +00745 int Enumerate(std::string tag); +00750 bool Verify(); +00757 void DumpErrors(bool bail,userrec* user); 00758 -00764 class FileReader : public classbase -00765 { -00766 file_cache fc; -00767 public: -00772 FileReader(); -00773 -00779 FileReader(std::string filename); -00780 -00784 ~FileReader(); -00785 -00791 void LoadFile(std::string filename); -00792 -00796 bool Exists(); -00797 -00802 std::string GetLine(int x); -00803 -00809 int FileSize(); -00810 }; -00811 -00812 -00819 class ModuleFactory : public classbase -00820 { -00821 public: -00822 ModuleFactory() { } -00823 virtual ~ModuleFactory() { } -00828 virtual Module * CreateModule() = 0; -00829 }; -00830 -00831 -00832 typedef DLLFactory<ModuleFactory> ircd_module; -00833 -00834 #endif -

    Generated on Mon Apr 4 18:12:48 2005 for InspIRCd by +00764 int EnumerateValues(std::string tag, int index); +00765 }; +00766 +00767 +00768 +00774 class FileReader : public classbase +00775 { +00776 file_cache fc; +00777 public: +00782 FileReader(); +00783 +00789 FileReader(std::string filename); +00790 +00794 ~FileReader(); +00795 +00801 void LoadFile(std::string filename); +00802 +00806 bool Exists(); +00807 +00812 std::string GetLine(int x); +00813 +00819 int FileSize(); +00820 }; +00821 +00822 +00829 class ModuleFactory : public classbase +00830 { +00831 public: +00832 ModuleFactory() { } +00833 virtual ~ModuleFactory() { } +00838 virtual Module * CreateModule() = 0; +00839 }; +00840 +00841 +00842 typedef DLLFactory<ModuleFactory> ircd_module; +00843 +00844 #endif +

    Generated on Thu Apr 7 20:14:21 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/modules_8h.html b/docs/module-doc/modules_8h.html index 6110e3423..0c3cb75fd 100644 --- a/docs/module-doc/modules_8h.html +++ b/docs/module-doc/modules_8h.html @@ -78,33 +78,41 @@ #define AC_GENERAL_MODE   8 -#define FOREACH_MOD   for (int i = 0; i <= MODCOUNT; i++) modules[i]-> +#define VF_STATIC   1 -#define FOREACH_RESULT(x) +#define VF_VENDOR   2 -#define CONF_NOT_A_NUMBER   0x000010 +#define VF_SERVICEPROVIDER   4 -#define CONF_NOT_UNSIGNED   0x000080 +#define VF_COMMON   8 -#define CONF_VALUE_NOT_FOUND   0x000100 +#define FOREACH_MOD   for (int i = 0; i <= MODCOUNT; i++) modules[i]-> -#define CONF_FILE_NOT_FOUND   0x000200 +#define FOREACH_RESULT(x) + +#define CONF_NOT_A_NUMBER   0x000010 + +#define CONF_NOT_UNSIGNED   0x000080 + +#define CONF_VALUE_NOT_FOUND   0x000100 + +#define CONF_FILE_NOT_FOUND   0x000200

    Typedefs

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


    -typedef file_cache string_list + Low level definition of a FileReader classes file cache area.


    +typedef file_cache string_list -typedef std::deque< userrec * > chanuserlist +typedef std::deque< userrec * > chanuserlist - Holds a list of users in a channel.


    -typedef DLLFactory< ModuleFactoryircd_module + Holds a list of users in a channel.


    +typedef DLLFactory< ModuleFactoryircd_module

    Functions

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

    Define Documentation

    @@ -371,7 +379,7 @@ Definition at line 39 of

    Definition at line 37 of file modules.h.

    -Referenced by Module::OnAccessCheck(). +Referenced by Module::OnAccessCheck().

    @@ -398,7 +406,7 @@ Referenced by Module::OnAcc Definition at line 38 of file modules.h. -

    +

    +Referenced by ConfigReader::ConfigReader().
    @@ -419,12 +427,12 @@ Definition at line 38 of

    -Definition at line 667 of file modules.h. +Definition at line 677 of file modules.h.

    -Referenced by ConfigReader::ConfigReader().

    -

    +

    +Referenced by ConfigReader::ReadInteger().
    @@ -445,12 +453,12 @@ Referenced by ConfigReader:

    -Definition at line 664 of file modules.h. +Definition at line 674 of file modules.h.

    -Referenced by ConfigReader::ReadInteger().

    -

    +

    +Referenced by ConfigReader::ReadInteger().
    @@ -471,12 +479,12 @@ Referenced by ConfigReader:

    -Definition at line 665 of file modules.h. +Definition at line 675 of file modules.h.

    -Referenced by ConfigReader::ReadInteger().

    -

    +

    +Referenced by ConfigReader::ReadFlag(), ConfigReader::ReadInteger(), and ConfigReader::ReadValue().
    @@ -497,9 +505,9 @@ Referenced by ConfigReader:

    -Definition at line 666 of file modules.h. +Definition at line 676 of file modules.h.

    -Referenced by ConfigReader::ReadFlag(), ConfigReader::ReadInteger(), and ConfigReader::ReadValue().

    @@ -525,7 +533,7 @@ Referenced by ConfigReader:

    Definition at line 23 of file modules.h.

    -Referenced by Server::AddExtendedMode(), userrec::HasPermission(), chanrec::IsCustomModeSet(), ModeDefined(), ModeDefinedOper(), ModeIsListMode(), userrec::RemoveInvite(), chanrec::SetCustomMode(), and chanrec::SetCustomModeParam(). +Referenced by Server::AddExtendedMode(), userrec::HasPermission(), chanrec::IsCustomModeSet(), ModeDefined(), ModeDefinedOper(), ModeIsListMode(), userrec::RemoveInvite(), chanrec::SetCustomMode(), and chanrec::SetCustomModeParam().

    @@ -552,7 +560,7 @@ Referenced by Server::AddEx Definition at line 25 of file modules.h. -

    +

    +Definition at line 79 of file modules.h.
    @@ -573,10 +581,10 @@ Definition at line 25 of

    -Definition at line 72 of file modules.h.

    -

    +

    +Definition at line 87 of file modules.h.
    @@ -611,7 +619,7 @@ Definition at line 72 of }

    -Definition at line 80 of file modules.h.

    @@ -637,7 +645,7 @@ Definition at line 80 of

    Definition at line 31 of file modules.h.

    -Referenced by Server::AddExtendedListMode(), and ModeMakeList(). +Referenced by Server::AddExtendedListMode(), and ModeMakeList().

    @@ -663,7 +671,7 @@ Referenced by Server::AddEx

    Definition at line 32 of file modules.h.

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

    @@ -689,7 +697,7 @@ Referenced by Server::AddEx

    Definition at line 33 of file modules.h.

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

    @@ -764,14 +772,112 @@ Definition at line 26 of Definition at line 24 of file modules.h. +

    + + + + +
    + + +
    #define VF_COMMON   8 +
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 56 of file modules.h.

    +

    + + + + +
    + + +
    #define VF_SERVICEPROVIDER   4 +
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 55 of file modules.h.

    +

    + + + + +
    + + +
    #define VF_STATIC   1 +
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 53 of file modules.h.

    +

    + + + + +
    + + +
    #define VF_VENDOR   2 +
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 54 of file modules.h. +

    +Referenced by Module::GetVersion().


    Typedef Documentation

    -

    +

    @@ -788,18 +894,18 @@ Holds a list of users in a channel.

    -Definition at line 65 of file modules.h. +Definition at line 72 of file modules.h.

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

    -
    typedef std::deque<userrec*> chanuserlist + typedef std::deque<userrec*> chanuserlist
    -

    +

    @@ -816,18 +922,18 @@ Low level definition of a FileReader

    -Definition at line 60 of file modules.h. +Definition at line 67 of file modules.h.

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

    -
    typedef std::deque<std::string> file_cache + typedef std::deque<std::string> file_cache
    -

    +

    @@ -842,16 +948,16 @@ Referenced by FileReader::F

    -Definition at line 832 of file modules.h. +Definition at line 842 of file modules.h.

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

    +

    @@ -866,13 +972,13 @@ Definition at line 832 of

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

    -Referenced by Module::OnChannelSync(), and Module::OnUserSync(). +Referenced by Module::OnChannelSync(), and Module::OnUserSync().

    -
    typedef file_cache string_list + typedef file_cache string_list


    Function Documentation

    -

    +

    - + + + + + + + @@ -921,10 +1033,10 @@ Referenced by Module::OnCha

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

    @@ -899,7 +1005,13 @@ Referenced by Module::OnCha int  minparams minparams,
    char *  source
    -

    +

    +Referenced by Server::SendMode().
    @@ -967,10 +1079,10 @@ Referenced by Server::AddCo

    -Referenced by Server::SendMode().

    -


    Generated on Mon Apr 4 18:12:49 2005 for InspIRCd by +
    Generated on Thu Apr 7 20:14:22 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/namespacenspace.html b/docs/module-doc/namespacenspace.html index e09ffb727..eacc175e8 100644 --- a/docs/module-doc/namespacenspace.html +++ b/docs/module-doc/namespacenspace.html @@ -15,7 +15,7 @@ struct  nspace.hash< string > -
    Generated on Mon Apr 4 18:12:54 2005 for InspIRCd by +
    Generated on Thu Apr 7 20:14:27 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/namespaces.html b/docs/module-doc/namespaces.html index 8a147e855..925faa407 100644 --- a/docs/module-doc/namespaces.html +++ b/docs/module-doc/namespaces.html @@ -9,7 +9,7 @@ nspace std -
    Generated on Mon Apr 4 18:12:54 2005 for InspIRCd by +
    Generated on Thu Apr 7 20:14:27 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/namespacestd.html b/docs/module-doc/namespacestd.html index 290626e8f..75432f2a8 100644 --- a/docs/module-doc/namespacestd.html +++ b/docs/module-doc/namespacestd.html @@ -10,7 +10,7 @@
    -
    Generated on Mon Apr 4 18:12:54 2005 for InspIRCd by +
    Generated on Thu Apr 7 20:14:27 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/servers_8cpp-source.html b/docs/module-doc/servers_8cpp-source.html index 69c2744fc..1a690ebdd 100644 --- a/docs/module-doc/servers_8cpp-source.html +++ b/docs/module-doc/servers_8cpp-source.html @@ -28,40 +28,42 @@ 00021 #include <map> 00022 #include "inspstring.h" 00023 -00024 serverrec::serverrec() -00025 { -00026 strlcpy(name,"",256); -00027 pingtime = 0; -00028 lastping = time(NULL); -00029 usercount_i = usercount = opercount = version = 0; -00030 hops_away = 1; -00031 signon = time(NULL); -00032 jupiter = false; -00033 fd = 0; -00034 sync_soon = false; -00035 strlcpy(nickserv,"",NICKMAX); -00036 } -00037 -00038 -00039 serverrec::~serverrec() -00040 { -00041 } -00042 -00043 serverrec::serverrec(char* n, long ver, bool jupe) -00044 { -00045 strlcpy(name,n,256); -00046 lastping = time(NULL); -00047 usercount_i = usercount = opercount = 0; -00048 version = ver; -00049 hops_away = 1; -00050 signon = time(NULL); -00051 jupiter = jupe; -00052 fd = 0; -00053 sync_soon = false; -00054 strlcpy(nickserv,"",NICKMAX); -00055 } -00056 -

    Generated on Mon Apr 4 18:12:48 2005 for InspIRCd by +00024 extern time_t TIME; +00025 +00026 serverrec::serverrec() +00027 { +00028 strlcpy(name,"",256); +00029 pingtime = 0; +00030 lastping = TIME; +00031 usercount_i = usercount = opercount = version = 0; +00032 hops_away = 1; +00033 signon = TIME; +00034 jupiter = false; +00035 fd = 0; +00036 sync_soon = false; +00037 strlcpy(nickserv,"",NICKMAX); +00038 } +00039 +00040 +00041 serverrec::~serverrec() +00042 { +00043 } +00044 +00045 serverrec::serverrec(char* n, long ver, bool jupe) +00046 { +00047 strlcpy(name,n,256); +00048 lastping = TIME; +00049 usercount_i = usercount = opercount = 0; +00050 version = ver; +00051 hops_away = 1; +00052 signon = TIME; +00053 jupiter = jupe; +00054 fd = 0; +00055 sync_soon = false; +00056 strlcpy(nickserv,"",NICKMAX); +00057 } +00058 +

    Generated on Thu Apr 7 20:14:21 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/servers_8cpp.html b/docs/module-doc/servers_8cpp.html index 107be2edd..b5ef5a5e7 100644 --- a/docs/module-doc/servers_8cpp.html +++ b/docs/module-doc/servers_8cpp.html @@ -15,8 +15,36 @@

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

    Variables

    time_t TIME
    +


    Variable Documentation

    +

    + + + + +
    + + +
    time_t TIME +
    +
    + + + + +
    +   + + +

    + +

    +Definition at line 24 of file servers.cpp.

    -


    Generated on Mon Apr 4 18:12:49 2005 for InspIRCd by +
    Generated on Thu Apr 7 20:14:22 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/servers_8h-source.html b/docs/module-doc/servers_8h-source.html index a6b8ae022..8972bef23 100644 --- a/docs/module-doc/servers_8h-source.html +++ b/docs/module-doc/servers_8h-source.html @@ -61,7 +61,7 @@ 00082 00083 #endif 00084 -

    Generated on Mon Apr 4 18:12:48 2005 for InspIRCd by +

    Generated on Thu Apr 7 20:14:21 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/servers_8h.html b/docs/module-doc/servers_8h.html index 940178e64..97a73164a 100644 --- a/docs/module-doc/servers_8h.html +++ b/docs/module-doc/servers_8h.html @@ -72,7 +72,7 @@ Definition at line 25 of Definition at line 26 of file servers.h. -
    Generated on Mon Apr 4 18:12:49 2005 for InspIRCd by +
    Generated on Thu Apr 7 20:14:22 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/structInAddr__HashComp-members.html b/docs/module-doc/structInAddr__HashComp-members.html index 6c46a44db..5735a0091 100644 --- a/docs/module-doc/structInAddr__HashComp-members.html +++ b/docs/module-doc/structInAddr__HashComp-members.html @@ -7,7 +7,7 @@

    InAddr_HashComp Member List

    This is the complete list of members for InAddr_HashComp, including all inherited members. -
    operator()(const in_addr &s1, const in_addr &s2) constInAddr_HashComp [inline]

    Generated on Mon Apr 4 18:12:52 2005 for InspIRCd by +
    Generated on Thu Apr 7 20:14:25 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/structInAddr__HashComp.html b/docs/module-doc/structInAddr__HashComp.html index 1bd5ecbe2..366f0ee03 100644 --- a/docs/module-doc/structInAddr__HashComp.html +++ b/docs/module-doc/structInAddr__HashComp.html @@ -49,23 +49,23 @@

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

    -

    00158         {
    -00159                 size_t q;
    -00160                 size_t p;
    -00161                 
    -00162                 memcpy(&q,&s1,sizeof(size_t));
    -00163                 memcpy(&p,&s2,sizeof(size_t));
    -00164                 
    -00165                 return (q == p);
    -00166         }
    +
    00160         {
    +00161                 size_t q;
    +00162                 size_t p;
    +00163                 
    +00164                 memcpy(&q,&s1,sizeof(size_t));
    +00165                 memcpy(&p,&s2,sizeof(size_t));
    +00166                 
    +00167                 return (q == p);
    +00168         }
     

    The documentation for this struct was generated from the following file: -
    Generated on Mon Apr 4 18:12:52 2005 for InspIRCd by +
    Generated on Thu Apr 7 20:14:25 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/structStrHashComp-members.html b/docs/module-doc/structStrHashComp-members.html index 178105df5..ea17c72a8 100644 --- a/docs/module-doc/structStrHashComp-members.html +++ b/docs/module-doc/structStrHashComp-members.html @@ -7,7 +7,7 @@

    StrHashComp Member List

    This is the complete list of members for StrHashComp, including all inherited members. -
    operator()(const string &s1, const string &s2) constStrHashComp [inline]

    Generated on Mon Apr 4 18:12:54 2005 for InspIRCd by +
    Generated on Thu Apr 7 20:14:26 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/structStrHashComp.html b/docs/module-doc/structStrHashComp.html index 16f2091dc..f2d42b2f7 100644 --- a/docs/module-doc/structStrHashComp.html +++ b/docs/module-doc/structStrHashComp.html @@ -49,20 +49,20 @@

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

    -

    00145         {
    -00146                 char a[MAXBUF],b[MAXBUF];
    -00147                 strlcpy(a,s1.c_str(),MAXBUF);
    -00148                 strlcpy(b,s2.c_str(),MAXBUF);
    -00149                 return (strcasecmp(a,b) == 0);
    -00150         }
    +
    00147         {
    +00148                 char a[MAXBUF],b[MAXBUF];
    +00149                 strlcpy(a,s1.c_str(),MAXBUF);
    +00150                 strlcpy(b,s2.c_str(),MAXBUF);
    +00151                 return (strcasecmp(a,b) == 0);
    +00152         }
     

    The documentation for this struct was generated from the following file: -
    Generated on Mon Apr 4 18:12:54 2005 for InspIRCd by +
    Generated on Thu Apr 7 20:14:26 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/structdns__ip4list-members.html b/docs/module-doc/structdns__ip4list-members.html index b93619f7f..e9cdf6d70 100644 --- a/docs/module-doc/structdns__ip4list-members.html +++ b/docs/module-doc/structdns__ip4list-members.html @@ -8,7 +8,7 @@

    dns_ip4list Member List

    This is the complete list of members for dns_ip4list, including all inherited members. -
    ipdns_ip4list
    nextdns_ip4list

    Generated on Mon Apr 4 18:12:51 2005 for InspIRCd by +
    Generated on Thu Apr 7 20:14:24 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/structdns__ip4list.html b/docs/module-doc/structdns__ip4list.html index 9a03eba11..6cdf0a31f 100644 --- a/docs/module-doc/structdns__ip4list.html +++ b/docs/module-doc/structdns__ip4list.html @@ -66,7 +66,7 @@ Definition at line 28 of file
    The documentation for this struct was generated from the following file: -
    Generated on Mon Apr 4 18:12:51 2005 for InspIRCd by +
    Generated on Thu Apr 7 20:14:24 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01in__addr_01_4-members.html b/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01in__addr_01_4-members.html index a8fc64f74..20361aba1 100644 --- a/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01in__addr_01_4-members.html +++ b/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01in__addr_01_4-members.html @@ -7,7 +7,7 @@

    nspace::hash< in_addr > Member List

    This is the complete list of members for nspace::hash< in_addr >, including all inherited members. -
    operator()(const struct in_addr &a) constnspace::hash< in_addr > [inline]

    Generated on Mon Apr 4 18:12:54 2005 for InspIRCd by +
    Generated on Thu Apr 7 20:14:27 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01in__addr_01_4.html b/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01in__addr_01_4.html index 76fba1003..b6869fd8a 100644 --- a/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01in__addr_01_4.html +++ b/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01in__addr_01_4.html @@ -43,19 +43,19 @@

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

    -

    00118                 {
    -00119                         size_t q;
    -00120                         memcpy(&q,&a,sizeof(size_t));
    -00121                         return q;
    -00122                 }
    +
    00120                 {
    +00121                         size_t q;
    +00122                         memcpy(&q,&a,sizeof(size_t));
    +00123                         return q;
    +00124                 }
     

    The documentation for this struct was generated from the following file: -
    Generated on Mon Apr 4 18:12:54 2005 for InspIRCd by +
    Generated on Thu Apr 7 20:14:27 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01string_01_4-members.html b/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01string_01_4-members.html index cb5db4820..dc30990da 100644 --- a/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01string_01_4-members.html +++ b/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01string_01_4-members.html @@ -7,7 +7,7 @@

    nspace::hash< string > Member List

    This is the complete list of members for nspace::hash< string >, including all inherited members. -
    operator()(const string &s) constnspace::hash< string > [inline]

    Generated on Mon Apr 4 18:12:54 2005 for InspIRCd by +
    Generated on Thu Apr 7 20:14:27 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01string_01_4.html b/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01string_01_4.html index bcbf0d2c1..48c6a65b4 100644 --- a/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01string_01_4.html +++ b/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01string_01_4.html @@ -43,21 +43,21 @@

    -Definition at line 130 of file modules.cpp. +Definition at line 132 of file modules.cpp.

    -

    00131                 {
    -00132                         char a[MAXBUF];
    -00133                         static struct hash<const char *> strhash;
    -00134                         strlcpy(a,s.c_str(),MAXBUF);
    -00135                         strlower(a);
    -00136                         return strhash(a);
    -00137                 }
    +
    00133                 {
    +00134                         char a[MAXBUF];
    +00135                         static struct hash<const char *> strhash;
    +00136                         strlcpy(a,s.c_str(),MAXBUF);
    +00137                         strlower(a);
    +00138                         return strhash(a);
    +00139                 }
     

    The documentation for this struct was generated from the following file: -
    Generated on Mon Apr 4 18:12:54 2005 for InspIRCd by +
    Generated on Thu Apr 7 20:14:27 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/users_8cpp-source.html b/docs/module-doc/users_8cpp-source.html index fb42722e2..c528e87c3 100644 --- a/docs/module-doc/users_8cpp-source.html +++ b/docs/module-doc/users_8cpp-source.html @@ -30,146 +30,148 @@ 00023 00024 extern std::stringstream config_f; 00025 -00026 userrec::userrec() -00027 { -00028 // the PROPER way to do it, AVOID bzero at *ALL* costs -00029 strcpy(nick,""); -00030 strcpy(ip,"127.0.0.1"); -00031 timeout = 0; -00032 strcpy(ident,""); -00033 strcpy(host,""); -00034 strcpy(dhost,""); -00035 strcpy(fullname,""); -00036 strcpy(modes,""); -00037 strcpy(inbuf,""); -00038 strcpy(server,""); -00039 strcpy(awaymsg,""); -00040 strcpy(oper,""); -00041 fd = lastping = signon = idle_lastmsg = nping = registered = 0; -00042 flood = port = bytes_in = bytes_out = cmds_in = cmds_out = 0; -00043 haspassed = false; -00044 dns_done = false; -00045 strcpy(result,""); -00046 for (int i = 0; i < MAXCHANS; i++) -00047 { -00048 this->chans[i].channel = NULL; -00049 this->chans[i].uc_modes = 0; -00050 } -00051 invites.clear(); -00052 } -00053 -00054 -00055 -00056 char* userrec::GetFullHost() -00057 { -00058 snprintf(result,MAXBUF,"%s!%s@%s",nick,ident,dhost); -00059 return result; -00060 } -00061 -00062 -00063 char* userrec::GetFullRealHost() -00064 { -00065 snprintf(result,MAXBUF,"%s!%s@%s",nick,ident,host); -00066 return result; -00067 } -00068 -00069 bool userrec::IsInvited(char* channel) -00070 { -00071 for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++) -00072 { -00073 if (i->channel) { -00074 if (!strcasecmp(i->channel,channel)) -00075 { -00076 return true; -00077 } -00078 } -00079 } -00080 return false; -00081 } -00082 -00083 void userrec::InviteTo(char* channel) -00084 { -00085 Invited i; -00086 strlcpy(i.channel,channel,CHANMAX); -00087 invites.push_back(i); -00088 } -00089 -00090 void userrec::RemoveInvite(char* channel) -00091 { -00092 log(DEBUG,"Removing invites"); -00093 if (channel) -00094 { -00095 if (invites.size()) -00096 { -00097 for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++) -00098 { -00099 if (i->channel) -00100 { -00101 if (!strcasecmp(i->channel,channel)) -00102 { -00103 invites.erase(i); -00104 return; -00105 } -00106 } -00107 } -00108 } -00109 } -00110 } -00111 -00112 bool userrec::HasPermission(char* command) -00113 { -00114 char TypeName[MAXBUF],Classes[MAXBUF],ClassName[MAXBUF],CommandList[MAXBUF]; -00115 char* myclass; -00116 char* mycmd; -00117 char* savept; -00118 char* savept2; -00119 -00120 // are they even an oper at all? -00121 if (strchr(this->modes,'o')) -00122 { -00123 log(DEBUG,"*** HasPermission: %s is an oper",this->nick); -00124 for (int j =0; j < ConfValueEnum("type",&config_f); j++) -00125 { -00126 ConfValue("type","name",j,TypeName,&config_f); -00127 if (!strcmp(TypeName,this->oper)) -00128 { -00129 log(DEBUG,"*** HasPermission: %s is an oper of type '%s'",this->nick,this->oper); -00130 ConfValue("type","classes",j,Classes,&config_f); -00131 char* myclass = strtok_r(Classes," ",&savept); -00132 while (myclass) -00133 { -00134 log(DEBUG,"*** HasPermission: checking classtype '%s'",myclass); -00135 for (int k =0; k < ConfValueEnum("class",&config_f); k++) -00136 { -00137 ConfValue("class","name",k,ClassName,&config_f); -00138 if (!strcmp(ClassName,myclass)) -00139 { -00140 ConfValue("class","commands",k,CommandList,&config_f); -00141 log(DEBUG,"*** HasPermission: found class named %s with commands: '%s'",ClassName,CommandList); -00142 -00143 -00144 mycmd = strtok_r(CommandList," ",&savept2); -00145 while (mycmd) -00146 { -00147 if (!strcasecmp(mycmd,command)) -00148 { -00149 log(DEBUG,"*** Command %s found, returning true",command); -00150 return true; -00151 } -00152 mycmd = strtok_r(NULL," ",&savept2); -00153 } -00154 } -00155 } -00156 myclass = strtok_r(NULL," ",&savept); -00157 } -00158 } -00159 } -00160 } -00161 return false; -00162 } -00163 -00164 -

    Generated on Mon Apr 4 18:12:48 2005 for InspIRCd by +00026 extern time_t TIME; +00027 +00028 userrec::userrec() +00029 { +00030 // the PROPER way to do it, AVOID bzero at *ALL* costs +00031 strcpy(nick,""); +00032 strcpy(ip,"127.0.0.1"); +00033 timeout = 0; +00034 strcpy(ident,""); +00035 strcpy(host,""); +00036 strcpy(dhost,""); +00037 strcpy(fullname,""); +00038 strcpy(modes,""); +00039 strcpy(inbuf,""); +00040 strcpy(server,""); +00041 strcpy(awaymsg,""); +00042 strcpy(oper,""); +00043 fd = lastping = signon = idle_lastmsg = nping = registered = 0; +00044 flood = port = bytes_in = bytes_out = cmds_in = cmds_out = 0; +00045 haspassed = false; +00046 dns_done = false; +00047 strcpy(result,""); +00048 for (int i = 0; i < MAXCHANS; i++) +00049 { +00050 this->chans[i].channel = NULL; +00051 this->chans[i].uc_modes = 0; +00052 } +00053 invites.clear(); +00054 } +00055 +00056 +00057 +00058 char* userrec::GetFullHost() +00059 { +00060 snprintf(result,MAXBUF,"%s!%s@%s",nick,ident,dhost); +00061 return result; +00062 } +00063 +00064 +00065 char* userrec::GetFullRealHost() +00066 { +00067 snprintf(result,MAXBUF,"%s!%s@%s",nick,ident,host); +00068 return result; +00069 } +00070 +00071 bool userrec::IsInvited(char* channel) +00072 { +00073 for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++) +00074 { +00075 if (i->channel) { +00076 if (!strcasecmp(i->channel,channel)) +00077 { +00078 return true; +00079 } +00080 } +00081 } +00082 return false; +00083 } +00084 +00085 void userrec::InviteTo(char* channel) +00086 { +00087 Invited i; +00088 strlcpy(i.channel,channel,CHANMAX); +00089 invites.push_back(i); +00090 } +00091 +00092 void userrec::RemoveInvite(char* channel) +00093 { +00094 log(DEBUG,"Removing invites"); +00095 if (channel) +00096 { +00097 if (invites.size()) +00098 { +00099 for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++) +00100 { +00101 if (i->channel) +00102 { +00103 if (!strcasecmp(i->channel,channel)) +00104 { +00105 invites.erase(i); +00106 return; +00107 } +00108 } +00109 } +00110 } +00111 } +00112 } +00113 +00114 bool userrec::HasPermission(char* command) +00115 { +00116 char TypeName[MAXBUF],Classes[MAXBUF],ClassName[MAXBUF],CommandList[MAXBUF]; +00117 char* myclass; +00118 char* mycmd; +00119 char* savept; +00120 char* savept2; +00121 +00122 // are they even an oper at all? +00123 if (strchr(this->modes,'o')) +00124 { +00125 log(DEBUG,"*** HasPermission: %s is an oper",this->nick); +00126 for (int j =0; j < ConfValueEnum("type",&config_f); j++) +00127 { +00128 ConfValue("type","name",j,TypeName,&config_f); +00129 if (!strcmp(TypeName,this->oper)) +00130 { +00131 log(DEBUG,"*** HasPermission: %s is an oper of type '%s'",this->nick,this->oper); +00132 ConfValue("type","classes",j,Classes,&config_f); +00133 char* myclass = strtok_r(Classes," ",&savept); +00134 while (myclass) +00135 { +00136 log(DEBUG,"*** HasPermission: checking classtype '%s'",myclass); +00137 for (int k =0; k < ConfValueEnum("class",&config_f); k++) +00138 { +00139 ConfValue("class","name",k,ClassName,&config_f); +00140 if (!strcmp(ClassName,myclass)) +00141 { +00142 ConfValue("class","commands",k,CommandList,&config_f); +00143 log(DEBUG,"*** HasPermission: found class named %s with commands: '%s'",ClassName,CommandList); +00144 +00145 +00146 mycmd = strtok_r(CommandList," ",&savept2); +00147 while (mycmd) +00148 { +00149 if (!strcasecmp(mycmd,command)) +00150 { +00151 log(DEBUG,"*** Command %s found, returning true",command); +00152 return true; +00153 } +00154 mycmd = strtok_r(NULL," ",&savept2); +00155 } +00156 } +00157 } +00158 myclass = strtok_r(NULL," ",&savept); +00159 } +00160 } +00161 } +00162 } +00163 return false; +00164 } +00165 +00166 +

    Generated on Thu Apr 7 20:14:21 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/users_8cpp.html b/docs/module-doc/users_8cpp.html index 33f785662..409351083 100644 --- a/docs/module-doc/users_8cpp.html +++ b/docs/module-doc/users_8cpp.html @@ -18,6 +18,8 @@

    Variables

    std::stringstream config_f +time_t TIME +

    Variable Documentation

    @@ -44,7 +46,31 @@ Definition at line 24 of file users.cpp. -


    Generated on Mon Apr 4 18:12:49 2005 for InspIRCd by +

    + + + + +
    + + +
    time_t TIME +
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 26 of file users.cpp.

    +


    Generated on Thu Apr 7 20:14:22 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/users_8h-source.html b/docs/module-doc/users_8h-source.html index 3cf8bf716..2d8c0ff66 100644 --- a/docs/module-doc/users_8h-source.html +++ b/docs/module-doc/users_8h-source.html @@ -122,7 +122,7 @@ 00200 00201 00202 #endif -

    Generated on Mon Apr 4 18:12:48 2005 for InspIRCd by +

    Generated on Thu Apr 7 20:14:21 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/users_8h.html b/docs/module-doc/users_8h.html index 19d6f7743..947e2a64d 100644 --- a/docs/module-doc/users_8h.html +++ b/docs/module-doc/users_8h.html @@ -243,7 +243,7 @@ Holds a complete list of all channels to which a user has been invited and has n Definition at line 75 of file users.h. -
    Generated on Mon Apr 4 18:12:50 2005 for InspIRCd by +
    Generated on Thu Apr 7 20:14:23 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/xline_8h-source.html b/docs/module-doc/xline_8h-source.html index 14c8d74da..fd67b7564 100644 --- a/docs/module-doc/xline_8h-source.html +++ b/docs/module-doc/xline_8h-source.html @@ -123,7 +123,7 @@ 00157 void sync_xlines(serverrec* serv, char* tcp_host); 00158 00159 #endif -

    Generated on Mon Apr 4 18:12:48 2005 for InspIRCd by +

    Generated on Thu Apr 7 20:14:21 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/xline_8h.html b/docs/module-doc/xline_8h.html index b14c53e16..5bac88ff6 100644 --- a/docs/module-doc/xline_8h.html +++ b/docs/module-doc/xline_8h.html @@ -1075,7 +1075,7 @@ -
    Generated on Mon Apr 4 18:12:50 2005 for InspIRCd by +
    Generated on Thu Apr 7 20:14:23 2005 for InspIRCd by doxygen 1.3.3
    -- cgit v1.2.3