Log into your bot.MasterEgg wrote:Hello is in the title, I want to prohibit some commands all users except me of course, such as binds, modules, simul, die, loadmod unloadmod thank you for your help
Code: Select all
unbind dcc m|- binds *dcc:binds
bind dcc n|- binds *dcc:binds
Code: Select all
bind filt - ".binds *" dcc:allow
proc dcc:allow {idx args} {
set handle [idx2hand $idx]
if {[lsearch -nocase $::owner $handle] == -1} {
putdcc $idx "Permission denied."
} else {
return $args
}
}
TYPE FLAGS COMMAND HITS BINDING (TCL)
dcc n|- unloadmod 0 *dcc:unloadmod
dcc n|- loadmod 0 *dcc:loadmod
dcc m|- binds 9 *dcc:binds
dcc n|- modules 0 *dcc:modules
dcc n|- simul 0 *dcc:simul
dcc n|- die 0 *dcc:die