X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_userip.cpp;h=86b3cd02ee8ed9951135f6bd06555d7d46734114;hb=be36d92f3dcb0ac3772daebff43a5ecfe0a2d364;hp=341a666158f7a1c090a9891322aa1597f4379cdb;hpb=71b73c76bc0fb46a982a5d1611aa24e9b678b03c;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_userip.cpp b/src/modules/m_userip.cpp index 341a66615..86b3cd02e 100644 --- a/src/modules/m_userip.cpp +++ b/src/modules/m_userip.cpp @@ -2,43 +2,36 @@ * | Inspire Internet Relay Chat Daemon | * +------------------------------------+ * - * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * - * - * - * Written by Craig Edwards, Craig McLure, and others. + * InspIRCd: (C) 2002-2007 InspIRCd Development Team + * See: http://www.inspircd.org/wiki/index.php/Credits + * * This program is free but copyrighted software; see * the file COPYING for details. * * --------------------------------------------------- */ -using namespace std; - #include #include #include "users.h" #include "channels.h" #include "modules.h" - #include "inspircd.h" /* $ModDesc: Provides support for USERIP command */ - - - +/** Handle /USERIP + */ class cmd_userip : public command_t { public: - cmd_userip (InspIRCd* Instance) : command_t(Instance,"USERIP", 'o', 1) + cmd_userip (InspIRCd* Instance) : command_t(Instance,"USERIP", 'o', 1) { this->source = "m_userip.so"; syntax = "{,}"; } - void Handle (const char** parameters, int pcnt, userrec *user) + CmdResult Handle (const char** parameters, int pcnt, userrec *user) { char Return[MAXBUF],junk[MAXBUF]; snprintf(Return,MAXBUF,"340 %s :",user->nick); @@ -52,6 +45,9 @@ class cmd_userip : public command_t } } user->WriteServ(Return); + + /* Dont send to the network */ + return CMD_FAILURE; } }; @@ -83,7 +79,7 @@ class ModuleUserIP : public Module virtual Version GetVersion() { - return Version(1,0,0,1,VF_VENDOR); + return Version(1,1,0,1,VF_VENDOR,API_VERSION); } };