- ServerInstance->Logs->Log("m_spanningtree",DEBUG,"TRANSLATION: %s - type is %d", parameters[j].c_str(), translate_to);
- if (translate_to == TR_CUSTOM)
- {
- target = parameters[j];
- thiscmd->EncodeParameter(target, j);
- }
- else
+ std::string output_text;
+ ServerInstance->Parser->TranslateUIDs(thiscmd->translation, parameters, output_text, true, thiscmd);
+
+ params.push_back(output_text);
+
+ if (routing.type == ROUTE_TYPE_MESSAGE)
+ {
+ char pfx = 0;
+ std::string dest = routing.serverdest;
+ if (ServerInstance->Modes->FindPrefix(dest[0]))
+ {
+ pfx = dest[0];
+ dest = dest.substr(1);
+ }
+ if (dest[0] == '#')
+ {
+ Channel* c = ServerInstance->FindChan(dest);
+ if (!c)
+ return;
+ TreeServerList list;
+ // TODO OnBuildExemptList hook was here
+ GetListOfServersForChannel(c,list,pfx, CUList());
+ std::string data = ":" + user->uuid + " " + sent_cmd;
+ for (unsigned int x = 0; x < params.size(); x++)
+ data += " " + params[x];
+ for (TreeServerList::iterator i = list.begin(); i != list.end(); i++)