summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2017-03-19 18:36:03 -0400
committerAdam <Adam@anope.org>2017-03-19 18:36:03 -0400
commit2a886acbedb6b6386dbff3e591b0d4035d516b2a (patch)
tree765218b2fc476e9b1517d7f1e4aa78f57de87752 /include
parentf237405a52f6b8efb606c5181ffe3bd75a6a6a8a (diff)
Get rid of relying on if(this) in WhoSends()
Diffstat (limited to 'include')
-rw-r--r--include/modules/chanserv/channel.h18
1 files changed, 1 insertions, 17 deletions
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
*