mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jul 2013
Posts: 24
E
Ameglian cow
OP Offline
Ameglian cow
E
Joined: Jul 2013
Posts: 24
Can someone tell me what is wrong with this? It will kick/ban..however..it kick/bans everyone that joins the specified channel for the 2 minutes..not just the 2 IRC clients I'm trying to ban.
Specifically I am trying to ban mibbit.com and kiwiirc.com from my channel

on *:JOIN:#channel: {
if ( $address == *host* || *host2* ) {
mode $chan +b $address
/kick $chan $nick Please consider using a real IRC client, like mIRC.
/timer 1 120 /mode $chan -b $address
}
}

Joined: Jan 2004
Posts: 1,361
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,361
Code:
if (*host* iswm $address) || (*host2* iswm $addresss) {

Joined: Dec 2013
Posts: 10
T
Pikka bird
Offline
Pikka bird
T
Joined: Dec 2013
Posts: 10
I see this line is incorrect:

Code:
if ( $address == *host* || *host2* )


Try changing it to:

Code:
if ( ($address == *host*) || ($address == *host2*) )


There may be other issues, but that was the obvious one that jumped out at me.

Edit: Loki12583 beat me to it and has the better solution.

Last edited by TestCoder; 01/01/14 07:31 PM.
Joined: Jul 2013
Posts: 24
E
Ameglian cow
OP Offline
Ameglian cow
E
Joined: Jul 2013
Posts: 24
Thanks very much guys..it was really driving me nuts smile Haven't tested it yet...have to find a guinea pig that's on one of those 2 clients..I guess I was doing a little bit too much testing prior to your replies and ended up getting myself glined smile
Once again though, thanks very much for replying.

Awesome guys..it works like a charm..thanks again

Last edited by EasyObserver; 01/01/14 11:24 PM.

Link Copied to Clipboard