diff options
| author | 2006-04-21 10:50:26 +0000 | |
|---|---|---|
| committer | 2006-04-21 10:50:26 +0000 | |
| commit | 009c5b0562c280743033ea6ca2e673201a8e218c (patch) | |
| tree | 971c4f0df5a5dc48039ee92b4d3ecfea0175ab7a /src/channels.cpp | |
| parent | Typo (diff) | |
| download | inspircd++-009c5b0562c280743033ea6ca2e673201a8e218c.tar.gz inspircd++-009c5b0562c280743033ea6ca2e673201a8e218c.tar.bz2 inspircd++-009c5b0562c280743033ea6ca2e673201a8e218c.zip | |
Forward-port of 1.0.4 tweak
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3903 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/channels.cpp')
| -rw-r--r-- | src/channels.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/channels.cpp b/src/channels.cpp index dc42ea651..f07ad01bd 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -426,6 +426,17 @@ chanrec* add_channel(userrec *user, const char* cn, const char* key, bool overri } } } + else + { + for (unsigned int index =0; index < user->chans.size(); index++) + { + if (user->chans[index]->channel == Ptr) + { + user->chans[index]->channel = NULL; + user->chans[index]->uc_modes = 0; + } + } + } return NULL; } |
