* +------------------------------------+
*
* InspIRCd: (C) 2002-2009 InspIRCd Development Team
- * See: http://www.inspircd.org/wiki/index.php/Credits
+ * See: http://wiki.inspircd.org/Credits
*
* This program is free but copyrighted software; see
* the file COPYING for details.
}
}
- /* Have we hit users server yet? */
+ /* Have we hit target's server yet? */
if (target && IS_LOCAL(target))
{
std::string oldnick = user->nick;
std::string newnick = target->nick;
if (target->ForceNickChange(parameters[1].c_str()))
{
- ServerInstance->SNO->WriteToSnoMask('A', oldnick+" used SANICK to change "+newnick+" to "+parameters[1]);
+ ServerInstance->SNO->WriteToSnoMask('a', oldnick+" used SANICK to change "+newnick+" to "+parameters[1]);
ServerInstance->PI->SendSNONotice("A", oldnick+" used SANICK to change "+newnick+" to "+parameters[1]);
}
else
{
- ServerInstance->SNO->WriteToSnoMask('A', oldnick+" failed SANICK (from "+newnick+" to "+parameters[1]+")");
+ ServerInstance->SNO->WriteToSnoMask('a', oldnick+" failed SANICK (from "+newnick+" to "+parameters[1]+")");
ServerInstance->PI->SendSNONotice("A", oldnick+" failed SANICK (from "+newnick+" to "+parameters[1]+")");
}
- /* hit user and have sent our NICK out, we can now bail */
+ /* Yes, hit target and we have sent our NICK out, we can now bail */
return CMD_LOCALONLY;
}
- /* no, route it on */
+ /* No, route it on */
return CMD_SUCCESS;
}
};
class ModuleSanick : public Module
{
- CommandSanick* mycommand;
+ CommandSanick cmd;
public:
ModuleSanick(InspIRCd* Me)
- : Module(Me)
+ : Module(Me), cmd(Me)
{
-
- mycommand = new CommandSanick(ServerInstance);
- ServerInstance->AddCommand(mycommand);
-
+ ServerInstance->AddCommand(&cmd);
}
virtual ~ModuleSanick()