summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree
diff options
context:
space:
mode:
authoraquanight <aquanight@e03df62e-2008-0410-955e-edbf42e46eb7>2008-08-09 17:15:43 +0000
committeraquanight <aquanight@e03df62e-2008-0410-955e-edbf42e46eb7>2008-08-09 17:15:43 +0000
commitc512706209dbbf7aff9f129782b8417267808c96 (patch)
treeb07594b1db11caa1c389a5eea0c9865b65a52e46 /src/modules/m_spanningtree
parentbd1b2458006ffc27283850aac82ea748aaf6330a (diff)
Add translation type TR_CUSTOM, and fix up callerid some.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10130 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_spanningtree')
-rw-r--r--src/modules/m_spanningtree/postcommand.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree/postcommand.cpp b/src/modules/m_spanningtree/postcommand.cpp
index dd2b936d4..37109a79d 100644
--- a/src/modules/m_spanningtree/postcommand.cpp
+++ b/src/modules/m_spanningtree/postcommand.cpp
@@ -62,7 +62,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);