| View previous topic :: View next topic |
| Author |
Message |
quantum0726 Voice
Joined: 03 Mar 2006 Posts: 9
|
Posted: Fri Mar 03, 2006 9:44 pm Post subject: Bot only responds to owner, even with public commands |
|
|
Hi, I just set up eggdrop and have been playing with some tcl scripts I found. I then decided to have a friend try to access the bot and discovered that the bot isn't listening/responding to commands from anyone but it's owner. Several of the tcl scripts I have support public commands, but the bot won't respond to any of them unless the command is sent by the owner.
I tried making a simple tcl script with the line:
bind pub -|- !rules rules_pub
and a procedure (rules_pub) that spams out some random text.
This works for the owner but not for anyone else (makes me think this is a conf file issue and not with the individual scripts).
Any ideas what I need to change for this? I want several of the scripts to be available to anyone in the channel (they are trivia and game scripts mostly).
Thanks much! |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Sat Mar 04, 2006 12:53 am Post subject: |
|
|
Users have to be added to the bot and scripts then check for their respective access via matchattr.
From tcl-commands.doc:
| Quote: | matchattr <handle> <flags> [channel]
Returns: 1 if the specified user has the specified flags; 0 otherwise
Module: core |
_________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
quantum0726 Voice
Joined: 03 Mar 2006 Posts: 9
|
Posted: Sun Mar 05, 2006 4:21 am Post subject: |
|
|
| Is there any way then to make a command fully public, so that any user can access it? Or some way to add all users to the bot but only for certain commands? |
|
| Back to top |
|
 |
caesar Mint Rubber

Joined: 14 Oct 2001 Posts: 3741 Location: Mint Factory
|
Posted: Sun Mar 05, 2006 5:34 pm Post subject: |
|
|
bind pub -|- !rules rules_pub <~ that's public! _________________ Once the game is over, the king and the pawn go back in the same box. |
|
| Back to top |
|
 |
quantum0726 Voice
Joined: 03 Mar 2006 Posts: 9
|
Posted: Sun Mar 05, 2006 5:44 pm Post subject: |
|
|
| That is the command that I'm using, but only the owner gets a response from that command. Is there something in the conf. file that needs to be set to listen for these public commands? |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Sun Mar 05, 2006 6:58 pm Post subject: |
|
|
| Alchera wrote: | | .. scripts then check for their respective access via matchattr |
Nothing to do with bot configuration files. Find an appropriate Tcl script to fit your needs. _________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
Ian-Highlander Op
Joined: 24 Sep 2001 Posts: 165 Location: Ely, Cambridgeshire
|
Posted: Mon Mar 06, 2006 7:33 am Post subject: |
|
|
The "rules_pub" procedure that bind is calling must have other verification somewhere in the procedure, that bind is set for ANYONE to use it, known or not. Post that procedure up. _________________ "Insanity Takes Its Toll, Please Have Exact Change" |
|
| Back to top |
|
 |
quantum0726 Voice
Joined: 03 Mar 2006 Posts: 9
|
Posted: Tue Mar 07, 2006 6:19 pm Post subject: |
|
|
Figured out what the problem was. Turned out not to be a script error or an eggdrop error (as was ruled out earlier). My bot resides on irc.freenode.net, which does not allow private messages unless at least one of the nicks is registered. Since my bot didn't have a registered nick, it could only send a private message to the owner, which did have a registered nick. Using a Guest??? nick or anything else would result in nothing from the bot since it couldn't send a privmsg.
Thanks for all your help and suggestions! Now to put up a post to see if anyone knows of an easy way to have my bot respond to NickServ...and turns out searching the forums solves that problem. |
|
| Back to top |
|
 |
|