- ServerInstance->Log(DEBUG,"TRANSLATION: %s - type is %d", parameters[j], translate_to);
- ServerInstance->Parser->TranslateUIDs(translate_to, parameters[j], target);
-
- if (j == (pcnt - 1))
- params.push_back(":" + target);
- else
- params.push_back(target);
+ 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;
+ // TODO OnBuildExemptList hook was here
+ CUList exempts;
+ SendChannelMessage(user->uuid, c, parameters[1], pfx, exempts, command.c_str(), origin ? origin->GetSocket() : NULL);
+ }
+ else if (dest[0] == '$')
+ {
+ params.Forward(origin);