mIRC Home    About    Download    Register    News    Help

Print Thread
Filter outgoing text #181920 02/08/07 04:50 AM
Joined: May 2007
Posts: 13
T
trink Offline OP
Pikka bird
OP Offline
Pikka bird
T
Joined: May 2007
Posts: 13
Is there any way to filter outgoing text, via remote or alias script? Such as when I say something, it instead replaces something in that text with something, via $replace or such on and so forth.

Re: Filter outgoing text [Re: trink] #181922 02/08/07 05:17 AM
Joined: Oct 2004
Posts: 8,330
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Code:
on *:input:*: {
  if ($1- == lol) { say Laughing Out Loud | halt }
  elseif (tommorow isin $1-) { say $replace($1-,tommorow,tomorrow) | halt }
}


That sort of thing would do what you want. You'd just want to adjust it to suit your needs. This could be set up in a wide variety of ways depending on what you're doing and how many changes you plan to have (few work fine in if/elseif format, many might work better in a hash table).


Invision Support
#Invision on irc.irchighway.net