Short: Trigger plugin for AmIRC 3+ Author: Robin Cloutman Type: comm/irc Version: 1.25 Requires: AmIRC 3+ Architecture: m68k-amigaos Will react on messages whether to you, or a channel you are on, have it say stuff, or even just run commands or arexx scripts ;-) This plugin also has a prefs page for easy editing ;-) Anything you enter is saved via the normal load/save mechanism or AmIRC (hence, you must remember to "Save Settings..." before you quit), and they are not shared between processes... Replaced in the command - %n Nick, %u Userhost, %h Host, %N My nick %U My Userhost %H My Host %c Channel (blank if a /MSG), %C If CTCP then literal "CTCP %t", if not, removes space after it ;-) %t Trigger word, %s Command & arguments, %a Arguments, %1-9 Arguments 1-9, %!1-9 Arguments 1-9 (skip line if not there), %?1-9 Arguments check 1-9 (skip line if equal), %% % character, n newline --- Trigger.AmIPlug 1.25 Copyright ©2002 Robin Cloutman Performs actions on specified triggers Defined commands: TRIGGER [HasRawlineHook] --- AmIRC Commands: «Help» Trigger.AmIPlug: TRIGGER «Help» Usage: /TRIGGER [word [command]] ======= Example Me /trigger test /RX MSG %C TELL %n This is a test trigger... «Trigger» Added TRIGGER test = /RX MSG %C TELL %n This is a test trigger... Me !test «Arexx» This is a test trigger... Someone !test -Me- This is a test trigger... «CTCP» Sending CTCP "TEST" to Me. «Reply» Me TEST This is a test trigger... ======= History 1.0 First version 1.1 Typo fixed 1.2 Another fix 1.3 Yet another fix 1.4 Decent size GUI string buffer, multi-line output 1.5 Uses /NOTICE type for plain text, now works for yourself 1.6 Now splits long lines at 256 chars 1.7 Now displays the command properly 1.8 Added %N and %H 1.9 Fixed multiple viewing for yourself, added %? 1.10 Now uses older amirc plugin command for compatability 1.11 Without a trigger char will now check triggers 1.12 Added CTCP support - ignores trigger char 1.13 Improved the GUI slightly, tab cycling, popplaceholder etc 1.14 Added options to disable PrivMsg and channel Text 1.15 Slight fix on the GUI layout and code 1.16 Added %C, for you script daddies... 1.17 Improved the internal text handling, especially for testing 1.18 Doh! noticed a serious bug in the source... 1.19 Internal changes galore ;-) 1.20 Multiple trigger characters allowed now 1.21 Now uses Pools, and various other stuff fixed 1.22 Some minor code cleanups 1.23 Semaphore List protection, we're finally ready for release 1.24 Made the plugin more forgiving for upgraders 1.25 Minor bugfix