1
0
mirror of https://github.com/anope/anope.git synced 2026-07-06 07:53:14 +02:00

Fixed crash in /cs mode

This commit is contained in:
Adam
2011-08-18 23:08:27 -04:00
parent db340f96d6
commit 1b02216f2d
+1 -1
View File
@@ -310,7 +310,7 @@ class CommandCSMode : public Command
ChannelInfo *ci = cs_findchan(params[0]);
if (!ci || !ci->c)
source.Reply(CHAN_X_NOT_IN_USE, ci->name.c_str());
source.Reply(CHAN_X_NOT_IN_USE, params[0].c_str());
else if (!ci->AccessFor(u).HasPriv(CA_MODE) && !u->HasCommand("chanserv/mode"))
source.Reply(ACCESS_DENIED);
else if (subcommand.equals_ci("LOCK"))