X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_chgident.cpp;h=e36b5332980797386adeee9597d336f981069dce;hb=5a88424dbb33ac825aa0b9b6525179329ee75519;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..e36b53329 100644 --- a/src/modules/m_chgident.cpp +++ b/src/modules/m_chgident.cpp @@ -6,8 +6,8 @@ /* $ModDesc: Provides support for the CHGIDENT command */ - - +/** Handle /CHGIDENT + */ class cmd_chgident : public command_t { public: @@ -28,9 +28,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 +60,7 @@ public: virtual Version GetVersion() { - return Version(1,0,0,0,VF_VENDOR); + return Version(1,1,0,0,VF_VENDOR,API_VERSION); } };