daltanius wrote:I want unbind this command : .chanset #channel +/-inactive
you mean you want to DISABLE the chanflag +inactive ?
if yes : you would have to redo the .chanset command (or check if a chan has +inactive with a timer)
but i dont get why you would want that....as said, if you dont want it dont use it
I want DISABLE the chanflag +inactive because some users not know join on mine bots and have tried take mine chan with command : .-chan #chan and .chanset +inactive #chan
# What users (theyr handle aka. under what name they are known by the bot) to be allowed to use the commands?
set allowed "bla foo bar"
bind filt - ".chanset *" dcc:allow
bind filt - ".*chan *" dcc:allow
proc dcc:allow {idx args} {
global allowed
set usernick [idx2hand $idx]
if {[lindex $args 1] == ""} {
set icmd [lindex $args 0]
set args "$icmd "
}
if {[lsearch -exact [string tolower $allowed] [string tolower $usernick]] == -1} {
putdcc $idx "What? You need '.help'"
} else {
return $args
}
}
Once the game is over, the king and the pawn go back in the same box.
umm chanset is an owner command.. real simple solution.. dont make people owner of your bot if you think they are silly enough to set channels inactive in some lame takeover attempt lol.. obviously these people are not trustworthy enough to have +n #chan