Sponsored Links




Topic Options
Rate This Topic
#3149 - 09/07/08 01:10 AM Kick and ban ustream spammers
TuxedoJericho Offline
newbie

Registered: 12/24/07
Posts: 42
Loc: Whitesburg, TN
If you have one of those channels where random people come in and spam their ustream links, and you want to get rid of them, this script is for you.
Code:
on *:text:*ustream.tv/*:#channame: {
  if ($nick isop $chan || $nick ishop $chan || $nick isvoice $chan) {
  /halt }
  else {
    ban -u 10800 $chan $nick 3 | /kick $chan $nick Spamming ustream links is now allowed. The ban will expire in three (3) hours.
  }
} 


Of course, replace #channame with your chat name. Also, you can change the
Code:
ban -u 10800 $chan $nick 3
to a lower number to reduce the time amount on the ban, or just make it
Code:
 ban $chan $nick 3
to make a permaban on it.

I know some people may wonder what the 3 is after the $nick parameter. It's the ban type.

Without a ban type: nick!user@full.domain.listed.in.whois.
Ban type 1: *!*user@full.domain.listed.in.whois
Ban type 2: *!*@full.domain.listed.in.whois
Ban type 3: *!user@*.domain.com
Ban type 4: *!*@*.domain.com

You can also change the *ustream.tv/* to any website you want to kick the spammers on.
_________________________
I am Gary "TuxedoJericho" Greenlee, and I support this message.

Top
Sponsored Links
Sponsored Links
Member
*****

Registered: 27/08/04
Posts: 10136
Loc: Mountain View, CA
Top
#3168 - 09/08/08 06:24 PM Re: Kick and ban ustream spammers [Re: TuxedoJericho]
iPhone Offline
Over 100 posts

Registered: 03/08/08
Posts: 109
Loc: New Jersey
Thanks SO much. I needed that
_________________________
-Kevin C. Nunez, CEO and Founder of #iPhone on WyldRyde

Top
#3317 - 10/07/08 04:21 PM Re: Kick and ban ustream spammers [Re: iPhone]
Rockbuddy Offline
n00b

Registered: 12/23/07
Posts: 15
Loc: Florida
It will probably read this much faster even if it isn't very noticeable.
Added: Parenthesis at the end of each if statement, changed halt and else. Halt is decent enough because it will just stop if the nick is one of the following if's. Also, stacking the script can be read much more quickly. You may not be able to notice but it works faster.

on *:text:*ustream.tv/*:#channame: {
if ($nick isop $chan) || ($nick ishop $chan) || ($nick isvoice $chan) { halt }
ban -u 10800 $chan $address($nick,2)
kick $chan $nick Don't Spam your Ustream link!
}


**Also how the ban type was set in the other script would work as well, but this lets you know that there is more than one way of doing it. smile


Edited by Rockbuddy (10/07/08 04:24 PM)

Top
#3437 - 11/03/08 06:59 PM Re: Kick and ban ustream spammers [Re: TuxedoJericho]
CompuNerd Offline
n00b

Registered: 11/03/08
Posts: 3
Loc: England
Looks good, but you do know you don't need "/" in that script.

Top


Recent Posts
RSS Feed for Topics
by usrbingeek
01/08/09 11:57 PM
Lost Voice
by ruben32
01/08/09 10:52 AM
Newstracker
by DragonHeart
01/07/09 10:08 AM
Rules for Voiced (+v) users in #Chris
by Christian
01/06/09 09:10 PM
CHannel Support? @ #Chris
by Mataniah
01/06/09 02:38 PM
Accept - Reject Pm script. Final Version.
by Phil
01/06/09 02:04 PM
Script to join channels with 30+ users.
by usrbingeek
01/05/09 02:32 PM
Ustream IRC Auto Identtifyer
by Dark_Aaron
01/05/09 10:42 AM
IRC Bot Platforms
by Sam Ferry
01/05/09 02:58 AM
Get a free forum for your channel!
by Sam Ferry
01/05/09 02:48 AM
Ban Appeal Process
by Sam Ferry
01/05/09 02:36 AM
Flood Protection
by Dark_Aaron
01/03/09 08:14 PM
Recent Pics
Xchat
mIRC on Linux
mIRC on Linux???
Who's Online
1 registered (1 invisible), 12 Guests and 9 Spiders online.
Key: Admin, Global Mod, Mod
Top Posters
usrbingeek 513
Kat 281
Phil 116
iPhone 109
Freekie 88
Justin 81
CCMike 78
techman224 75
tengrrl 58
wirelesspacket 53
Terms Of Use
Use of this community signifies your agreement to the Terms Of Service and Conditions of Use.