diff --git a/world/net/tn/outgoing.c b/world/net/tn/outgoing.c index 12df5a2..d290dd4 100644 --- a/world/net/tn/outgoing.c +++ b/world/net/tn/outgoing.c @@ -41,7 +41,7 @@ parse(all) { #ifdef _flag_log_sockets_telnet_outgoing log_file("RAW_TN_OUT", "%O < %O\n", ME, all); #endif - iconv(all, "ASCII//TRANSLIT", SYSTEM_CHARSET); + if (all && all != "") iconv(all, "ASCII//TRANSLIT", SYSTEM_CHARSET); if (owner) sendmsg(owner, "_notice_telnet_verbatim", "[_text_verbatim]", ([ "_text_verbatim": all ])); diff --git a/world/net/usercmd.i b/world/net/usercmd.i index 17beef5..236bc37 100644 --- a/world/net/usercmd.i +++ b/world/net/usercmd.i @@ -1414,14 +1414,6 @@ cmd(a, args, dest, command) { w("_echo_save", "[_amount_lines] lines of log saved.", (["_amount_lines": t])); break; -#ifdef MUDLINK - case "mud": - unless (objectp(mudlink) && interactive(mudlink)) mudlink(v("mudlink")); - // nicer UI using simulated query with $mud TBD.. FIXME - // also, this send() is not doing the translit!?!! - if (objectp(mudlink)) mudlink -> send(ARGS(1) +"\n"); - break; -#endif // MUDLINK #endif /* USER_PROGRAM */ default: #ifdef USER_PROGRAM @@ -2040,6 +2032,13 @@ tell(pal, what, palo, how, mc, tv) { return; } #endif +#ifdef MUDLINK + if (pal == "$mud") { + unless (objectp(mudlink) && interactive(mudlink)) mudlink(v("mudlink")); + if (objectp(mudlink)) mudlink -> send(what +"\n"); + return; + } +#endif // MUDLINK #ifdef ALIASES // this also allows for /alias MEP MunichElectropunk deaPal = aliases[lower_case(pal)] || pal;