mIRC Home    About    Download    Register    News    Help

Print Thread
#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.

Joined: Oct 2004
Posts: 8,330
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

Link Copied to Clipboard