diff options
Diffstat (limited to 'src/users.cpp')
-rw-r--r-- | src/users.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/users.cpp b/src/users.cpp index 93f1c6d84..45071d231 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -1667,9 +1667,6 @@ void userrec::WriteCommonExcept(const std::string &text) for (UCListIter v = this->chans.begin(); v != this->chans.end(); v++) { - chanrec* c = ServerInstance->FindChan(v->first->name); - if (!c) - continue; CUList *ulist = v->first->GetUsers(); for (CUList::iterator i = ulist->begin(); i != ulist->end(); i++) { @@ -1971,6 +1968,7 @@ void userrec::PurgeEmptyChannels() FOREACH_MOD(I_OnChannelDelete,OnChannelDelete(i2->second)); DELETE(i2->second); ServerInstance->chanlist.erase(i2); + this->chans.erase(*n); } } |