]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_userip.cpp
Fix potential for duplicate SID if the SID is auto generated.
[user/henk/code/inspircd.git] / src / modules / m_userip.cpp
index 296d523008dd3f41ef09a561e0dd8c67334dbc97..81e2cf6c8ab956fe8ae4aca03b49b0c9506f4f4e 100644 (file)
@@ -12,9 +12,6 @@
  */
 
 #include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
 
 /* $ModDesc: Provides support for USERIP command */
 
@@ -45,7 +42,7 @@ class cmd_userip : public command_t
                user->WriteServ(retbuf);
 
                /* Dont send to the network */
-               return CMD_FAILURE;
+               return CMD_LOCALONLY;
        }
 };