summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-21 01:04:53 +0000
committerpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-21 01:04:53 +0000
commit930c2feca5454baf1d1ec87ba004bcb631078476 (patch)
tree8fcce688b413b667b222ba94916f623b2eedd6fc
parentb3e9ee509dcee7004162276147ace76795730167 (diff)
Crude hotfix to what's been crashing chatspike
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6051 e03df62e-2008-0410-955e-edbf42e46eb7
-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++)
{