egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Only founder can add aop..

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
Sydneybabe
Op


Joined: 27 Apr 2007
Posts: 106
Location: Philippines

PostPosted: Sun Apr 27, 2008 10:45 am    Post subject: Only founder can add aop.. Reply with quote

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 Very Happy
Back to top
View user's profile Send private message
uffs
Voice


Joined: 17 Apr 2008
Posts: 14
Location: 6°10.5S-106°49.7E

PostPosted: Sun May 04, 2008 1:44 pm    Post subject: Reply with quote

you already req similiar scripts..

Code:
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..
Back to top
View user's profile Send private message
Sydneybabe
Op


Joined: 27 Apr 2007
Posts: 106
Location: Philippines

PostPosted: Tue May 06, 2008 9:07 am    Post subject: Reply with quote

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"
Back to top
View user's profile Send private message
uffs
Voice


Joined: 17 Apr 2008
Posts: 14
Location: 6°10.5S-106°49.7E

PostPosted: Tue May 06, 2008 11:05 am    Post subject: Reply with quote

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

Code:

# ----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"
Back to top
View user's profile Send private message
Sydneybabe
Op


Joined: 27 Apr 2007
Posts: 106
Location: Philippines

PostPosted: Tue May 06, 2008 5:08 pm    Post subject: Reply with quote

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?t=14183&highlight=founder+may+addnot not working anymore. Sad
Back to top
View user's profile Send private message
Sydneybabe
Op


Joined: 27 Apr 2007
Posts: 106
Location: Philippines

PostPosted: Mon May 19, 2008 7:43 am    Post subject: Reply with quote

no help regarding that conflict Question
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Mon May 19, 2008 11:43 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
metroid
Owner


Joined: 16 Jun 2004
Posts: 771

PostPosted: Tue May 20, 2008 2:51 pm    Post subject: Reply with quote

The next snippet is the best solution to your problem:

Code:
STOP GIVING SOP ACCESS TO PEOPLE YOU DO NOT TRUST
Back to top
View user's profile Send private message
Sydneybabe
Op


Joined: 27 Apr 2007
Posts: 106
Location: Philippines

PostPosted: Fri Jun 13, 2008 5:54 am    Post subject: Reply with quote

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. Sad
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber