Ad Kicker

By pyro on Mar 30, 2007

Just put it into your remotes and it will do all the work for you :)

;made by PyRo

on *:text:*:#: {  if (www. isin $1-) { /kick $chan $nick Please Do NOT Advertise ANYTHING!  | Halt }
  if (.com isin $1-) { /kick $chan $nick Please Do NOT Advertise ANYTHING!  | Halt }
  if (http: isin $1-) { /kick $chan $nick Please Do NOT Advertise ANYTHING! | Halt }
  if (# isin $1-) { /kick $chan $nick Please Do NOT Advertise ANYTHING!  | Halt }
}
}

Comments

Sign in to comment.
Xemnas   -  Apr 14, 2007

Nice. ;)

 Respond  
CodeProphet   -  Mar 31, 2007

well ive thought this would be more handy , just use /ads to add any spam msg e.g:
/ads www.
/ads http://
/ads /server
/ads /join
etc...

on @:text::#:{
set %len $gettok(%ads,0,32)
while (%len) {
if ($+(,$gettok(%ads,%len,32),) iswm $strip($1-)) && ($nick isreg $chan) { ban -k $chan $nick 2 Please Do NOT Advertise ANYTHING! | halt }
dec %len
}
}

alias ads set %ads %ads $1

 Respond  
peterpowell   -  Mar 31, 2007

Hey,

Here is a \"cleaned up version\"(i always feel good coding structure is the best way to learn Feel free to rip this and improve it.

on :text::#: {
if ($me isop $chan) {
if (www. isin $strip($1-)) {
kick $chan $nick Please do not advertise in $chan
halt
}
if (.com isin $strip($1-)) {
kick $chan $nick Please do not advertise in $chan
halt
}
if (http: isin $strip($1-)) {
kick $chan $nick Please do not advertise in $chan
halt
}
if (# isin $strip($1-)) {
kick $chan $nick Please do not advertise in $chan
halt
}
}
}

 Respond  
DarthReven   -  Mar 30, 2007

You also want to check if you are a op in the channel you are using this in

 Respond  
CodeProphet   -  Mar 30, 2007

good job , i was wondering if u could add this in ur update just incase someone spams with colours and doesnt kick ops\voices :=]

if (www. isin $strip($1-)) || (.com isin $strip($1-)) || (.com isin $strip($1-)) && ($nick isreg $chan) { kick # $nick spammer }

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.