sbnc script

Do you have script in mind but no ability to make it, type in what it should do, and you might be lucky.

sbnc script

Postby arrmageddon » Thu Sep 24, 2009 10:37 pm

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!!
arrmageddon
 

Re: sbnc script

Postby StareX » Wed Oct 07, 2009 6:11 am

viewtopic.php?f=15&t=237
there is the script.
StareX
 

Re: sbnc script

Postby arrmageddon » Wed Oct 07, 2009 3:10 pm

Hy StareX,
1. This Script doesn't work.
Code: Select all
(16:35:17) (-sBNC) An error occured in the tcl script:
(16:35:17) (-sBNC) invalid command name "putmainlog"


2. The script shoult ONLY deop (deAndmin, and so on...) users if they disconnect the shroudBNC.
That means: User1 quits his irc-client and now should go bouncer and deop the users name in chat.
arrmageddon
 

Re: sbnc script

Postby r0t3n » Mon Oct 12, 2009 9:06 pm

Code: Select all
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"
  }
}


Not tested
r0t3n
 


Return to TCL Scripting Request

Who is online

Users browsing this forum: No registered users and 1 guest

cron