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 }
}
}
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
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
}
}
}