egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

help with a custom aop script i wrote.

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
novastar
Voice


Joined: 07 Dec 2005
Posts: 1

PostPosted: Wed Dec 07, 2005 8:51 am    Post subject: help with a custom aop script i wrote. Reply with quote

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
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Wed Dec 07, 2005 10:15 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber