X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=docs%2Fmodule-doc%2Fclasschanrec.html;h=00d40233e776bac5a39e2a1c807016e4c2d69c5c;hb=654ff4ae2f06704de2beb1050021c8196f693cb5;hp=c7c0a6a1b975f445c92e04043b518085e73f8e46;hpb=52899de0ff2d62ca0542b243c41626010bf62083;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/docs/module-doc/classchanrec.html b/docs/module-doc/classchanrec.html index c7c0a6a1b..00d40233e 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 111 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.

-

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 }
+
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 184 of file channels.cpp. -

-References custom_mode_params. -

-

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 }
+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 178 of file channels.cpp. +Definition at line 180 of file channels.cpp.

References DEBUG.

-

00179 {
-00180         log(DEBUG,"Checking ISCustomModeSet: %c %s",mode,this->custom_modes);
-00181         return (strchr(this->custom_modes,mode) != 0);
-00182 }
+
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 122 of file channels.cpp. -

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

-

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 }
+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 147 of file channels.cpp. -

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

-Referenced by SetCustomMode(). -

-

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 }
+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(), and Server::PseudoToUser().

@@ -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(), and Server::PseudoToUser().

@@ -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(), and Server::PseudoToUser().

@@ -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(), and Server::PseudoToUser().

@@ -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(), and Server::PseudoToUser().


The documentation for this class was generated from the following files: -
Generated on Fri Mar 25 03:49:31 2005 for InspIRCd by +
Generated on Wed Apr 13 13:07:01 2005 for InspIRCd by doxygen 1.3.3