Do this:

Code:
on *:text:*:#: {
  if (Micah isin $1- && program isin $1- && ink isin $1-) { msg $chan $read(filename.txt) }
  elseif (coffee isin $1-) { msg $chan $read(filename.txt) }
}


Just continue adding things using the format in the ELSEIF line. Use && as shown in the IF line to check for multiple words that aren't necessarily in the same order. Use || to check for any word, but not necessarily all words (it means OR).

As a note, using isin may cause you some issues if you use smaller words that may be part of larger words... for example, you may want the word "ink" but not "link". You can do various things to get around that, but they will be more complicated. It depends on how important that is to you. To get around it, you'd be needing to use $istok() and probably also $remove() to remove punctuation when checking.

Last edited by Riamus2; 11/01/08 09:29 PM.

Invision Support
#Invision on irc.irchighway.net