X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmodules%2Fm_setident.cpp;h=7823b041b86db4c898be6e40c80c3408b7222da1;hb=8cebe2878f3878afce6f643d93668155cb26801d;hp=867404ddb1da4e07ec77e58fe4afe6d2b159cf99;hpb=b6dbd6caab62bc2c0d11ce5a45d511611eb9c2ef;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_setident.cpp b/src/modules/m_setident.cpp index 867404ddb..7823b041b 100644 --- a/src/modules/m_setident.cpp +++ b/src/modules/m_setident.cpp @@ -48,7 +48,7 @@ class CommandSetident : public Command } user->ChangeIdent(parameters[0].c_str()); - ServerInstance->SNO->WriteToSnoMask('A', "%s used SETIDENT to change their ident to '%s'", user->nick.c_str(), user->ident.c_str()); + ServerInstance->SNO->WriteGlobalSno('a', "%s used SETIDENT to change their ident to '%s'", user->nick.c_str(), user->ident.c_str()); return CMD_SUCCESS; } @@ -57,15 +57,12 @@ class CommandSetident : public Command class ModuleSetIdent : public Module { - CommandSetident* mycommand; + CommandSetident cmd; public: - ModuleSetIdent(InspIRCd* Me) : Module(Me) + ModuleSetIdent(InspIRCd* Me) : Module(Me), cmd(Me) { - - mycommand = new CommandSetident(ServerInstance); - ServerInstance->AddCommand(mycommand); - + ServerInstance->AddCommand(&cmd); } virtual ~ModuleSetIdent()