From 72e17538de4413021804daf3d3b9aa6991adde0d Mon Sep 17 00:00:00 2001 From: special Date: Fri, 23 Jun 2006 14:46:10 +0000 Subject: Forward port of samode edits git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4054 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_samode.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/modules') 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 (nnick); + 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); } -- cgit v1.2.3