- dest->WriteServ("NOTICE %s :*** You have enabled usermode +d, deaf mode. This mode means you WILL NOT receive any messages from any channels you are in. If you did NOT mean to do this, use /mode %s -d.", dest->nick, dest->nick);
+ dest->WriteServ("NOTICE %s :*** You have enabled usermode +d, deaf mode. This mode means you WILL NOT receive any messages from any channels you are in. If you did NOT mean to do this, use /mode %s -d.", dest->nick.c_str(), dest->nick.c_str());
dest->SetMode('d',true);
return MODEACTION_ALLOW;
}
dest->SetMode('d',true);
return MODEACTION_ALLOW;
}
@@ -60,31+57,29 @@ class ModuleDeaf : public Module
: Module(Me)
{
m1 = new User_d(ServerInstance);
: Module(Me)
{
m1 = new User_d(ServerInstance);
- if (!ServerInstance->AddMode(m1, 'd'))
+ if (!ServerInstance->Modes->AddMode(m1))
throw ModuleException("Could not add new modes!");
OnRehash(NULL, "");
throw ModuleException("Could not add new modes!");