isn't there a send that doesn't echo?

Share your scripts and packages with other Mudlet users.
Post Reply
jimbus
Posts: 14
Joined: Fri Nov 15, 2013 10:19 pm

isn't there a send that doesn't echo?

Post by jimbus »

I swear I remember a send that doesn't echo the generated commends to the screen? I'd hoped it would be listed in similar commands in one of send, sendall and expandalias, but no such luck :)

JimB

User avatar
demonnic
Posts: 884
Joined: Sat Dec 05, 2009 3:19 pm

Re: isn't there a send that doesn't echo?

Post by demonnic »

The send() function takes an option second argument which tells it whether to echo or not. http://wiki.mudlet.org/w/Manual:Lua_Functions#send has details, but essentially
Code: [show] | [select all] lua
 send("say this is not echoed to the screen", false)

jimbus
Posts: 14
Joined: Fri Nov 15, 2013 10:19 pm

Re: isn't there a send that doesn't echo?

Post by jimbus »

Ah, that's right, I was too focused on a separate command to read the send doc all the way through. Now that you say that, I remember I set a global debug variable to turn it on and off as a second arguement.

Thank you!

JimB

SilverDragon
Posts: 23
Joined: Tue Mar 01, 2011 10:00 pm

Re: isn't there a send that doesn't echo?

Post by SilverDragon »

There's also a checkbox labeled "show commands sent to the server" in the settings window that you can uncheck, and it does essentially the same thing. Helpful if you have a lot of scripts with a lot of sends and you don't want to have to painstakingly go back and find each one and add in the second false argument.

Post Reply