Code: Select all
bind pubm - "*badword*" swproc
set swdura 600
set swkick "Swearing"
######## CODE - DO NOT TOUCH ########
proc swproc {nick uhost hand chan rest} {
if {[isop $nick $chan] == "0"} {
global swmask swkick swdura
set swmask *!*@[lindex [split [getchanhost $nick $chan] "@"] 1]
putquick "MODE $chan +b $swmask" -next
putquick "KICK $chan $nick :$swkick" -next
utimer $swdura "putserv {MODE $chan -b $swmask}"
return 1
}
}
putlog "=====>> Swearing"
It only bans people if they say a bad word. It wont ban them if the bad word is an action.