mIRC Home    About    Download    Register    News    Help

Print Thread
Requesting "ON ECHO" (similar as ON TEXT) #169886 30/01/07 12:59 PM
Joined: Sep 2003
Posts: 34
Demarko Offline OP
Ameglian cow
OP Offline
Ameglian cow
Joined: Sep 2003
Posts: 34
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

Re: Requesting "ON ECHO" (similar as ON TEXT) [Re: Demarko] #169902 30/01/07 03:10 PM
Joined: Oct 2005
Posts: 1,741
G
genius_at_work Offline
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
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

Re: Requesting "ON ECHO" (similar as ON TEXT) [Re: Demarko] #170177 04/02/07 06:54 AM
Joined: Sep 2003
Posts: 149
S
Stealth Offline
Vogon poet
Offline
Vogon poet
S
Joined: Sep 2003
Posts: 149
Code:
alias echo { signal echo $1- }

Code:
on *:SIGNAL:echo:{
  dostuff
  echo $1-
  orwhatever
}


mIRC 6.21 - Win XP Pro (SP2) - 2.4 Ghz - 1 GB Mem
irc.x-tab.org