TinTin++ Mud Client Manual
         ACTION

Command: #action {message} {commands} {priority}

         The #action command can be used to respond with one or several
         commands to a specific message send by the server. The %1-%99
         variables are substituted from the message and can be used in the
         command part of the action.

         The priority part is optional and determines the priority of the
         action, it defaults to 5.

         If the message starts with a ~ color codes must be matched. You can
         enable #config {convert meta} on to display meta characters.

         For more information on pattern matching see the section on PCRE.

Example: #action {%1 tells you '%2'} {tell %1 I'm afk.}

         Actions can be triggered by the showme command and certain system
         messages.

         Actions can be triggered by the #showme command. If you don't want a
         #showme to get triggered use: #line ignore #showme {text}

         Actions are ordered alphabetically and only one action can trigger at
         a time. To change the order you can assign a priority, which defaults
         to 5, with a lower number indicating a higher priority. The priority
         can be a floating point number.

         To remove action with %* as the message, use #unaction {%%*} or
         #unaction {%*}. Alternatively you could wrap the action inside a
         class, and kill that class when you no longer need the action.

Comment: You can remove an action with the #unaction command.

Related: pcre, gag, highlight, prompt and substitute.