i've got one question about security.
it's about the way i'm handling master commands:
Code: Select all
bind pub - !normalproc normalproc
bind pub - !!masterproc masterproc
proc masterproc {args} {
if {[matchattr $nick $masterflags]} {
set vmaster "1"
call normalproc $args
unset vmaster
}
}
Code: Select all
proc normalproc {args} {
if {$somesetting || [info exists vmaster]} {
do_something
}
}
do you think it would be enough to add host and chan (e.g. set vmaster($host,$chan) "1")?