mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Sep 2003
Posts: 42
Demarko Offline OP
Ameglian cow
OP Offline
Ameglian cow
Joined: Sep 2003
Posts: 42
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

Joined: Oct 2005
Posts: 1,741
G
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

Joined: Sep 2003
Posts: 149
S
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

Link Copied to Clipboard