Hi @ all
I need a script for shroudBnC that DeOP's (DeAdmin's /DeVoice's /and so on) a user on disconnect of the client (detach).
Who can help me? It's very important for me and i need it soon.
Thank you very very mutch für you help!!
(16:35:17) (-sBNC) An error occured in the tcl script:
(16:35:17) (-sBNC) invalid command name "putmainlog"
set deopchans [list #chan1 #chan2 #chan3 #etc]
# list above the channels the user is to be deop'd on on client detach
# use * for all currently active channels the user is on
internalbind detach detach:deop
proc detach:deop {client} {
global deopchans
if {$deopchans == ""} { return }
if {$deopchans == "\*"} {
set chans [split [getbncuser $client channels] ,]
} else {
set chans $deopchans
}
foreach chan $chans {
if {$chan == "" || (![botonchan $chan] || ![botisop $chan])} { continue }
putquick "MODE $chan -o $botnick"
}
}
Return to TCL Scripting Request
Users browsing this forum: No registered users and 2 guests