summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/users.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 0266d0e44..93f1c6d84 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -1667,6 +1667,9 @@ 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++)
{