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

Bug #1364 - fixed crash in /cs kick

This commit is contained in:
Adam
2011-12-05 11:52:40 -05:00
parent c80e7844b7
commit aeefe1650e
+12 -5
View File
@@ -33,13 +33,20 @@ class CommandCSKick : public Command
Channel *c = findchan(params[0]);
User *u2 = finduser(target);
if (!c)
{
source.Reply(CHAN_X_NOT_IN_USE, chan.c_str());
return;
}
else if (!ci)
{
source.Reply(CHAN_X_NOT_REGISTERED, chan.c_str());
return;
}
AccessGroup u_access = ci->AccessFor(u);
if (!c)
source.Reply(CHAN_X_NOT_IN_USE, chan.c_str());
else if (!ci)
source.Reply(CHAN_X_NOT_REGISTERED, chan.c_str());
else if (!ci->AccessFor(u).HasPriv("KICK"))
if (!u_access.HasPriv("KICK"))
source.Reply(ACCESS_DENIED);
else if (u2)
{