summaryrefslogtreecommitdiff
path: root/src/chanserv.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/chanserv.cpp')
-rw-r--r--src/chanserv.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/chanserv.cpp b/src/chanserv.cpp
index 338d0f311..b2dffcfd2 100644
--- a/src/chanserv.cpp
+++ b/src/chanserv.cpp
@@ -837,7 +837,7 @@ ChanServTimer::ChanServTimer(Channel *chan) : Timer(Config->CSInhabit), c(chan)
{
if (c->ci)
c->ci->SetFlag(CI_INHABIT);
- if (!c->ci->bi)
+ if (!c->ci || !c->ci->bi)
ChanServ->Join(*c);
else if (!c->FindUser(c->ci->bi))
c->ci->bi->Join(*c);