summaryrefslogtreecommitdiff
path: root/src/actions/commands.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-28 21:44:08 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-28 21:49:37 +0300
commita83513ef88a9cfca8692db9176b68ddeea71931f (patch)
tree1d01876eb230a36d5c5f98cddd9c57e2476150ab /src/actions/commands.cpp
parentcfc84945c9cee7d42accdad39ff387738a3d32ac (diff)
downloadplus-a83513ef88a9cfca8692db9176b68ddeea71931f.tar.gz
plus-a83513ef88a9cfca8692db9176b68ddeea71931f.tar.bz2
plus-a83513ef88a9cfca8692db9176b68ddeea71931f.tar.xz
plus-a83513ef88a9cfca8692db9176b68ddeea71931f.zip
Fix code style.
Diffstat (limited to 'src/actions/commands.cpp')
-rw-r--r--src/actions/commands.cpp20
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)