aboutsummaryrefslogtreecommitdiff
path: root/src/game/Chat.cpp
diff options
context:
space:
mode:
authorMachiavelli <none@none>2009-04-19 18:48:20 +0200
committerMachiavelli <none@none>2009-04-19 18:48:20 +0200
commit99fc17d44fec12f31c55efd6b3f60c011baeb88a (patch)
treea628622efa91e5e73a64fa1999b9031e186d2afc /src/game/Chat.cpp
parent60736b1f7da05e5eee5100edc3e80fbb9e228495 (diff)
* Tabs to spaces cleanup
--HG-- branch : trunk
Diffstat (limited to 'src/game/Chat.cpp')
-rw-r--r--src/game/Chat.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/game/Chat.cpp b/src/game/Chat.cpp
index 06e3b285d5a..15206f10c29 100644
--- a/src/game/Chat.cpp
+++ b/src/game/Chat.cpp
@@ -871,9 +871,6 @@ int ChatHandler::ParseCommands(const char* text)
std::string fullcmd = text;
- //if(m_session->GetSecurity() == 0)
- // return 0;
-
/// chat case (.command or !command format)
if(m_session)
{
@@ -895,11 +892,11 @@ int ChatHandler::ParseCommands(const char* text)
++text;
if(!ExecuteCommandInTable(getCommandTable(), text, fullcmd))
- {
- if(m_session && m_session->GetSecurity() == SEC_PLAYER)
- return 0;
- SendSysMessage(LANG_NO_CMD);
- }
+ {
+ if(m_session && m_session->GetSecurity() == SEC_PLAYER)
+ return 0;
+ SendSysMessage(LANG_NO_CMD);
+ }
return 1;
}