From f2cdf27dd9c45f91f4184b81ea3b9be7c5d88173 Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Thu, 11 Apr 2013 23:47:45 +0200 Subject: Replace hardcoded mode letters passed to IsModeSet() and GetModeParameter() with ModeHandlers, part 1 --- src/modules/m_botmode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_botmode.cpp') diff --git a/src/modules/m_botmode.cpp b/src/modules/m_botmode.cpp index ca1a9d5c8..7afb7a999 100644 --- a/src/modules/m_botmode.cpp +++ b/src/modules/m_botmode.cpp @@ -54,7 +54,7 @@ class ModuleBotMode : public Module void OnWhois(User* src, User* dst) CXX11_OVERRIDE { - if (dst->IsModeSet('B')) + if (dst->IsModeSet(bm)) { ServerInstance->SendWhoisLine(src, dst, 335, src->nick+" "+dst->nick+" :is a bot on "+ServerInstance->Config->Network); } -- cgit v1.3.1-10-gc9f91