diff options
| author | 2005-12-13 16:31:52 +0000 | |
|---|---|---|
| committer | 2005-12-13 16:31:52 +0000 | |
| commit | b05c15983a4331d7ea1faa190fdc95a028ba2223 (patch) | |
| tree | 1547f897da4b3c12ccd9fdb5ff9a25f1aabcd128 /src/inspircd.cpp | |
| parent | Made MAXCHANS growable for opers/ulines (growing of list not implemented yet) (diff) | |
| download | inspircd++-b05c15983a4331d7ea1faa190fdc95a028ba2223.tar.gz inspircd++-b05c15983a4331d7ea1faa190fdc95a028ba2223.tar.bz2 inspircd++-b05c15983a4331d7ea1faa190fdc95a028ba2223.zip | |
Modified channel joining to allow > MAXCHANS for opers/remote (when complete)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2368 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd.cpp')
| -rw-r--r-- | src/inspircd.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 3a7695fd2..62731ecf9 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -716,7 +716,7 @@ chanrec* add_channel(userrec *user, const char* cn, const char* key, bool overri log(DEBUG,"Passed channel checks"); - for (int index =0; index < user->chans.size(); index++) + for (unsigned int index =0; index < user->chans.size(); index++) { log(DEBUG,"Check location %d",index); if (user->chans[index].channel == NULL) @@ -787,7 +787,7 @@ chanrec* del_channel(userrec *user, const char* cname, const char* reason, bool FOREACH_MOD OnUserPart(user,Ptr); log(DEBUG,"del_channel: removing: %s %s",user->nick,Ptr->name); - for (int i =0; i < user->chans.size(); i++) + for (unsigned int i =0; i < user->chans.size(); i++) { /* zap it from the channel list of the user */ if (user->chans[i].channel == Ptr) @@ -882,7 +882,7 @@ void kick_channel(userrec *src,userrec *user, chanrec *Ptr, char* reason) FOREACH_MOD OnUserKick(src,user,Ptr,reason); - for (int i =0; i < user->chans.size(); i++) + for (unsigned int i =0; i < user->chans.size(); i++) { /* zap it from the channel list of the user */ if (user->chans[i].channel) |
