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