diff options
author | Adam <Adam@anope.org> | 2013-09-12 22:27:30 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-09-27 16:33:56 -0400 |
commit | 1818b19ebaa6584cb97455e1a91e51ecfebd4dfc (patch) | |
tree | 61e977a285544b7d1ee269f86512b533d51869af /modules/commands/cs_mode.cpp | |
parent | abc7e4b423d6701e5771ff08b3eadf81f50488ec (diff) |
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
Diffstat (limited to 'modules/commands/cs_mode.cpp')
-rw-r--r-- | modules/commands/cs_mode.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/commands/cs_mode.cpp b/modules/commands/cs_mode.cpp index f7233eb27..1cd3f7a08 100644 --- a/modules/commands/cs_mode.cpp +++ b/modules/commands/cs_mode.cpp @@ -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(); |