hasnokicks = (ServerInstance->Modules->Find("m_nokicks.so") && channel->IsModeSet('Q'));
- if((ServerInstance->ULine(target->server) || ServerInstance->ULine(target->nick.c_str()))){
+ if (ServerInstance->ULine(target->server))
+ {
user->WriteNumeric(482, "%s %s :Only a u-line may remove a u-line from a channel.", user->nick.c_str(), channame);
return CMD_FAILURE;
}
}
/* Build up the part reason string. */
- reason = std::string("Removed by ") + user->nick + ": " + reasonparam;
+ reason = "Removed by " + user->nick + ": " + reasonparam;
channel->WriteChannelWithServ(ServerInstance->Config->ServerName.c_str(), "NOTICE %s :%s removed %s from the channel", channel->name.c_str(), user->nick.c_str(), target->nick.c_str());
target->WriteServ("NOTICE %s :*** %s removed you from %s with the message: %s", target->nick.c_str(), user->nick.c_str(), channel->name.c_str(), reasonparam.c_str());
virtual void OnRehash(User* user)
{
- ConfigReader conf;
- supportnokicks = conf.ReadFlag("remove", "supportnokicks", 0);
+ supportnokicks = ServerInstance->Config->ConfValue("remove")->getBool("supportnokicks");
}
virtual ~ModuleRemove()