diff options
author | Attila Molnar <attilamolnar@hush.com> | 2013-12-18 15:51:17 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2013-12-18 15:51:17 +0100 |
commit | f1b9a10d6725fed15859d3b3ffe5b7766fa4ca7f (patch) | |
tree | 04a476a91f1d58a61aac23f6ae5c4db87c398282 | |
parent | 132c7a7c670764c677e34b6dbc1bf8590e5b4066 (diff) |
m_sakick Replace C string with C++ string
-rw-r--r-- | src/modules/m_sakick.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
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)) { |