Simple Anti-Advertising snippet. Helps reduce the occurance, but cannot be guarenteed to stop it.
Remove the ; before the line underneath kick to ban the user
#antiad
on *:TEXT:*#*:%chan:{
if ($3 != %chan) {
kick $1 Don't advertise on the channel
;mode %chan +b $1
}
}
#antiad end
menu channel {
Anti-Advertisement
.On: set %chan $active | enable #antiad
.Off: disable #antiad
}
It supposed to be #antiad on/off, thats why it doesnt enable/disable the group.
You should do a check to see if you are op and you also could use .ban -k $chan $nick 2 instead of kick and then ban (it should be $nick instead of $2 and in the mode +b, at the begin it should be \'.\' not \';\', if you meant that)