mirror of
https://github.com/anope/anope.git
synced 2026-07-02 05:46:38 +02:00
Removed a lot of unnecessary .c_str() calls in the find* functions
This commit is contained in:
+1
-1
@@ -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)))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user