mIRC Home    About    Download    Register    News    Help

Print Thread
Kick and ban script for when pm'd #123524 24/06/05 01:39 PM
Joined: Jun 2005
Posts: 14
X
Xiad Offline OP
Pikka bird
OP Offline
Pikka bird
X
Joined: Jun 2005
Posts: 14
I wish to kick, then ban anyone who pm's me.. anyone know how to achive this?

Re: Kick and ban script for when pm'd #123525 24/06/05 02:36 PM
Joined: Oct 2004
Posts: 8,330
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
If you want to kick/ban them from a specific channel:

Code:
on *:text:*:?: {
  if ($nick ison #yourchan && $me isop #yourchan) {
    ban -k #yourchan $address($nick,2)
  }
}


Invision Support
#Invision on irc.irchighway.net
Re: Kick and ban script for when pm'd #123526 24/06/05 03:19 PM
Joined: Jun 2005
Posts: 14
X
Xiad Offline OP
Pikka bird
OP Offline
Pikka bird
X
Joined: Jun 2005
Posts: 14
It bans, but not kicks.. If you know of how to do that, great.. Other than that, works like a charm smile

Re: Kick and ban script for when pm'd #123527 24/06/05 03:35 PM
Joined: Jun 2005
Posts: 14
X
Xiad Offline OP
Pikka bird
OP Offline
Pikka bird
X
Joined: Jun 2005
Posts: 14
Nevermind, I worked it out from what I had lol

Re: Kick and ban script for when pm'd #123528 24/06/05 04:11 PM
Joined: Oct 2004
Posts: 8,330
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
My fault. -k works only on $nick.

Code:
on *:text:*:?: {
  if ($nick ison #yourchan && $me isop #yourchan) {
    ban #yourchan $address($nick,2)
    kick #yourchan $nick Don't PM me.
  }
}


Invision Support
#Invision on irc.irchighway.net
Re: Kick and ban script for when pm'd #123529 24/06/05 04:46 PM
Joined: Mar 2005
Posts: 420
X
xDaeMoN Offline
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
Instead of using $address, /ban has an optional masking

Code:
 ban -k #yourchan $nick 2 


If you have a plastic floor runner over your tiles, then you're one Hella Pinoy!
Re: Kick and ban script for when pm'd #123530 24/06/05 04:59 PM
Joined: Oct 2004
Posts: 8,330
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Heh. I forgot about that. I always just ban manually. smile


Invision Support
#Invision on irc.irchighway.net