]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_antibear.cpp
Forward port r9782: show IP (not unknown) for unauthed connections
[user/henk/code/inspircd.git] / src / modules / m_antibear.cpp
index 874ff43da16952fafd4faf03bf6c1e15f0f0feef..633b1e332795fc91dcb71b22ac4cc88ef7734272 100644 (file)
@@ -65,9 +65,9 @@ class ModuleAntiBear : public Module
 
        virtual int OnUserRegister(User* user)
        {
-               user->WriteNumeric(439, "%s :This server has anti-spambot mechanisms enabled.", user->nick);
-               user->WriteNumeric(931, "%s :Malicious bots, spammers, and other automated systems of dubious origin are NOT welcome here.", user->nick);
-               user->WriteServ("PRIVMSG %s :\1TIME\1", user->nick);
+               user->WriteNumeric(439, "%s :This server has anti-spambot mechanisms enabled.", user->nick.c_str());
+               user->WriteNumeric(931, "%s :Malicious bots, spammers, and other automated systems of dubious origin are NOT welcome here.", user->nick.c_str());
+               user->WriteServ("PRIVMSG %s :\1TIME\1", user->nick.c_str());
                user->Extend("antibear_timewait");
                return 0;
        }