mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Oct 2005
Posts: 827
P
pouncer Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: Oct 2005
Posts: 827
//echo -a $ial(pouncer).addr

would give me my ial

how do i check if a certain ial is present in the channel without looping through the whole channel nicklist?

Joined: Jun 2007
Posts: 933
5
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
You could use:

Code:
if ($ialchan(nick!user@host,$chan,1)) { code }

If the nick!user@host (which allows wildcards) is present on the channel the if-statement will be true, otherwise it will be false.

Joined: Oct 2005
Posts: 827
P
pouncer Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: Oct 2005
Posts: 827
no nickname

i can only check by ial

so this isnt possible?

Joined: Jun 2003
Posts: 994
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Jun 2003
Posts: 994
Originally Posted By: 5618
You could use:


If the nick!user@host (which allows wildcards) is present on the channel the if-statement will be true, otherwise it will be false.


in other words, $ialchan(*!*user@*,$chan,1) would work without a nick .. wildcards can fill in the blanks (nicks) for you


I refuse to engage in a battle of wits with an unarmed person. wink
Joined: Jun 2007
Posts: 933
5
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
like I implied, just use *!*@host or *!user@host

Last edited by 5618; 22/01/08 06:15 PM.

Link Copied to Clipboard