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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user