This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

SB Script

Old posts that have not been replied to for several years.
Locked
e
e6
Voice
Posts: 5
Joined: Fri Jul 08, 2005 10:33 am

SB Script

Post by e6 »

Hi, i need some help with this. Was long time ago so i forgot stuff.

Code: Select all

bind mode - "*+o*" bitch
set chans "*"
setudef flag superbitch

proc bitch {nick uhost hand chan mode target} {
 global botnick chans; set handle [nick2hand $target $chan]
  if {![channel get $chan superbitch]} {
    return
  }
 if {([lsearch -exact [split [string tolower $chans]] [string tolower $chan]] != -1) || ($chans == "*")} {
  if {([string match "*+o*" $mode]) && (![string equal -nocase $nick $botnick]) && (![string equal -nocase $target $botnick]) && ([botisop $chan])} {
   if {(![matchattr $hand fbomn|fbomn $chan]) && ([matchattr $handle bomn|omn $chan])} { return 0 }
    if {([matchattr $hand bomn|omn $chan])} { return 0 }
     if {(![wasop $target $chan])} {
       putquick "KICK $chan $nick :Dostop Zavrjen (BlueLite Clan)"
       putquick "KICK $chan $target :Dostop Zavrjen (BlueLite Clan)"
      }
    }
  }
}
So.. When there is netsplit and users are opped by servers they all get kicked. But if i add them by +o flag they can op ppl. Can any1 modd this so that ppl with +o flag on some channel wont be able to op other ppl that are not added in bots? Thanks.
User avatar
^DooM^
Owner
Posts: 772
Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:

Post by ^DooM^ »

Try Slennox Superbitch.tcl
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
e
e6
Voice
Posts: 5
Joined: Fri Jul 08, 2005 10:33 am

Post by e6 »

^DooM^ wrote:Try Slennox Superbitch.tcl
i tried it a year ago and still don't like it. so can any1 help me with this script that i posted?
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Re: SB Script

Post by demond »

e6 wrote:so that ppl with +o flag on some channel wont be able to op other ppl that are not added in bots?
that's exactly what eggdrop's built-in channel setting +bitch is for
e
e6
Voice
Posts: 5
Joined: Fri Jul 08, 2005 10:33 am

Re: SB Script

Post by e6 »

demond wrote:
e6 wrote:so that ppl with +o flag on some channel wont be able to op other ppl that are not added in bots?
that's exactly what eggdrop's built-in channel setting +bitch is for
yeah, but it doesn't kick.
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

hmm really? well then, here you go:

Code: Select all

bind mode - "% +o" foo
proc foo {n u h c m v} {
  if [matchattr $h m|m $c] return
  if ![matchattr [nick2hand $v] o|o $c] {
    putkick $c $n,$v "no ops to aliens"
  }
}
e
e6
Voice
Posts: 5
Joined: Fri Jul 08, 2005 10:33 am

Post by e6 »

demond wrote:hmm really? well then, here you go:

Code: Select all

bind mode - "% +o" foo
proc foo {n u h c m v} {
  if [matchattr $h m|m $c] return
  if ![matchattr [nick2hand $v] o|o $c] {
    putkick $c $n,$v "no ops to aliens"
  }
}
hmm.. would be great if i knew where this bitch script is stored.. :)
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

e6 wrote:
demond wrote:hmm really? well then, here you go:

Code: Select all

bind mode - "% +o" foo
proc foo {n u h c m v} {
  if [matchattr $h m|m $c] return
  if ![matchattr [nick2hand $v] o|o $c] {
    putkick $c $n,$v "no ops to aliens"
  }
}
hmm.. would be great if i knew where this bitch script is stored.. :)
in a text file which you source in your config
Locked