1
0
mirror of https://github.com/anope/anope.git synced 2026-07-02 09:26:38 +02:00

Added missing override capabilities and log calls to some ChanServ commands

This commit is contained in:
Robby-
2013-09-13 04:59:19 +02:00
committed by Adam
parent 1818b19eba
commit 7545763cd4
6 changed files with 57 additions and 25 deletions
+3 -2
View File
@@ -28,11 +28,12 @@ class CommandCSSync : public Command
source.Reply(CHAN_X_NOT_REGISTERED, params[0].c_str());
else if (ci->c == NULL)
source.Reply(CHAN_X_NOT_IN_USE, params[0].c_str());
else if (!source.AccessFor(ci).HasPriv("ACCESS_CHANGE"))
else if (!source.AccessFor(ci).HasPriv("ACCESS_CHANGE") && !source.HasPriv("chanserv/administration"))
source.Reply(ACCESS_DENIED);
else
{
Log(LOG_COMMAND, source, this, ci);
bool override = !source.AccessFor(ci).HasPriv("ACCESS_CHANGE") && source.HasPriv("chanserv/kick");
Log(override ? LOG_OVERRIDE : LOG_COMMAND, source, this, ci);
for (Channel::ChanUserList::iterator it = ci->c->users.begin(), it_end = ci->c->users.end(); it != it_end; ++it)
ci->c->SetCorrectModes(it->second->user, true);