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.

help with a custom aop script i wrote.

Help for those learning Tcl or writing their own scripts.
Post Reply
n
novastar
Voice
Posts: 1
Joined: Wed Dec 07, 2005 8:46 am

help with a custom aop script i wrote.

Post by novastar »

I was wondering if anybody can help me with this script i wrote.

Code: Select all

bind msg - !opme aop_op
proc aop_op {nick host hand chan text} {

pushmode $chan +o $nick
putserv "PRIVMSG $chan :Sure thing $nick."
return 0
}

putlog "OP Script is loaded succesfully!"
I had it working for a little while, then i changed it to this:

Code: Select all

bind msg - !opme aop_op
bind msg - !deopme deop_op

proc aop_op {nick host hand chan text} {

pushmode $chan +o $nick
putserv "PRIVMSG $chan :Sure thing $nick."
return 0
}

proc deop_op {nick host hand chan text} {

pushmode $chan -o $nick
putserv "PRIVMSG $chan :Sure thing $nick."
return 0
}

putlog "OP Script is loaded succesfully!"
Once i changed it to the second version it quit working, it wouldnt op or de op anybody
So i changed it back to the origional form (top code)
Ive done everything i can think of.
The script is added in the eggdrop.conf
i have .rehash and .restart
ive even killed the eggdrop process and restarted it that way.
Nothing i do works.
Any help is greatly appriciated.
User avatar
De Kus
Revered One
Posts: 1361
Joined: Sun Dec 15, 2002 11:41 am
Location: Germany

Post by De Kus »

If you looked up the error using .set errorInfo, you would have noticed the TCL error "wrong number of arguments" for calling aop_op and deop_op. YOu obviously changed the binding from pub to msg without taking care about the changes.
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
Post Reply