* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
- * InspIRCd: (C) 2002-2007 InspIRCd Development Team
+ * InspIRCd: (C) 2002-2008 InspIRCd Development Team
* See: http://www.inspircd.org/wiki/index.php/Credits
*
* This program is free but copyrighted software; see
private:
char* hostmap;
public:
- CommandSethost (InspIRCd* Instance, char* hmap) : Command(Instance,"SETHOST",'o',1), hostmap(hmap)
+ CommandSethost (InspIRCd* Instance, char* hmap) : Command(Instance,"SETHOST","o",1), hostmap(hmap)
{
this->source = "m_sethost.so";
syntax = "<new-hostname>";
}
if (user->ChangeDisplayedHost(parameters[0]))
{
- ServerInstance->WriteOpers(std::string(user->nick)+" used SETHOST to change their displayed host to "+user->dhost);
+ ServerInstance->SNO->WriteToSnoMask('A', std::string(user->nick)+" used SETHOST to change their displayed host to "+user->dhost);
return CMD_SUCCESS;
}
ServerInstance->Modules->Attach(eventlist, this, 1);
}
- void Implements(char* List)
- {
- List[I_OnRehash] = 1;
- }
void OnRehash(User* user, const std::string ¶meter)
{