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