Hello

Your first variant might be as effective as what he asked for, but if the idea were to put the text "/describe <$chan>" into the editbox, it's not doing that.
Your second variant is definitely incorrect, by not checking for command being executed starting with / or command char, you're preventing them to execute any command, worse, you're exposing them to risk as "/msg nickserv identify pass" (or any other command anyway) will now be sent to the channel as an action message!!scratch that part. But what's the logic behind not putting back "/describe" into the editbox if they themselves execute a /describe in that channel window?

What he asked for, my variant, might be prefered as it allow the user to control if they want to send as /describe in the end, your first variant would not allow that.

Last edited by Wims; 27/07/23 08:01 PM.

#mircscripting @ irc.swiftirc.net == the best mIRC help channel