mIRC Home    About    Download    Register    News    Help

Print Thread
#9407 02/02/03 09:09 PM
Joined: Feb 2003
Posts: 1
C
Mostly harmless
OP Offline
Mostly harmless
C
Joined: Feb 2003
Posts: 1
Greetings!

I am trying to use the On Join remote to scan for people who's ident matches a particular word/phrase. For example, people will join with an address like:

Nickname (john|smith@ipaddress)

I would like to use the On Join remote do something like, when it sees the smith part (the part after the | ): /msg $nick Ah, someone from the smith clan!

I've tried using the IAL for this, but havn't had any luck. This is what I tried for code:

on 1:JOIN:#channel:{ while ( $ial(*!*smith,1).nick ) /msg $nick Ah, someone from the smith clan! }

Is this something that can be done, either this way or another? I'd appreciate any help.

#9408 02/02/03 09:46 PM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Code:
on *:JOIN:#channel:{ if ( *!*smith@* iswm $address($nick,5) ) msg # Ah, someone from the smith clan! }


Link Copied to Clipboard