Srv->SendOpers("*** NOTICE -- Service "+Aliases[i].requires+" required by alias "+std::string(Aliases[i].text.c_str())+" is not on a u-lined server, possibly underhanded antics detected!");
{
if (!Srv->IsUlined(u->server))
{
Srv->SendOpers("*** NOTICE -- Service "+Aliases[i].requires+" required by alias "+std::string(Aliases[i].text.c_str())+" is not on a u-lined server, possibly underhanded antics detected!");
- Srv->SendServ(user->fd,"401 "+std::string(user->nick)+" "+Aliases[i].requires+" :is an imposter! Please inform an IRC operator as soon as possible.");
+ user->WriteServ("401 "+std::string(user->nick)+" "+Aliases[i].requires+" :is an imposter! Please inform an IRC operator as soon as possible.");
return 1;
}
}
return 1;
}
}
@@ -132,9+137,9 @@ class ModuleAlias : public Module
stuff >> cmd;
stuff >> target;
stuff >> cmd;
stuff >> target;
- char* para[2];
- para[0] = (char*)target.c_str();
- para[1] = (char*)n.c_str();
+ const char* para[2];
+ para[0] = target.c_str();
+ para[1] = n.c_str();
Srv->CallCommandHandler(cmd,para,2,user);
return 1;
Srv->CallCommandHandler(cmd,para,2,user);
return 1;
@@ -143,9+148,9 @@ class ModuleAlias : public Module