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.

Only founder can add aop..

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
S
Sydneybabe
Op
Posts: 106
Joined: Fri Apr 27, 2007 3:31 am
Location: Philippines

Only founder can add aop..

Post by Sydneybabe »

Hi good day, i need a script that when the sop add aop on my channel the eggdrop sop will delete the aop added by other sop's. I will use on Dalnet server. Thanks in advance guys :D
u
uffs
Voice
Posts: 14
Joined: Thu Apr 17, 2008 9:18 pm
Location: 6°10.5S-106°49.7E

Post by uffs »

you already req similiar scripts..

Code: Select all

http://forum.egghelp.org/viewtopic.php?t=14183&highlight=founder+may+add
what u should do, just replace "akick" to "aop" in a whole scripts..

I have made one base that script and work..
S
Sydneybabe
Op
Posts: 106
Joined: Fri Apr 27, 2007 3:31 am
Location: Philippines

Post by Sydneybabe »

hi uffs, i did what u told me and this an error occured -
Tcl error [check:why]: wrong # args: should be "stripcodes strip-flags string"
u
uffs
Voice
Posts: 14
Joined: Thu Apr 17, 2008 9:18 pm
Location: 6°10.5S-106°49.7E

Post by uffs »

test with eggdrop1.6.18/tcl8.4, work !

Code: Select all

# ----bind(s)------------
bind notc - {[VERBOSE]* => aop * add *} check:addAOp 
bind notc - {* has * access to * Reason:*} check:why 
catch {unset aop:queue} 

# -----proc(s)----------
proc sign {msg} {
  putlog "$msg"
}

proc check:addAOp {nick host hand text {dest ""}} { 
 if {$dest == "" || [isbotnick $dest] || ![string equal -nocase "chanserv!service@dal.net" "$nick!$host"]} { 
  return 
 } 
 if {[regexp -- {^\[VERBOSE\] (.+?)!(.+?) => aop (.+?) add (.+?)$} [stripcodes bcruag $text] match tnick thost tchan tmask] && ![isbotnick $tnick]} { 
  set ::aop:queue([list [string tolower $tchan] [string tolower $tnick]]) $tmask 
  putserv "CHANSERV WHY $tchan $tnick" 
 } 
} 

proc check:why {nick host hand text {dest ""}} { 
 if {![string equal -nocase "chanserv!service@dal.net" "$nick!$host"]} { 
  return 
 } 
 if {$dest == "" || [isbotnick $dest]} { 
  if {[regexp -- {^(.+?) has (SOp|AOp) access to (.+?)\. +Reason: Identification to the nickname (.+?)\. Channel Frozen: (YES|NO)$} [stripcodes bcruag $text] match tnick tacc tchan trnick tfrozen]} { 
   if {[info exists ::aop:queue] && [info exists ::aop:queue([list [string tolower $tchan] [string tolower $tnick]])]} { 
    putserv "CHANSERV aop $tchan DEL [set ::aop:queue([list [string tolower $tchan] [string tolower $tnick]])]" 
    puthelp "PRIVMSG $tnick :Only Founder may add AOp's at $tchan" 
    unset ::aop:queue([list [string tolower $tchan] [string tolower $tnick]]) 
   } 
  } 
 } 
} 

# -----end------------

sign "AOp Remove Successfully Loaded"
S
Sydneybabe
Op
Posts: 106
Joined: Fri Apr 27, 2007 3:31 am
Location: Philippines

Post by Sydneybabe »

hi uffs thanks it's work but the problem now the script looks like conflict the aop delete working ...but the akick delete http://forum.egghelp.org/viewtopic.php? ... may+addnot not working anymore. :(
S
Sydneybabe
Op
Posts: 106
Joined: Fri Apr 27, 2007 3:31 am
Location: Philippines

Post by Sydneybabe »

no help regarding that conflict :?:
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Sydneybabe wrote:hi uffs, i did what u told me and this an error occured -
Tcl error [check:why]: wrong # args: should be "stripcodes strip-flags string"
You have two procedures no doubt using the same variables in some instances.

Maybe assign another variable to $text i.e. set customvar $text etc.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

The next snippet is the best solution to your problem:

Code: Select all

STOP GIVING SOP ACCESS TO PEOPLE YOU DO NOT TRUST
S
Sydneybabe
Op
Posts: 106
Joined: Fri Apr 27, 2007 3:31 am
Location: Philippines

Post by Sydneybabe »

metroid they are my long friend on IRC and if i have to tell them don't add aop sometimes they refuse to listen and it feels bad for them if i have to demote there sop access to aop i hope u understand why i'm requesting this kind of tcl. :(
Post Reply