]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_botmode.cpp
Added ability to send and receive a challenge, dont do anything with it yet
[user/henk/code/inspircd.git] / src / modules / m_botmode.cpp
index 1007fd4d9dd054193d473271a45aeff868af5604..2f9a3fafdbdb09e22823c4fe505f2438f393d4e7 100644 (file)
@@ -65,7 +65,8 @@ class ModuleBotMode : public Module
        {
                
                bm = new BotMode(ServerInstance);
-               ServerInstance->AddMode(bm, 'B');
+               if (!ServerInstance->AddMode(bm, 'B'))
+                       throw ModuleException("Could not add new modes!");
        }
 
        void Implements(char* List)
@@ -88,7 +89,7 @@ class ModuleBotMode : public Module
        {
                if (dst->IsModeSet('B'))
                {
-                       ServerInstance->SendWhoisLine(src, dst, 335, std::string(src->nick)+" "+std::string(dst->nick)+" :is a \2bot\2 on "+ServerInstance->Config->Network);
+                       ServerInstance->SendWhoisLine(src, dst, 335, std::string(src->nick)+" "+std::string(dst->nick)+" :is a bot on "+ServerInstance->Config->Network);
                }
        }