diff options
author | Adam <Adam@anope.org> | 2011-08-18 23:08:27 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-08-18 23:08:27 -0400 |
commit | 1b02216f2d1b9ad05979e89f565bbebd29b7c1b8 (patch) | |
tree | 0df1a2dff192fcd329eeaf85bde2d1e3ea8c26a2 /modules/commands/cs_mode.cpp | |
parent | db340f96d6e9741a23470840a77901c5c45b580f (diff) |
Fixed crash in /cs mode
Diffstat (limited to 'modules/commands/cs_mode.cpp')
-rw-r--r-- | modules/commands/cs_mode.cpp | 2 |
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")) |