hello, can someone let me know if its possible to have *all* commands with ! to make only masters to use them in a global way? i have added a validuser check for all procs righr now, but i thought this could be set globally? any help is wanted =)
w0lfstar wrote:hello, can someone let me know if its possible to have *all* commands with ! to make only masters to use them in a global way? i have added a validuser check for all procs righr now, but i thought this could be set globally? any help is wanted =)
ps: maybe the global error msg can be set to:
you have to ident yourself to use any command.
wolfy
I wrote such a script a month ago, here give it a try.
hm i meant it like this: user is known by the bot with a working hostmask but user2 is not.
so when user trys any !<cmd> like:
!showsports, !showtv etc
only user can enter *any* ! commands. user2 will always get a error msg like: "you are not allowed to use any ! commands if you arent in my userdatabase with a working hostmask"
foreach b [binds pub] {
if {[string index [join [lindex [split $b] 2]] 0] == "!"} {
set a [lindex [split $b] end] ; set c [info args $a]
set d "if {!\[matchattr \$[lindex [info args $a] 2] f|f \$[lindex [info args $a] 3]]} { puthelp \"PRIVMSG \$[lindex [info args $a] 0] :your msg here\" ; return } "
append d [info body $a]
proc $a $c $d
}
}
unset a b c d