]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spanningtree/postcommand.cpp
Addendum to previous ping patch: NextPingTime was not being set at endburst, and...
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / postcommand.cpp
index dd2b936d42263ad8a4074739864153b94f00feb0..d05d42d802aa9db2edf6c450de17e286a12f3370 100644 (file)
@@ -2,8 +2,8 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  InspIRCd: (C) 2002-2008 InspIRCd Development Team
- * See: http://www.inspircd.org/wiki/index.php/Credits
+ *  InspIRCd: (C) 2002-2009 InspIRCd Development Team
+ * See: http://wiki.inspircd.org/Credits
  *
  * This program is free but copyrighted software; see
  *       the file COPYING for details.
@@ -17,7 +17,6 @@
 #include "commands/cmd_whois.h"
 #include "commands/cmd_stats.h"
 #include "socket.h"
-#include "wildcard.h"
 #include "xline.h"
 #include "transport.h"
 
@@ -62,7 +61,15 @@ void ModuleSpanningTree::OnPostCommand(const std::string &command, const std::ve
                                translate_to = TR_TEXT;
 
                        ServerInstance->Logs->Log("m_spanningtree",DEBUG,"TRANSLATION: %s - type is %d", parameters[j].c_str(), translate_to);
-                       ServerInstance->Parser->TranslateUIDs(translate_to, parameters[j], target);
+                       if (translate_to == TR_CUSTOM)
+                       {
+                               target = parameters[j];
+                               thiscmd->EncodeParameter(target, j);
+                       }
+                       else
+                       {
+                               ServerInstance->Parser->TranslateUIDs(translate_to, parameters[j], target);
+                       }
 
                        if (j == (parameters.size() - 1))
                                params.push_back(":" + target);