X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_chgident.cpp;h=c1a6b3f07043cff014ad33fb2aa261c895679ae8;hb=aec772bdc98bdcfe35c2fc8e74942403c9efcc4d;hp=1c9e3f6f4e843492937db02bbfbaa7acc95b303e;hpb=71ad308979d9c9129507fdf85d4305fd12e18bea;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_chgident.cpp b/src/modules/m_chgident.cpp index 1c9e3f6f4..c1a6b3f07 100644 --- a/src/modules/m_chgident.cpp +++ b/src/modules/m_chgident.cpp @@ -1,13 +1,25 @@ +/* +------------------------------------+ + * | Inspire Internet Relay Chat Daemon | + * +------------------------------------+ + * + * 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. + * + * --------------------------------------------------- + */ + #include #include "users.h" #include "modules.h" - #include "inspircd.h" /* $ModDesc: Provides support for the CHGIDENT command */ - - +/** Handle /CHGIDENT + */ class cmd_chgident : public command_t { public: @@ -28,9 +40,9 @@ class cmd_chgident : public command_t user->WriteServ("NOTICE %s :*** Invalid characters in ident", user->nick); return CMD_FAILURE; } - - ServerInstance->WriteOpers("%s used CHGIDENT to change %s's ident from '%s' to '%s'", user->nick, dest->nick, dest->ident, parameters[1]); + dest->ChangeIdent(parameters[1]); + ServerInstance->WriteOpers("%s used CHGIDENT to change %s's ident to '%s'", user->nick, dest->nick, dest->ident); return CMD_SUCCESS; } else @@ -60,7 +72,7 @@ public: virtual Version GetVersion() { - return Version(1,0,0,0,VF_VENDOR); + return Version(1,1,0,0,VF_VENDOR,API_VERSION); } };