| View previous topic :: View next topic |
| Author |
Message |
novastar Voice
Joined: 07 Dec 2005 Posts: 1
|
Posted: Wed Dec 07, 2005 8:51 am Post subject: help with a custom aop script i wrote. |
|
|
I was wondering if anybody can help me with this script i wrote.
| Code: |
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: |
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. |
|
| Back to top |
|
 |
De Kus Revered One

Joined: 15 Dec 2002 Posts: 1361 Location: Germany
|
Posted: Wed Dec 07, 2005 10:15 am Post subject: |
|
|
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... |
|
| Back to top |
|
 |
|