Code: Select all
#tested with 'windrop v1.6.19' sorry!
bind mode - "*" check:mode
bind time - "15 * * * *" checkmode:time
proc check:mode {nick host handle channel mode {target ""}} {
global botnick
if {($target != "")} {append mode " $target"}
if {([channel get $channel "checkmode"])} {
if {([regexp -all -- {(m|i)} "$mode"] > 0)} {
if {([botisop $channel])} {
putquick "MODE $channel -im"
return
}
}
}
}
proc checkmode:time {minute hour day month year} {
foreach chan [channels] {
if {([channel get $chan "checkmode"])} {
if {([regexp -all -- {(m|i)} "[lindex [split [getchanmode $chan] "+"] 1]"] > 0)} {
if {([botisop $chan])} {
putquick "MODE $chan -im"
}
}
}
}; return
}
setudef flag checkmode
putlog "loaded checkmode.tcl version 1.0 by TCL_no_TK"
return
use '*' as <#channel-name> for it to work on all channels eggdrop is on, if you wish. And feel free to reply if you have any errors!.chanset <#channel-name> +checkmode