From f326e475e311bf0fa211ccd052ba38d8235efa12 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 1 Apr 2005 17:07:42 +0000 Subject: Updated documentation (html) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@937 e03df62e-2008-0410-955e-edbf42e46eb7 --- docs/module-doc/channels_8cpp-source.html | 289 +++++++++++++++--------------- 1 file changed, 145 insertions(+), 144 deletions(-) (limited to 'docs/module-doc/channels_8cpp-source.html') diff --git a/docs/module-doc/channels_8cpp-source.html b/docs/module-doc/channels_8cpp-source.html index 2e474e22d..70440fd36 100644 --- a/docs/module-doc/channels_8cpp-source.html +++ b/docs/module-doc/channels_8cpp-source.html @@ -57,152 +57,153 @@ 00050 #include "message.h" 00051 #include "mode.h" 00052 #include "xline.h" -00053 -00054 #ifdef GCC3 -00055 #define nspace __gnu_cxx -00056 #else -00057 #define nspace std -00058 #endif -00059 -00060 using namespace std; -00061 -00062 extern int MODCOUNT; -00063 extern vector<Module*> modules; -00064 extern vector<ircd_module*> factory; -00065 -00066 extern int LogLevel; -00067 extern char ServerName[MAXBUF]; -00068 extern char Network[MAXBUF]; -00069 extern char ServerDesc[MAXBUF]; -00070 extern char AdminName[MAXBUF]; -00071 extern char AdminEmail[MAXBUF]; -00072 extern char AdminNick[MAXBUF]; -00073 extern char diepass[MAXBUF]; -00074 extern char restartpass[MAXBUF]; -00075 extern char motd[MAXBUF]; -00076 extern char rules[MAXBUF]; -00077 extern char list[MAXBUF]; -00078 extern char PrefixQuit[MAXBUF]; -00079 extern char DieValue[MAXBUF]; -00080 -00081 extern int debugging; -00082 extern int WHOWAS_STALE; -00083 extern int WHOWAS_MAX; -00084 extern int DieDelay; -00085 extern time_t startup_time; -00086 extern int NetBufferSize; -00087 int MaxWhoResults; -00088 extern time_t nb_start; -00089 -00090 extern std::vector<int> fd_reap; -00091 extern std::vector<std::string> module_names; -00092 -00093 extern int boundPortCount; -00094 extern int portCount; -00095 extern int UDPportCount; -00096 extern int ports[MAXSOCKS]; -00097 extern int defaultRoute; -00098 -00099 extern std::vector<long> auth_cookies; -00100 extern std::stringstream config_f; -00101 -00102 extern serverrec* me[32]; -00103 -00104 extern FILE *log_file; -00105 +00053 #include "inspstring.h" +00054 +00055 #ifdef GCC3 +00056 #define nspace __gnu_cxx +00057 #else +00058 #define nspace std +00059 #endif +00060 +00061 using namespace std; +00062 +00063 extern int MODCOUNT; +00064 extern std::vector<Module*> modules; +00065 extern std::vector<ircd_module*> factory; +00066 +00067 extern int LogLevel; +00068 extern char ServerName[MAXBUF]; +00069 extern char Network[MAXBUF]; +00070 extern char ServerDesc[MAXBUF]; +00071 extern char AdminName[MAXBUF]; +00072 extern char AdminEmail[MAXBUF]; +00073 extern char AdminNick[MAXBUF]; +00074 extern char diepass[MAXBUF]; +00075 extern char restartpass[MAXBUF]; +00076 extern char motd[MAXBUF]; +00077 extern char rules[MAXBUF]; +00078 extern char list[MAXBUF]; +00079 extern char PrefixQuit[MAXBUF]; +00080 extern char DieValue[MAXBUF]; +00081 +00082 extern int debugging; +00083 extern int WHOWAS_STALE; +00084 extern int WHOWAS_MAX; +00085 extern int DieDelay; +00086 extern time_t startup_time; +00087 extern int NetBufferSize; +00088 int MaxWhoResults; +00089 extern time_t nb_start; +00090 +00091 extern std::vector<int> fd_reap; +00092 extern std::vector<std::string> module_names; +00093 +00094 extern int boundPortCount; +00095 extern int portCount; +00096 extern int UDPportCount; +00097 extern int ports[MAXSOCKS]; +00098 extern int defaultRoute; +00099 +00100 extern std::vector<long> auth_cookies; +00101 extern std::stringstream config_f; +00102 +00103 extern serverrec* me[32]; +00104 +00105 extern FILE *log_file; 00106 -00107 using namespace std; -00108 -00109 std::vector<ModeParameter> custom_mode_params; -00110 -00111 chanrec::chanrec() -00112 { -00113 strcpy(name,""); -00114 strcpy(custom_modes,""); -00115 strcpy(topic,""); -00116 strcpy(setby,""); -00117 strcpy(key,""); -00118 created = topicset = limit = 0; -00119 topiclock = noexternal = inviteonly = moderated = secret = c_private = false; -00120 } -00121 -00122 void chanrec::SetCustomMode(char mode,bool mode_on) -00123 { -00124 if (mode_on) { -00125 char m[3]; -00126 m[0] = mode; -00127 m[1] = '\0'; -00128 if (!strchr(this->custom_modes,mode)) -00129 { -00130 strlcat(custom_modes,m,MAXMODES); -00131 } -00132 log(DEBUG,"Custom mode %c set",mode); -00133 } -00134 else { -00135 -00136 std::string a = this->custom_modes; -00137 int pos = a.find(mode); -00138 a.erase(pos,1); -00139 strncpy(this->custom_modes,a.c_str(),MAXMODES); -00140 -00141 log(DEBUG,"Custom mode %c removed: modelist='%s'",mode,this->custom_modes); -00142 this->SetCustomModeParam(mode,"",false); -00143 } -00144 } -00145 +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 -00147 void chanrec::SetCustomModeParam(char mode,char* parameter,bool mode_on) -00148 { -00149 -00150 log(DEBUG,"SetCustomModeParam called"); -00151 ModeParameter M; -00152 M.mode = mode; -00153 strlcpy(M.channel,this->name,CHANMAX); -00154 strlcpy(M.parameter,parameter,MAXBUF); -00155 if (mode_on) -00156 { -00157 log(DEBUG,"Custom mode parameter %c %s added",mode,parameter); -00158 custom_mode_params.push_back(M); -00159 } -00160 else -00161 { -00162 if (custom_mode_params.size()) -00163 { -00164 for (vector<ModeParameter>::iterator i = custom_mode_params.begin(); i < custom_mode_params.end(); i++) -00165 { -00166 if ((i->mode == mode) && (!strcasecmp(this->name,i->channel))) -00167 { -00168 log(DEBUG,"Custom mode parameter %c %s removed",mode,parameter); -00169 custom_mode_params.erase(i); -00170 return; -00171 } -00172 } -00173 } -00174 log(DEBUG,"*** BUG *** Attempt to remove non-existent mode parameter!"); -00175 } -00176 } -00177 -00178 bool chanrec::IsCustomModeSet(char mode) -00179 { -00180 log(DEBUG,"Checking ISCustomModeSet: %c %s",mode,this->custom_modes); -00181 return (strchr(this->custom_modes,mode) != 0); -00182 } -00183 -00184 std::string chanrec::GetModeParameter(char mode) -00185 { -00186 if (custom_mode_params.size()) -00187 { -00188 for (vector<ModeParameter>::iterator i = custom_mode_params.begin(); i < custom_mode_params.end(); i++) -00189 { -00190 if ((i->mode == mode) && (!strcasecmp(this->name,i->channel))) -00191 { -00192 return std::string(i->parameter); -00193 } -00194 } -00195 } -00196 return std::string(""); -00197 } -
Generated on Fri Mar 25 03:49:27 2005 for InspIRCd by +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 Mar 28 21:09:24 2005 for InspIRCd by doxygen 1.3.3
-- cgit v1.2.3