From a266dadd1351d10b56ec187c7b6f7af75350ed68 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 12 May 2005 02:26:05 +0000 Subject: Documented new recvq and sendq stuff git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1367 e03df62e-2008-0410-955e-edbf42e46eb7 --- docs/module-doc/channels_8cpp-source.html | 75 +++++++++++++++---------------- 1 file changed, 35 insertions(+), 40 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 ac07b4d77..f91ebef7e 100644 --- a/docs/module-doc/channels_8cpp-source.html +++ b/docs/module-doc/channels_8cpp-source.html @@ -100,7 +100,7 @@ 00093 00094 extern int boundPortCount; 00095 extern int portCount; -00096 extern int UDPportCount; +00096 extern int SERVERportCount; 00097 extern int ports[MAXSOCKS]; 00098 extern int defaultRoute; 00099 @@ -199,56 +199,51 @@ 00192 { 00193 if ((i->mode == mode) && (!strcasecmp(this->name,i->channel))) 00194 { -00195 return std::string(i->parameter); +00195 return i->parameter; 00196 } 00197 } 00198 } -00199 return std::string(""); +00199 return ""; 00200 } 00201 00202 void chanrec::IncUserCounter() 00203 { -00204 this->users++; -00205 log(DEBUG,"Incremented channel user count for %s to %lu",name,(unsigned long)users); -00206 } -00207 -00208 void chanrec::DecUserCounter() -00209 { -00210 if (this->users > 0) -00211 this->users--; -00212 log(DEBUG,"Decremented channel user count for %s to %lu",name,(unsigned long)users); +00204 } +00205 +00206 void chanrec::DecUserCounter() +00207 { +00208 } +00209 +00210 long chanrec::GetUserCounter() +00211 { +00212 return (this->internal_userlist.size()); 00213 } 00214 -00215 long chanrec::GetUserCounter() +00215 void chanrec::AddUser(char* castuser) 00216 { -00217 return (this->users); -00218 } -00219 -00220 void chanrec::AddUser(char* castuser) -00221 { -00222 internal_userlist.push_back(castuser); -00223 log(DEBUG,"Added casted user to channel's internal list"); -00224 } -00225 -00226 void chanrec::DelUser(char* castuser) -00227 { -00228 for (std::vector<char*>::iterator a = internal_userlist.begin(); a < internal_userlist.end(); a++) -00229 { -00230 if (*a == castuser) -00231 { -00232 log(DEBUG,"Removed casted user from channel's internal list"); -00233 internal_userlist.erase(a); -00234 return; -00235 } -00236 } -00237 log(DEBUG,"BUG BUG BUG! Attempt to remove an uncasted user from the internal list of %s!",name); +00217 internal_userlist.push_back(castuser); +00218 log(DEBUG,"Added casted user to channel's internal list"); +00219 } +00220 +00221 void chanrec::DelUser(char* castuser) +00222 { +00223 for (std::vector<char*>::iterator a = internal_userlist.begin(); a < internal_userlist.end(); a++) +00224 { +00225 if (*a == castuser) +00226 { +00227 log(DEBUG,"Removed casted user from channel's internal list"); +00228 internal_userlist.erase(a); +00229 return; +00230 } +00231 } +00232 log(DEBUG,"BUG BUG BUG! Attempt to remove an uncasted user from the internal list of %s!",name); +00233 } +00234 +00235 std::vector<char*> *chanrec::GetUsers() +00236 { +00237 return &internal_userlist; 00238 } -00239 -00240 std::vector<char*> *chanrec::GetUsers() -00241 { -00242 return &internal_userlist; -00243 } -
Generated on Sat May 7 15:34:20 2005 for InspIRCd by +
Generated on Thu May 12 02:25:11 2005 for InspIRCd by doxygen 1.3.3
-- cgit v1.2.3