1
0
mirror of https://github.com/anope/anope.git synced 2026-06-27 19:06:39 +02:00

Fix cs_mode lock reply if nothing is done

Fix not clearing forbids when os_forbid is unloaded
Apply nick and chan forbids when added
Fix loading forbids until after the service is constructed
This commit is contained in:
Adam
2013-09-12 22:27:30 -04:00
parent abc7e4b423
commit 1818b19eba
4 changed files with 72 additions and 6 deletions
+5 -2
View File
@@ -353,8 +353,11 @@ class CommandCSMode : public Command
neg.clear();
Anope::string reply = pos + neg + pos_params + neg_params;
source.Reply(_("%s locked on %s."), reply.c_str(), ci->name.c_str());
Log(override ? LOG_OVERRIDE : LOG_COMMAND, source, this, ci) << "to lock " << reply;
if (!reply.empty())
{
source.Reply(_("%s locked on %s."), reply.c_str(), ci->name.c_str());
Log(override ? LOG_OVERRIDE : LOG_COMMAND, source, this, ci) << "to lock " << reply;
}
if (ci->c)
ci->c->CheckModes();