wickedness! recursion appens

This commit is contained in:
psyc://psyced.org/~lynX 2011-08-24 14:25:25 +02:00
parent c7a3bec8b2
commit 23b0214076
1 changed files with 11 additions and 10 deletions

View File

@ -139,17 +139,18 @@ msg(source, mc, data, vars, showingLog, target) {
case "_failure_unsuccessful_delivery": case "_failure_unsuccessful_delivery":
case "_failure_unsuccessful_delivery_resolve": case "_failure_unsuccessful_delivery_resolve":
case "_failure_unsupported_function_root": case "_failure_unsupported_function_root":
t = "Root got "+ (vars["_method_relay"] || mc); unless (abbrev("_notice_forward", vars["_method_relay"])) {
if (vars["_target_relay"]) t += " to "+ to_string(vars["_target_relay"]); t = "Root got "+ (vars["_method_relay"] || mc || "missing method");
if (vars["_source_relay"]) t += " from "+ to_string(vars["_source_relay"]); if (vars["_target_relay"]) t += " to "+ to_string(vars["_target_relay"]);
if (source) t += " via "+ to_string(source); if (vars["_source_relay"]) t += " from "+ to_string(vars["_source_relay"]);
//monitor_report("_notice_forward"+ mc, psyctext(data ? if (source) t += " via "+ to_string(source);
// t+": "+data : t, vars, "", source)); monitor_report("_notice_forward"+ (vars["_method_relay"]
monitor_report("_notice_forward"+ (vars["_method_relay"] || mc || "_failure_missing_method"), t);
|| mc || "_method_missing"), t); return 1;
return 1; }
// fall thru
case "_notice_forward": case "_notice_forward":
P1(("%O got a %O.. eh!???\n", ME, mc)) P1(("%O got a %O back on his place.. eh? ... %O\n", ME, mc, vars))
return 1; return 1;
case "_request_legacy_CTCP": case "_request_legacy_CTCP":
// sendmsg(source, "_status_legacy_CTCP", 0, // sendmsg(source, "_status_legacy_CTCP", 0,