diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-08-28 21:44:08 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-08-28 21:49:37 +0300 |
commit | a83513ef88a9cfca8692db9176b68ddeea71931f (patch) | |
tree | 1d01876eb230a36d5c5f98cddd9c57e2476150ab /src/actions/commands.cpp | |
parent | cfc84945c9cee7d42accdad39ff387738a3d32ac (diff) | |
download | mv-a83513ef88a9cfca8692db9176b68ddeea71931f.tar.gz mv-a83513ef88a9cfca8692db9176b68ddeea71931f.tar.bz2 mv-a83513ef88a9cfca8692db9176b68ddeea71931f.tar.xz mv-a83513ef88a9cfca8692db9176b68ddeea71931f.zip |
Fix code style.
Diffstat (limited to 'src/actions/commands.cpp')
-rw-r--r-- | src/actions/commands.cpp | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp index daee32717..5a7e16334 100644 --- a/src/actions/commands.cpp +++ b/src/actions/commands.cpp @@ -46,7 +46,6 @@ #include "utils/chatutils.h" #include "utils/gettext.h" #include "utils/process.h" -#include "utils/stringutils.h" #include "debug.h" @@ -64,7 +63,8 @@ static std::string getNick(const InputEvent &event) if (!whisper || whisper->getNick().empty()) { // TRANSLATORS: change relation - event.tab->chatLog(_("Please specify a name."), ChatMsgType::BY_SERVER); + event.tab->chatLog(_("Please specify a name."), + ChatMsgType::BY_SERVER); return std::string(); } args = whisper->getNick(); @@ -151,7 +151,8 @@ impHandler(chatUnignore) if (event.tab) { // TRANSLATORS: unignore command - event.tab->chatLog(_("Player wasn't ignored!"), ChatMsgType::BY_SERVER); + event.tab->chatLog(_("Player wasn't ignored!"), + ChatMsgType::BY_SERVER); } return true; } @@ -176,7 +177,8 @@ impHandler(chatErase) if (event.tab) { // TRANSLATORS: erase command - event.tab->chatLog(_("Player already erased!"), ChatMsgType::BY_SERVER); + event.tab->chatLog(_("Player already erased!"), + ChatMsgType::BY_SERVER); } return true; } @@ -504,11 +506,11 @@ impHandler(url) { if (event.tab) { - std::string url = event.args; - if (!strStartWith(url, "http") && !strStartWith(url, "?")) - url = "http://" + url; + std::string url1 = event.args; + if (!strStartWith(url1, "http") && !strStartWith(url1, "?")) + url1 = "http://" + url1; std::string str(strprintf("[@@%s |%s@@]", - url.c_str(), event.args.c_str())); + url1.c_str(), event.args.c_str())); outStringNormal(event.tab, str, str); return true; } @@ -652,7 +654,7 @@ impHandler(hack) return true; } -impHandler0(debugSpawn) +impHandler(debugSpawn) { int cnt = atoi(event.args.c_str()); if (cnt < 1) |