Menu

#43 Scripting command mask character

open
nobody
None
5
2003-06-19
2003-06-19
No

It would be nice to be able to define a "mask" character
for scripting commands. If input starts with this
character the input is not sent to the chat channel.

eg:

configfile: script_command_char=$

Then when a user types: $help in chat, this is not
displayed in the chat at all but it is sent to the function
int command_arrival(user, command, extra) in all scripts.

Further to this, it might be nice to handle a return from
this sub. So if all scripts called return 0, then the text
sent is considered to not be a command at all and is
sent to chat. However, if one (or more) script
recognises the input text as a command, it shall return a
1 from the command_arrival() function, preventing the
text from ever being echoed to the chat window.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.