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.

eggie as ircop

Old posts that have not been replied to for several years.
Locked
B
BigSjedow

eggie as ircop

Post by BigSjedow »

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
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

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.
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

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
}
User avatar
Papillon
Owner
Posts: 724
Joined: Fri Feb 15, 2002 8:00 pm
Location: *.no

Post by Papillon »

wouldn't you have to unbind the original dcc:op first?
Elen sila lúmenn' omentielvo
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

I think it will overwrite the original, won't it?
Locked