summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAdam <adam@sigterm.info>2014-12-28 18:11:37 -0500
committerAdam <adam@sigterm.info>2014-12-28 18:11:37 -0500
commit03f6e265508c40880ddfb7a695c107821f399bda (patch)
tree72d73db17dd34345ddf4b98c563e1c2334095fd0 /modules
parentc554e85063f9a730358512a1047eb25609ebf5c9 (diff)
parentd9c9f2a4077e695598f17961da64b8d50225e2f0 (diff)
Merge pull request #95 from webczat/2.0x
fix chanserv.cpp using Get for bool extensible items
Diffstat (limited to 'modules')
-rw-r--r--modules/pseudoclients/chanserv.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/modules/pseudoclients/chanserv.cpp b/modules/pseudoclients/chanserv.cpp
index 3640a006c..41a62d7b4 100644
--- a/modules/pseudoclients/chanserv.cpp
+++ b/modules/pseudoclients/chanserv.cpp
@@ -367,10 +367,6 @@ class ChanServCore : public Module, public ChanServService
if (inhabit.HasExt(c))
return EVENT_STOP;
- /* Channel is persistent, it shouldn't be deleted and the service bot should stay */
- if (c->ci && persist && persist->Get(c->ci))
- return EVENT_STOP;
-
return EVENT_CONTINUE;
}
@@ -382,7 +378,7 @@ class ChanServCore : public Module, public ChanServService
for (registered_channel_map::iterator it = RegisteredChannelList->begin(), it_end = RegisteredChannelList->end(); it != it_end; ++it)
{
ChannelInfo *ci = it->second;
- if (persist->Get(ci))
+ if (persist->HasExt(ci))
{
bool c;
ci->c = Channel::FindOrCreate(ci->name, c, ci->time_registered);
@@ -416,7 +412,7 @@ class ChanServCore : public Module, public ChanServService
if (ci->c->HasMode("PERM"))
persist->Set(ci);
/* Persist may be in def cflags, set it here */
- else if (persist->Get(ci))
+ else if (persist->HasExt(ci))
ci->c->SetMode(NULL, "PERM");
}