From 2a886acbedb6b6386dbff3e591b0d4035d516b2a Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 19 Mar 2017 18:36:03 -0400 Subject: Get rid of relying on if(this) in WhoSends() --- include/modules/chanserv/channel.h | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'include/modules') diff --git a/include/modules/chanserv/channel.h b/include/modules/chanserv/channel.h index 29e8ef9d7..474a4081a 100644 --- a/include/modules/chanserv/channel.h +++ b/include/modules/chanserv/channel.h @@ -138,23 +138,7 @@ class CoreExport Channel : public Serialize::Object /** Find which bot should send mode/topic/etc changes for this channel * @return The bot */ - ServiceBot *WhoSends() - { - if (this) - if (ServiceBot *bi = GetBot()) - return bi; - - ServiceBot *ChanServ = Config->GetClient("ChanServ"); - if (ChanServ) - return ChanServ; - -#warning "if(this)" - //XXX -// if (!BotListByNick->empty()) -// return BotListByNick->begin()->second; - - return NULL; - } + virtual ServiceBot *WhoSends() anope_abstract; /** Get an entry from the channel access list by index * -- cgit