mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Nov 2008
Posts: 2
P
PremaN Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
P
Joined: Nov 2008
Posts: 2
on *:op:#:{
if $opnick == $me {
var %x = $nick($chan,0)
while %x {
if ($hfind(kïxNICK,$address($nick($chan,%x),5),0,W)) {
raw -q kick $chan $nick($chan,%x) :14<1k15ï4x14>-<10 $+ $nick($chan,%x) $+ 14>-<1k15ï4x14>
}
dec %x
}
}
}

on @*:join:#:{
if ($hfind(kïxNICK,$address($nick,5),0,W)) {
raw -q kick $chan $nick :14<1k15ï4x14>-<10 $+ $nick $+ 14>-<1k15ï4x14>
}
}

kïxNICK is /hadd -m kïxNICK $wildsite which i put it in on kick event. The on join event is working fine. My problem is, why the on op event did not work with $address($nick($chan,%x),5) but it works fine with $nick($chan,%x)?

Please help me...

Thank you.


Regards from Indonesia. Excuse for my stumbling English.

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
The w in your $hfind tells mIRC that your search item is wildcarded, however, your search item is not wildcarded, but your data is wildcarded (ie: the usage of $wildsite)

Try using mask 2 rather than 5, as mask 2 matches the format that $wildsite uses.

I have to admit at bein a bit surprised that the ON JOIN event works, as it also uses mask 5.

P.S.: In future, please use Code tags (looks like the # character) around code.

Joined: Nov 2008
Posts: 2
P
PremaN Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
P
Joined: Nov 2008
Posts: 2
I change the ON OP event with $address type 2 but did not work. Why $nick($chan,%x) don't work with $address? I still confuse until now. Is there any other way to kick the ip address in hash method in ON OP event?


Link Copied to Clipboard