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 

New users not allowed to call scripts?

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


Joined: 26 Jan 2006
Posts: 2

PostPosted: Thu Jan 26, 2006 7:41 pm    Post subject: New users not allowed to call scripts? Reply with quote

I have an eggdrop bot setup, and it's running nicely enough - except that it seems as though most users cannot run a script I have installed.

The script is the Quickvote v1.02 script, and normally to get usage info you type *vote into the channel, and can then vote with like *vote votehere, and similar.
This works fine for me (bot owner) and a friend who's got auto ops, but for some reason doens't seem to work at all (*vote gives no response) to people just joined. Saying hello to the bot, setting a password, or registering with the nickserv make no difference.

I *have* noticed that *yes or *no (used to submit your vote) ALWAYS seem to work, so I imagine it's a part of the script that's stopping *vote from working with normal members.

However, I'm not exactly fluent in tcl, so I can't say I have any idea what part of the script it would be.

If any of you have any insight, that would be great.

The part of the script that echoes usage:

Code:

bind pub o|o [cmdchar]vote pub_vote
proc pub_vote {nick uhost hand chan rest} {
 global vote vote_displays
 if {$rest == ""} {vote_out $nick "Calling Syntax: [cmdchar]vote Question"
                   vote_out $nick "Include +oponly to indicate only OPs may vote."
                   vote_out $nick "vote nick/sitemask +ban  to start a vote2ban"
                   vote_out $nick "vote nick/sitemask +pban  to start a vote2permban"
                   vote_out $nick "vote nick/sitemask +gban  to start a vote2globalpermban"
                   vote_out $nick "vote nick +op  to start a vote4permchanops"

                   vote_out $nick "vote nick/sitemask -ban  to start a vote2unban"
                   vote_out $nick "vote nick/sitemask -pban  to start a vote2unpermban"
                   vote_out $nick "vote nick/sitemask -gban  to start a vote2globalunpermban"
                   vote_out $nick "abort   Will abort the current vote"
                   return 0}

Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Thu Jan 26, 2006 7:55 pm    Post subject: Reply with quote

Code:
bind pub o|o [cmdchar]vote pub_vote

This means the bind will trigger only when users with a global or chan-specific +o flag send *vote to the channel, if you want everybody to be able to use it then change o|o to -.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
Random
Voice


Joined: 26 Jan 2006
Posts: 2

PostPosted: Thu Jan 26, 2006 8:20 pm    Post subject: Reply with quote

Woot! it works!
Thanks a load Very Happy
Back to top
View user's profile Send private message
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