summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-08-18 23:08:27 -0400
committerAdam <Adam@anope.org>2011-08-18 23:08:27 -0400
commit1b02216f2d1b9ad05979e89f565bbebd29b7c1b8 (patch)
tree0df1a2dff192fcd329eeaf85bde2d1e3ea8c26a2
parentdb340f96d6e9741a23470840a77901c5c45b580f (diff)
Fixed crash in /cs mode
-rw-r--r--modules/commands/cs_mode.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/commands/cs_mode.cpp b/modules/commands/cs_mode.cpp
index f420e34e1..36ac60b0f 100644
--- a/modules/commands/cs_mode.cpp
+++ b/modules/commands/cs_mode.cpp
@@ -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"))