summaryrefslogtreecommitdiff
path: root/src/modules/m_samode.cpp
diff options
context:
space:
mode:
authorspecial <special@e03df62e-2008-0410-955e-edbf42e46eb7>2006-06-23 14:46:10 +0000
committerspecial <special@e03df62e-2008-0410-955e-edbf42e46eb7>2006-06-23 14:46:10 +0000
commit72e17538de4413021804daf3d3b9aa6991adde0d (patch)
tree548410342c0216ae5086da27d736bd7d775a5757 /src/modules/m_samode.cpp
parent7f9e0c3204e846ba78af560e258ae553c31f0ec9 (diff)
Forward port of samode edits
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4054 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_samode.cpp')
-rw-r--r--src/modules/m_samode.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/m_samode.cpp b/src/modules/m_samode.cpp
index afcc3082c..280a5ae19 100644
--- a/src/modules/m_samode.cpp
+++ b/src/modules/m_samode.cpp
@@ -51,16 +51,16 @@ class cmd_samode : public command_t
/*
* Handles an SAMODE request. Notifies all +s users.
*/
- int n=0;
std::string result;
Srv->Log(DEBUG,"SAMODE: Being handled");
Srv->SendMode(parameters,pcnt,user);
Srv->Log(DEBUG,"SAMODE: Modechange handled");
- result = std::string(user->nick) + std::string(" used SAMODE ");
- while (n<pcnt)
+ result = std::string(user->nick);
+ result.append(" used SAMODE");
+ for (int n = 0; n < pcnt; n++)
{
- result=result + std::string(" ") + std::string(parameters[n]);
- n++;
+ result.append(" ");
+ result.append(parameters[n]);
}
Srv->SendOpers(result);
}