diff options
author | attilamolnar <attilamolnar@hush.com> | 2012-07-05 03:40:31 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2012-07-07 15:16:29 +0200 |
commit | 48c2bc4d8006d3e3eb2c20dfc7a00f78eb82bcda (patch) | |
tree | 698fa7f32d11225f53b6bd6bb64b7b4d36cabe0c /src/modules/m_globops.cpp | |
parent | 404154826252d8a031d83ef5c098a8727d3fb6e2 (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.cpp | 8 |
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> ¶meters, 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; } }; |