summaryrefslogtreecommitdiff
path: root/src/commands.cpp
diff options
context:
space:
mode:
authorAdam <Adam@Anope.org>2010-05-26 02:53:08 -0500
committerAdam <Adam@anope.org>2010-06-18 21:04:08 -0400
commit1394c96173cec02d148dfece563bb186cf2f33b6 (patch)
tree19afb8a2fde62477701c1d21510bc3c6fe4fd7ae /src/commands.cpp
parentf0a44ba89471e006ab10e398e9635adbc73eb674 (diff)
Removed a lot of unnecessary .c_str() calls in the find* functions
Diffstat (limited to 'src/commands.cpp')
-rw-r--r--src/commands.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands.cpp b/src/commands.cpp
index 71c4c986a..c767f8cd1 100644
--- a/src/commands.cpp
+++ b/src/commands.cpp
@@ -100,7 +100,7 @@ void mod_run_cmd(BotInfo *bi, User *u, const ci::string &cmd)
{
if (ircdproto->IsChannelValid(params[0].c_str()))
{
- if ((ci = cs_findchan(params[0].c_str())))
+ if ((ci = cs_findchan(params[0])))
{
if ((ci->HasFlag(CI_FORBIDDEN)) && (!c->HasFlag(CFLAG_ALLOW_FORBIDDEN)))
{