]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_cycle.cpp
Forward port r9782: show IP (not unknown) for unauthed connections
[user/henk/code/inspircd.git] / src / modules / m_cycle.cpp
index 6c4ec72ac34f12b61741fb80d99bea08bb71e5fd..be57f8af1a9b1b30275128109be6ab2c45a6bc6c 100644 (file)
@@ -40,7 +40,7 @@ class CommandCycle : public Command
                
                if (!channel)
                {
-                       user->WriteNumeric(403, "%s %s :No such channel", user->nick, parameters[0].c_str());
+                       user->WriteNumeric(403, "%s %s :No such channel", user->nick.c_str(), parameters[0].c_str());
                        return CMD_FAILURE;
                }
                
@@ -69,7 +69,7 @@ class CommandCycle : public Command
                }
                else
                {
-                       user->WriteNumeric(442, "%s %s :You're not on that channel", user->nick, channel->name);
+                       user->WriteNumeric(442, "%s %s :You're not on that channel", user->nick.c_str(), channel->name.c_str());
                }
 
                return CMD_FAILURE;