mIRC Homepage
Posted By: Demarko Requesting "ON ECHO" (similar as ON TEXT) - 30/01/07 12:59 PM
Hi.
I have a script (that cant be changed) that uses "/echo #mychan sometext".

Now I want to check whether those sometext echos contain special words.

I tried it, using the existing ON TEXT option, but it does not catch the words showed in my /echo.
confused


So I'd like sth like an ON ECHO option in the future mirc version.
Format: on <level>:ECHO:<matchtext>:<*><?><#[,#]>:<commands> (same as ON TEXT)
which allows me to check an(y) /echo for certains words:
on 1:ECHO:*matchtext*:#mychan:{ do some actions here }



It would be cool if this could be integrated into the next mIRC version; or maybe someone knows a work-around for my problem??

Many thanks in advance. smile
You can change all your /echo commands to some alias like /xecho. Then you just have to make an alias by that same name, and within that alias, do whatever comparisons/checks/changes you want. At the end of the alias, after all the changes are made to your text, simply do a normal /echo.

-genius_at_work
Code:
alias echo { signal echo $1- }

Code:
on *:SIGNAL:echo:{
  dostuff
  echo $1-
  orwhatever
}
© mIRC Discussion Forums