mIRC Homepage
Posted By: Akatsuki Kick/Ban Hostmask - 20/11/05 05:11 PM
I was wondering if you can kick/ban someone, not their nick, but their hostmask. I have a bot that can kick/ban but it usually kick/ban in this form:

* nick1 sets mode: +b nick2!*nick@hostmask.net
* nick2 were kicked by nick1 (blah)

And the person who usually gets kick/ban can just change their nick and come back. So is there a way to have the bot kick/ban:

* nick1 sets mode: +b *!*@hostmask.net
* nick2 were kicked by nick1 (blah)

I looked at the FAQ but I can't find anything on this. I hope somebody can help me. Thank you.
Posted By: nycdiesel Re: Kick/Ban Hostmask - 20/11/05 05:33 PM
You can ban by hostmask but not kick by hostmask. An alternative would be:

Code:
/ban -k #channel <nick> 3 <kick message>


Which bans the host in this format:
*!*USER@*.HOST (*!*php1@*.owngsm01.md.comcast.net)
Posted By: MikeChat Re: Kick/Ban Hostmask - 20/11/05 05:41 PM
check how its setting the ban,
/help $address
/help $mask

$mask(address,type)
Returns address with a mask specified by type.

$mask(nick!khaled@mirc.com,1) returns *!*khaled@mirc.com

$mask(nick!khaled@mirc.com,2) returns *!*@mirc.com

The available types are:

0: *!user@host
1: *!*user@host
2: *!*@host
3: *!*user@*.host
4: *!*@*.host
5: nick!user@host
6: nick!*user@host
7: nick!*@host
8: nick!*user@*.host
9: nick!*@*.host
Posted By: stickydank Re: Kick/Ban Hostmask - 22/11/05 02:07 PM
well this is how i did my code in my protection its
trip ban

Code:
 
  mode $chan -qaohv+bbb %nickk %nickk %nickk %nickk $address(%nickk,1) $address(%nickk,9) %nickk | kick $chan %nickk 
the %nickk is a var if u didnt no
so if u not useing Var use $nick
© mIRC Discussion Forums