From 930c2feca5454baf1d1ec87ba004bcb631078476 Mon Sep 17 00:00:00 2001 From: peavey Date: Thu, 21 Dec 2006 01:04:53 +0000 Subject: Crude hotfix to what's been crashing chatspike git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6051 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/users.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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++) { -- cgit v1.2.3