mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Oct 2004
Posts: 32
burek Offline OP
Ameglian cow
OP Offline
Ameglian cow
Joined: Oct 2004
Posts: 32
Hi all,

I apologize if this has already been posted.. but I've tried to search the board for my problem, and search didn't help me much.. anyway, my problem is that I want to have the OnText event set up so it triggers when somebody types @MyNick where MyNick is my current nick, no matter how many times I change it (meaning, I don't want to solve the problem by putting my nick into variable)

I've tried something like:
on *:TEXT:$+(@,$nick):?,#: echo bla
and
on *:TEXT:@ $+ $nick:?,#: echo bla
and
on *:TEXT:@ $+ $me:?,#: echo bla
etc..

but with no success...
please help smile

Joined: Feb 2005
Posts: 681
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Feb 2005
Posts: 681
on *:TEXT:$($+(@,$me)):#:echo bla

The $() identifier must be used to evaluate
identifiers in the text match portion of the event.

/help $(...)

~ Edit ~
Also,
$nick = nick that triggered the event
$me = your current nick

Last edited by mIRCManiac; 08/06/05 01:16 AM.
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
lose that flag

Joined: Oct 2004
Posts: 32
burek Offline OP
Ameglian cow
OP Offline
Ameglian cow
Joined: Oct 2004
Posts: 32
thanx a lot both of you guys smile


Link Copied to Clipboard