From f1b9a10d6725fed15859d3b3ffe5b7766fa4ca7f Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Wed, 18 Dec 2013 15:51:17 +0100 Subject: m_sakick Replace C string with C++ string --- src/modules/m_sakick.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/modules') diff --git a/src/modules/m_sakick.cpp b/src/modules/m_sakick.cpp index 3dd7ed3d1..0e37acc3f 100644 --- a/src/modules/m_sakick.cpp +++ b/src/modules/m_sakick.cpp @@ -35,18 +35,10 @@ class CommandSakick : public Command { User* dest = ServerInstance->FindNick(parameters[1]); Channel* channel = ServerInstance->FindChan(parameters[0]); - const char* reason = ""; if ((dest) && (dest->registered == REG_ALL) && (channel)) { - if (parameters.size() > 2) - { - reason = parameters[2].c_str(); - } - else - { - reason = dest->nick.c_str(); - } + const std::string& reason = (parameters.size() > 2) ? parameters[2] : dest->nick; if (ServerInstance->ULine(dest->server)) { -- cgit v1.2.3