setudef flag annoy
bind pubm - {*\?\?\?\?*} pubm:questions
bind pubm - {*\!\!\!\!*} pubm:exclamation
proc pubm:questions {nick uhost hand chan text} {
if {![channel get $chan annoy] || [matchattr $hand of|fo $chan] || [isop $nick $chan] ![botisop $chan]} {
return
}
scan $uhost {%*[^@]@%s} host
newchanban $chan *!*@$host annoy "5 minutes for using so many question marks within $chan channel.." 5
}
proc pubm:exclamation {nick uhost hand chan text} {
if {![channel get $chan annoy] || [matchattr $hand of|fo $chan] || [isop $nick $chan] || ![botisop $chan]} {
return
}
newchanban $chan *!*@$host annoy "5 minutes for using so many exclamations marks within $chan channel.." 5
}
To enable it on a specific channel just do.chanset #channel +annoy and .chanset #channel -annoy to disable it. haven't tested it but should be working smoothly.
Once the game is over, the king and the pawn go back in the same box.