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 

Public Quotes System (current version: 1.32)
Goto page Previous  1, 2, 3, 4
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Sat Apr 13, 2013 1:35 pm    Post subject: Reply with quote

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 Wink
_________________
speechles' eggdrop tcl archive
Back to top
View user's profile Send private message
x0x
Op


Joined: 10 Feb 2009
Posts: 140

PostPosted: Sat Apr 13, 2013 3:03 pm    Post subject: Reply with quote

Works like a charm! Cool Laughing
Back to top
View user's profile Send private message
x0x
Op


Joined: 10 Feb 2009
Posts: 140

PostPosted: Sat Apr 13, 2013 3:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Sat Apr 13, 2013 6:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
c0urier
Voice


Joined: 13 Nov 2013
Posts: 3

PostPosted: Thu Nov 14, 2013 1:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
x0x
Op


Joined: 10 Feb 2009
Posts: 140

PostPosted: Fri Dec 06, 2013 3:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
caesar
Mint Rubber


Joined: 14 Oct 2001
Posts: 3741
Location: Mint Factory

PostPosted: Sat Dec 07, 2013 4:08 am    Post subject: Reply with quote

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
View user's profile Send private message
x0x
Op


Joined: 10 Feb 2009
Posts: 140

PostPosted: Mon Dec 09, 2013 12:03 pm    Post subject: Reply with quote

Both don't work... nothing happens.
Back to top
View user's profile Send private message
play4free2
Voice


Joined: 23 Nov 2013
Posts: 33

PostPosted: Mon Jan 13, 2014 9:34 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases All times are GMT - 4 Hours
Goto page Previous  1, 2, 3, 4
Page 4 of 4

 
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