diff options
author | Adam <Adam@anope.org> | 2011-12-27 23:11:14 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-12-27 23:11:14 -0500 |
commit | 150831c1a6538938c13c06a10f1eede2079a8aa4 (patch) | |
tree | 9bfbd7323e79c8e21cc2c02c2e51047ca942f31e /modules/protocol/bahamut.cpp | |
parent | 1a4157b7f40f928fb1f3092cc9069f4b359f8a40 (diff) |
Made capab management a bit simplier
Diffstat (limited to 'modules/protocol/bahamut.cpp')
-rw-r--r-- | modules/protocol/bahamut.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/protocol/bahamut.cpp b/modules/protocol/bahamut.cpp index c4b7b1bf0..b4e4467dc 100644 --- a/modules/protocol/bahamut.cpp +++ b/modules/protocol/bahamut.cpp @@ -49,7 +49,7 @@ class BahamutIRCdProto : public IRCDProto { void SendModeInternal(const BotInfo *source, const Channel *dest, const Anope::string &buf) { - if (Capab.HasFlag(CAPAB_TSMODE)) + if (Capab.count("TSMODE") > 0) UplinkSocket::Message(source ? source->nick : Config->ServerName) << "MODE " << dest->name << " " << dest->creation_time << " " << buf; else UplinkSocket::Message(source ? source->nick : Config->ServerName) << "MODE " << dest->name << " " << buf; |