1
0
mirror of https://github.com/anope/anope.git synced 2026-07-08 18:03:13 +02:00

Allow userless command sources

This commit is contained in:
Adam
2012-06-18 05:04:30 -04:00
parent 873d4287de
commit 2dec8e767a
153 changed files with 1029 additions and 1060 deletions
+1 -2
View File
@@ -122,14 +122,13 @@ class CommandCSEnforce : public Command
{
const Anope::string &what = params.size() > 1 ? params[1] : "";
User *u = source.u;
Channel *c = findchan(params[0]);
if (!c)
source.Reply(CHAN_X_NOT_IN_USE, params[0].c_str());
else if (!c->ci)
source.Reply(CHAN_X_NOT_REGISTERED, c->name.c_str());
else if (!c->ci->AccessFor(u).HasPriv("AKICK"))
else if (!source.AccessFor(c->ci).HasPriv("AKICK"))
source.Reply(ACCESS_DENIED);
else
{