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.
Old posts that have not been replied to for several years.
B
BigSjedow
Post
by BigSjedow » Thu Apr 10, 2003 7:50 am
Hey
I have my eggdrop as ircop. on my private server. my bot has no op and i don't want it to but i would like to give people op via my bot. only if i give the .op command i get the msg that he cant op cause he is no chanal op. Does anyone know how to bypass that ?? So that he can op without being a op.
btw. He has the rights to do that
Grz..
BigSjedow
ppslim
Revered One
Posts: 3914 Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England
Post
by ppslim » Thu Apr 10, 2003 8:03 am
Most of the commands would need t be re-witten, be it in the source code, or in Tcl.
This is because eggdrop is designed for op status, not IRC-op status.
stdragon
Owner
Posts: 959 Joined: Sun Sep 23, 2001 8:00 pm
Contact:
Post
by stdragon » Thu Apr 10, 2003 2:25 pm
Something like this should work. Syntax is .op nick, or .op #chan nick. (Not tested.)
Code: Select all
bind dcc - op sheep_op
proc sheep_op {hand idx text} {
set chan [lindex [console $idx] 0]
set parts [split $text]
if {[llength $parts] == 2} {
set chan [lindex $parts 0]
set nick [lindex $parts 1]
} else {
set nick [lindex $parts 0]
}
set msg "mode $chan +o $nick\n"
putdccraw 0 [string length $msg] $msg
return 1
}
Papillon
Owner
Posts: 724 Joined: Fri Feb 15, 2002 8:00 pm
Location: *.no
Post
by Papillon » Thu Apr 10, 2003 3:15 pm
wouldn't you have to unbind the original dcc:op first?
Elen sila lúmenn' omentielvo
stdragon
Owner
Posts: 959 Joined: Sun Sep 23, 2001 8:00 pm
Contact:
Post
by stdragon » Thu Apr 10, 2003 4:21 pm
I think it will overwrite the original, won't it?