From 6db01869479c878753fc6da49f2fb0bc44511359 Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 20 Jul 2013 02:55:25 -0400 Subject: Fix not setting the correct compile flags on modules and fix the resulting warnings --- modules/pseudoclients/chanserv.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'modules/pseudoclients') 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("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"); } -- cgit