# couple things here...
# first...always place binds AFTER procs...just good coding practice
# second...use the 'arguments' suggested in eggdrop doc/tcl-commands.doc for your procs
# doc/tcl-commands.doc is your friend...read it ;}

proc onDeop {nick uhost hand chan mode victim} {
   if {[string equal -nocase $victim $::botnick]} {
      putserv "PRIVMSG $chan :Op me"
   }
}
bind mode - *-o* onDeop
