]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_saquit.cpp
Make User:: nick/ident/dhost/fullname and some other things std::string instead of...
[user/henk/code/inspircd.git] / src / modules / m_saquit.cpp
index 7766a40ede2171d135cb7cec88aafa74c070cfff..ac986b1ec82542bf271c7f68ab869d5dbb5c66cc 100644 (file)
@@ -38,15 +38,13 @@ class CommandSaquit : public Command
                                return CMD_FAILURE;
                        }
                        
-                       irc::stringjoiner reason_join(" ", parameters, 1, parameters.size() - 1);
-                       std::string line = reason_join.GetJoined();
-                       ServerInstance->SNO->WriteToSnoMask('A', std::string(user->nick)+" used SAQUIT to make "+std::string(dest->nick)+" quit with a reason of "+line);
+                       ServerInstance->SNO->WriteToSnoMask('A', std::string(user->nick)+" used SAQUIT to make "+std::string(dest->nick)+" quit with a reason of "+parameters[1]);
                        
                        // Pass the command on, so the client's server can quit it properly.
                        if (!IS_LOCAL(dest))
                                return CMD_SUCCESS;
                        
-                       ServerInstance->Users->QuitUser(dest, line);
+                       ServerInstance->Users->QuitUser(dest, parameters[1]);
                        return CMD_LOCALONLY;
                }
                else