summaryrefslogtreecommitdiff
path: root/src/modules/m_globops.cpp
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2012-07-05 03:40:31 +0200
committerattilamolnar <attilamolnar@hush.com>2012-07-07 15:16:29 +0200
commit48c2bc4d8006d3e3eb2c20dfc7a00f78eb82bcda (patch)
tree698fa7f32d11225f53b6bd6bb64b7b4d36cabe0c /src/modules/m_globops.cpp
parent404154826252d8a031d83ef5c098a8727d3fb6e2 (diff)
m_globops Don't concatenate, the command parser does it for us as maxparams for the command is 1
Diffstat (limited to 'src/modules/m_globops.cpp')
-rw-r--r--src/modules/m_globops.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/modules/m_globops.cpp b/src/modules/m_globops.cpp
index db55858d6..d9dd8f2ac 100644
--- a/src/modules/m_globops.cpp
+++ b/src/modules/m_globops.cpp
@@ -38,13 +38,7 @@ class CommandGlobops : public Command
CmdResult Handle (const std::vector<std::string> &parameters, User *user)
{
- std::string line = "From " + std::string(user->nick) + ": ";
- for (int i = 0; i < (int)parameters.size(); i++)
- {
- line = line + parameters[i] + " ";
- }
- ServerInstance->SNO->WriteGlobalSno('g',line);
-
+ ServerInstance->SNO->WriteGlobalSno('g', "From " + user->nick + ": " + parameters[0]);
return CMD_SUCCESS;
}
};