]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_samode.cpp
Weed out a few leftover server instances from before modules had ServerInstance....
[user/henk/code/inspircd.git] / src / modules / m_samode.cpp
index 82055dad3a611a869c26691ffb027d5d9d925f4d..932ed88b65c2215f76813ab6dad8d8b9a329fec7 100644 (file)
@@ -3,7 +3,7 @@
  *       +------------------------------------+
  *
  *  InspIRCd: (C) 2002-2009 InspIRCd Development Team
- * See: http://www.inspircd.org/wiki/index.php/Credits
+ * See: http://wiki.inspircd.org/Credits
  *
  * This program is free but copyrighted software; see
  *            the file COPYING for details.
@@ -37,20 +37,9 @@ class CommandSamode : public Command
                {
                        ServerInstance->SNO->WriteToSnoMask('A', std::string(user->nick) + " used SAMODE: " + ServerInstance->Modes->GetLastParse());
 
-                       std::deque<std::string> n;
-                       irc::spacesepstream spaced(ServerInstance->Modes->GetLastParse());
-                       std::string one;
-                       while (spaced.GetToken(one))
-                               n.push_back(one);
+                       std::string channel = parameters[0];
+                       ServerInstance->PI->SendMode(channel, ServerInstance->Modes->GetLastParseParams(), ServerInstance->Modes->GetLastParseTranslate());
 
-                       std::string channel = n[0];
-                       n.pop_front();
-                       ServerInstance->PI->SendMode(channel, n);
-
-                       /* XXX: Yes, this is right. We dont want to propagate the
-                        * actual SAMODE command, just the MODE command generated
-                        * by the Protocol Interface
-                        */
                        return CMD_LOCALONLY;
                }
                else