diff options
Diffstat (limited to 'src/commands/cmd_list.cpp')
-rw-r--r-- | src/commands/cmd_list.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/cmd_list.cpp b/src/commands/cmd_list.cpp index f662f7997..164830a26 100644 --- a/src/commands/cmd_list.cpp +++ b/src/commands/cmd_list.cpp @@ -54,7 +54,7 @@ CmdResult CommandList::Handle (const std::vector<std::string>& parameters, User if (parameters.size() && (parameters[0][0] != '<' || parameters[0][0] == '>')) { - if (!match(i->second->name, parameters[0].c_str()) && !match(i->second->topic, parameters[0].c_str())) + if (!match(i->second->name, parameters[0]) && !match(i->second->topic, parameters[0])) continue; } |