]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/protocol.h
Add commasepstream test case.
[user/henk/code/inspircd.git] / include / protocol.h
index 4d6f8f27d006a0121cc42c6fbb56f4adf1f01bb3..60fcf4df283e45ce55c384b03b7cd0af7e653f36 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.
@@ -68,7 +68,7 @@ class ProtocolInterface : public Extensible
         * @param target The channel name or user to send mode changes for.
         * @param The mode changes to send.
         */
-       virtual void SendMode(const std::string &target, parameterlist &modedata) { }
+       virtual void SendMode(const std::string &target, const parameterlist &modedata, const std::deque<TranslateType> &translate) { }
 
        /** Convenience function, string wrapper around the above.
          */
@@ -76,10 +76,14 @@ class ProtocolInterface : public Extensible
        {
                irc::spacesepstream x(modeline);
                parameterlist n;
+               std::deque<TranslateType> types;
                std::string v;
                while (x.GetToken(v))
+               {
                        n.push_back(v);
-               SendMode(target, n);
+                       types.push_back(TR_TEXT);
+               }
+               SendMode(target, n, types);
        }
 
        /** Send a notice to users with a given mode(s).