| View previous topic :: View next topic |
| Author |
Message |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Sat Apr 13, 2013 1:35 pm Post subject: |
|
|
| x0x wrote: | Ok, it was missing indeed. Added it, enabled it with the bot. Still does not work.
When someone tries one of the commands:
[16:47:11] Tcl error [pubqsys::quote]: illegal channel: USERSNICKNAME |
On snap dog, that isn't cool... So ran the thing myself this time, tested it, and now she works...exactly as you desire.
http://ereader.kiczek.com/public_quotes_chanops.txt
Enjoys  _________________ speechles' eggdrop tcl archive |
|
| Back to top |
|
 |
x0x Op
Joined: 10 Feb 2009 Posts: 140
|
Posted: Sat Apr 13, 2013 3:03 pm Post subject: |
|
|
Works like a charm!  |
|
| Back to top |
|
 |
x0x Op
Joined: 10 Feb 2009 Posts: 140
|
Posted: Sat Apr 13, 2013 3:07 pm Post subject: |
|
|
Ups! I see these errors on the bot console
[20:59:41] Tcl error in script for 'timer19':
[20:59:41] can't read "instance(#MYCHANNELglobal)": no such element in array |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Sat Apr 13, 2013 6:35 pm Post subject: |
|
|
| x0x wrote: | Ups! I see these errors on the bot console
[20:59:41] Tcl error in script for 'timer19':
[20:59:41] can't read "instance(#MYCHANNELglobal)": no such element in array |
Indeed, it's the odd shimmering effect rampant in this script it causes problems.. I've hopefully fixed the issue you were having with the timers. If not, shout out again.
Attempt x3: http://ereader.kiczek.com/public_quotes_chanops.txt _________________ speechles' eggdrop tcl archive |
|
| Back to top |
|
 |
c0urier Voice
Joined: 13 Nov 2013 Posts: 3
|
Posted: Thu Nov 14, 2013 1:58 pm Post subject: |
|
|
That one gives:
[18:58:04] Tcl error in script for 'timer3':
[18:58:04] missing close-bracket
in expression "[info exists instance($..."
It's line 793:
Wrong: | Code: | | if {[info exists instance($chan$type)} { |
Correct: | Code: | | if {[info exists instance($chan$type)]} { |
|
|
| Back to top |
|
 |
x0x Op
Joined: 10 Feb 2009 Posts: 140
|
Posted: Fri Dec 06, 2013 3:47 pm Post subject: |
|
|
| Correct. I want my normal users to be able to !randquote, !quote, !quoteinfo with the script above. Now all commands are channel ops only. How to change this? |
|
| Back to top |
|
 |
caesar Mint Rubber

Joined: 14 Oct 2001 Posts: 3741 Location: Mint Factory
|
Posted: Sat Dec 07, 2013 4:08 am Post subject: |
|
|
| Code: |
proc pubqsys::channel_check {chan nick} {
if {[channel get $chan quotes] && [isop $nick $chan]} { return 1 }
return 0
}
|
this proc is doing that, so either add a variable where you could set this channel_check on/off, like this:
| Code: |
variable channel_check 0
|
added in the settings area, and replace the above proc with:
| Code: |
proc pubqsys::channel_check {chan nick} {
variable channel_check
if {$channel_check && [isop $nick $chan]} { return 1 }
return 0
}
|
or create a channel flag and enable it per channel where you want it to be active only for channel operators, like this:
| Code: |
setudef flag channel_check
|
added in the settings area, and replace the above proc with:
| Code: |
proc pubqsys::channel_check {chan nick} {
if {[channel get $chan channel_check] && [isop $nick $chan]} { return 1 }
return 0
}
|
_________________ Once the game is over, the king and the pawn go back in the same box. |
|
| Back to top |
|
 |
x0x Op
Joined: 10 Feb 2009 Posts: 140
|
Posted: Mon Dec 09, 2013 12:03 pm Post subject: |
|
|
| Both don't work... nothing happens. |
|
| Back to top |
|
 |
play4free2 Voice

Joined: 23 Nov 2013 Posts: 33
|
Posted: Mon Jan 13, 2014 9:34 pm Post subject: |
|
|
I am running speechles's Attempt x3 Version and just found an error.
Short description:
If you do !findquote in any channel other then the one the quote was added in, the command don't work.
Long description:
If I do in a different channel: !findquote #channel <search arguments>
I am getting:
[17:23:40] Tcl error [pubqsys::findquote]: no such channel record <-- In DCC Chat
If I do in a different channel: !findquote -all <search arguments>
I get no error but I don't get a reply from the bot.
If I do in a different channel: !findquote #channel
I am getting:
[6:29pm] <BotNick> ::: Error : Empty database. <-- In Channel
All other commands seem to work fine in a different channel then the quote was added and the bot finds the channel record
Examples:
!quote 1 #channel works
!randquote #channel works
etc.
NOTE: I already edited It's line 793
Thanks for any help fixing the issue
Edit/Update: I removed speechles's Attempt x3 Version and replaced it with the original one from the Archives and now everything works with no errors. _________________
420-HIGHTIMES IRC Network |
|
| Back to top |
|
 |
|