summaryrefslogtreecommitdiff
path: root/src/chanserv.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-09-19 12:42:08 -0400
committerAdam <Adam@anope.org>2010-09-19 12:42:08 -0400
commit22f2b25f97ac2f96d8e7a5a9731f28483e4d0a1f (patch)
tree1b44038961b457363450ac9296532bc104d722a7 /src/chanserv.cpp
parentebd2997b79a44ba036277efbb837aa0701d8c782 (diff)
Fixed joining chanserv enforcers to unregistered channels
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);