summaryrefslogtreecommitdiff
path: root/modules/pseudoclients
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-07-20 02:55:25 -0400
committerAdam <Adam@anope.org>2013-07-20 03:06:20 -0400
commit6db01869479c878753fc6da49f2fb0bc44511359 (patch)
tree130e3afdc6d524eae1bb9a083dd60c84f523e1cb /modules/pseudoclients
parent492eac20a8e2dfdbdbd5a83e41ed880af76cff79 (diff)
Fix not setting the correct compile flags on modules and fix the resulting warnings
Diffstat (limited to 'modules/pseudoclients')
-rw-r--r--modules/pseudoclients/chanserv.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/modules/pseudoclients/chanserv.cpp b/modules/pseudoclients/chanserv.cpp
index b7fb67daf..be2c074ec 100644
--- a/modules/pseudoclients/chanserv.cpp
+++ b/modules/pseudoclients/chanserv.cpp
@@ -231,7 +231,7 @@ class ChanServCore : public Module, public ChanServService
"lists and settings for any channel."));
}
- EventReturn OnCheckModes(Channel *c) anope_override
+ void OnCheckModes(Channel *c) anope_override
{
const Anope::string &require = Config->GetModule(this)->Get<const Anope::string>("require", "r");
if (!require.empty())
@@ -241,8 +241,6 @@ class ChanServCore : public Module, public ChanServService
else
c->SetModes(NULL, false, "-%s", require.c_str());
}
-
- return EVENT_CONTINUE;
}
void OnCreateChan(ChannelInfo *ci) anope_override
@@ -354,12 +352,12 @@ class ChanServCore : public Module, public ChanServService
ChannelInfo *ci = it->second;
if (persist->Get(ci))
{
- bool created;
- ci->c = Channel::FindOrCreate(ci->name, created, ci->time_registered);
+ bool c;
+ ci->c = Channel::FindOrCreate(ci->name, c, ci->time_registered);
if (ModeManager::FindChannelModeByName("PERM") != NULL)
{
- if (created)
+ if (c)
IRCD->SendChannel(ci->c);
ci->c->SetMode(NULL, "PERM");
}