]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_userip.cpp
Change /CHECK <#channel> to correctly report timestamp since it might have been TS...
[user/henk/code/inspircd.git] / src / modules / m_userip.cpp
index 12cfd0606953db7dd5378a46a47fe52d245d81e5..7ffeb383a1fbe4b7ab7adc5d7600e83bb1a8ef20 100644 (file)
@@ -29,6 +29,7 @@ class CommandUserip : public Command
        CmdResult Handle (const std::vector<std::string> &parameters, User *user)
        {
                std::string retbuf = std::string("340 ") + user->nick + " :";
+               int nicks = 0;
 
                for (int i = 0; i < (int)parameters.size(); i++)
                {
@@ -41,10 +42,12 @@ class CommandUserip : public Command
                                else
                                        retbuf += "+";
                                retbuf += u->ident + "@" + u->GetIPString() + " ";
+                               nicks++;
                        }
                }
 
-               user->WriteServ(retbuf);
+               if (nicks != 0)
+                       user->WriteServ(retbuf);
 
                /* Dont send to the network */
                return CMD_LOCALONLY;