<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/13997" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2014-01-13T21:34:02-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/13997</id>

		<entry>
		<author><name><![CDATA[play4free2]]></name></author>
		<updated>2014-01-13T21:34:02-04:00</updated>

		<published>2014-01-13T21:34:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102488#p102488</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102488#p102488"/>
		<title type="html"><![CDATA[Public Quotes System (current version: 1.32)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102488#p102488"><![CDATA[
I am running speechles's Attempt x3 Version and just found an error.<br><br>Short description: <br>If you do !findquote in any channel other then the one the quote was added in, the command don't work.<br><br>Long description:<br>If I do in a different channel: !findquote #channel &lt;search arguments&gt;<br>I am getting:<br>[17:23:40] Tcl error [pubqsys::findquote]: no such channel record &lt;-- In DCC Chat<br><br>If I do in a different channel: !findquote -all &lt;search arguments&gt; <br>I get no error but I don't get a reply from the bot.<br><br>If I do in a different channel: !findquote #channel<br>I am getting:<br>[6:29pm] &lt;BotNick&gt; ::: Error : Empty database. &lt;-- In Channel<br><br>All other commands seem to work fine in a different channel then the quote was added and the bot finds the channel record<br><br>Examples:<br> !quote 1 #channel works<br> !randquote #channel works<br> etc.<br><br>NOTE: I already edited It's line 793<br><br>Thanks for any help fixing the issue<br><br><strong class="text-strong">Edit/Update:</strong> I removed speechles's Attempt x3 Version and replaced it with the original one from the Archives and now everything works with no errors.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12296">play4free2</a> — Mon Jan 13, 2014 9:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[x0x]]></name></author>
		<updated>2013-12-09T12:03:02-04:00</updated>

		<published>2013-12-09T12:03:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102284#p102284</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102284#p102284"/>
		<title type="html"><![CDATA[Public Quotes System (current version: 1.32)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102284#p102284"><![CDATA[
Both don't work... nothing happens.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10486">x0x</a> — Mon Dec 09, 2013 12:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2013-12-07T04:08:33-04:00</updated>

		<published>2013-12-07T04:08:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102278#p102278</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102278#p102278"/>
		<title type="html"><![CDATA[Public Quotes System (current version: 1.32)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102278#p102278"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>proc pubqsys::channel_check {chan nick} {      if {[channel get $chan quotes] &amp;&amp; [isop $nick $chan]} { return 1 }return 0}</code></pre></div>this proc is doing that, so either add a variable where you could set this channel_check on/off, like this:<div class="codebox"><p>Code: </p><pre><code>variable channel_check 0</code></pre></div>added in the settings area, and replace the above proc with:<div class="codebox"><p>Code: </p><pre><code>proc pubqsys::channel_check {chan nick} {      variable channel_check      if {$channel_check &amp;&amp; [isop $nick $chan]} { return 1 }return 0}</code></pre></div>or create a channel flag and enable it per channel where you want it to be active only for channel operators, like this:<div class="codebox"><p>Code: </p><pre><code>setudef flag channel_check</code></pre></div>added in the settings area, and replace the above proc with:<div class="codebox"><p>Code: </p><pre><code>proc pubqsys::channel_check {chan nick} {      if {[channel get $chan channel_check] &amp;&amp; [isop $nick $chan]} { return 1 }return 0}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sat Dec 07, 2013 4:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[x0x]]></name></author>
		<updated>2013-12-06T15:47:32-04:00</updated>

		<published>2013-12-06T15:47:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102276#p102276</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102276#p102276"/>
		<title type="html"><![CDATA[Public Quotes System (current version: 1.32)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102276#p102276"><![CDATA[
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?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10486">x0x</a> — Fri Dec 06, 2013 3:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[c0urier]]></name></author>
		<updated>2013-11-14T13:58:44-04:00</updated>

		<published>2013-11-14T13:58:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102212#p102212</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102212#p102212"/>
		<title type="html"><![CDATA[Public Quotes System (current version: 1.32)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102212#p102212"><![CDATA[
That one gives:<br>[18:58:04] Tcl error in script for 'timer3':<br>[18:58:04] missing close-bracket<br>in expression "[info exists instance($..."<br><br>It's line 793:<br>Wrong:  <div class="codebox"><p>Code: </p><pre><code>if {[info exists instance($chan$type)} {</code></pre></div>Correct:   <div class="codebox"><p>Code: </p><pre><code>if {[info exists instance($chan$type)]} {</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12292">c0urier</a> — Thu Nov 14, 2013 1:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2013-04-13T18:35:30-04:00</updated>

		<published>2013-04-13T18:35:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101390#p101390</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101390#p101390"/>
		<title type="html"><![CDATA[Public Quotes System (current version: 1.32)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101390#p101390"><![CDATA[
<blockquote class="uncited"><div>Ups! I see these errors on the bot console<br><br>[20:59:41] Tcl error in script for 'timer19':<br>[20:59:41] can't read "instance(#MYCHANNELglobal)": no such element in array</div></blockquote>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.<br><br><br>Attempt x3: <a href="http://ereader.kiczek.com/public_quotes_chanops.txt" class="postlink">http://ereader.kiczek.com/public_quotes_chanops.txt</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Sat Apr 13, 2013 6:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[x0x]]></name></author>
		<updated>2013-04-13T15:07:12-04:00</updated>

		<published>2013-04-13T15:07:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101388#p101388</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101388#p101388"/>
		<title type="html"><![CDATA[Public Quotes System (current version: 1.32)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101388#p101388"><![CDATA[
Ups! I see these errors on the bot console<br><br>[20:59:41] Tcl error in script for 'timer19':<br>[20:59:41] can't read "instance(#MYCHANNELglobal)": no such element in array<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10486">x0x</a> — Sat Apr 13, 2013 3:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[x0x]]></name></author>
		<updated>2013-04-13T15:03:20-04:00</updated>

		<published>2013-04-13T15:03:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101387#p101387</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101387#p101387"/>
		<title type="html"><![CDATA[Public Quotes System (current version: 1.32)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101387#p101387"><![CDATA[
Works like a charm!  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cool.gif" width="15" height="15" alt="8)" title="Cool">  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_lol.gif" width="15" height="15" alt=":lol:" title="Laughing"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10486">x0x</a> — Sat Apr 13, 2013 3:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2013-04-13T13:35:06-04:00</updated>

		<published>2013-04-13T13:35:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101386#p101386</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101386#p101386"/>
		<title type="html"><![CDATA[Public Quotes System (current version: 1.32)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101386#p101386"><![CDATA[
<blockquote class="uncited"><div>Ok, it was missing indeed. Added it, enabled it with the bot. Still does not work.<br><br>When someone tries one of the commands:<br><br>[16:47:11] Tcl error [pubqsys::quote]: illegal channel: USERSNICKNAME</div></blockquote>On snap dog, that isn't cool... So ran the thing myself this time, tested it, and now she works...exactly as you desire.<br><br><a href="http://ereader.kiczek.com/public_quotes_chanops.txt" class="postlink">http://ereader.kiczek.com/public_quotes_chanops.txt</a><br><br>Enjoys <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Sat Apr 13, 2013 1:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[x0x]]></name></author>
		<updated>2013-04-13T10:48:04-04:00</updated>

		<published>2013-04-13T10:48:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101385#p101385</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101385#p101385"/>
		<title type="html"><![CDATA[Public Quotes System (current version: 1.32)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101385#p101385"><![CDATA[
Ok, it was missing indeed. Added it, enabled it with the bot. Still does not work.<br><br>When someone tries one of the commands:<br><br>[16:47:11] Tcl error [pubqsys::quote]: illegal channel: USERSNICKNAME<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10486">x0x</a> — Sat Apr 13, 2013 10:48 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2013-04-13T10:23:54-04:00</updated>

		<published>2013-04-13T10:23:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101384#p101384</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101384#p101384"/>
		<title type="html"><![CDATA[Public Quotes System (current version: 1.32)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101384#p101384"><![CDATA[
Search for this line in the script and see if it's there...<div class="codebox"><p>Code: </p><pre><code>setudef flag quotes</code></pre></div>If it's not, add it to the top of the script.<br><br>Then in dcc chat with the bot, enable the script for each channel you want the script to run in, with...<blockquote class="uncited"><div>.chanset #yourchan +quotes</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Sat Apr 13, 2013 10:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[x0x]]></name></author>
		<updated>2013-04-13T06:36:47-04:00</updated>

		<published>2013-04-13T06:36:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101383#p101383</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101383#p101383"/>
		<title type="html"><![CDATA[Public Quotes System (current version: 1.32)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101383#p101383"><![CDATA[
Don't think it works, there is no "-quotes" so no option to set "+quotes".<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10486">x0x</a> — Sat Apr 13, 2013 6:36 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[x0x]]></name></author>
		<updated>2013-04-13T06:25:51-04:00</updated>

		<published>2013-04-13T06:25:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101382#p101382</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101382#p101382"/>
		<title type="html"><![CDATA[Public Quotes System (current version: 1.32)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101382#p101382"><![CDATA[
Very, very nice! THANK you!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10486">x0x</a> — Sat Apr 13, 2013 6:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2013-04-13T01:05:44-04:00</updated>

		<published>2013-04-13T01:05:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101381#p101381</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101381#p101381"/>
		<title type="html"><![CDATA[Public Quotes System (current version: 1.32)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101381#p101381"><![CDATA[
<blockquote class="uncited"><div>But that disables this setting completely and makes the script reply in all channels the bot is on...</div></blockquote><div class="codebox"><p>Code: </p><pre><code>setudef flag quotes...if {[pubqsys::channel_check $chan $nick] == 0} {...proc pubqsys::channel_check {chan nick} {  if {[channel get $chan quotes] &amp;&amp; [isop $chan $nick]} { return 1 }  return 0}...</code></pre></div>I've altered the procedure to check for more than it originally did and altered every invocation as well. Then changed how it builds allowed_channels internally in each procedure.<br> <div class="codebox"><p>Code: </p><pre><code>set allowed_chans [list]; foreach chan [channels] { if {[channel get $chan quotes]} { lappend allowed_chans $chan } }</code></pre></div>This behaves identically to having it "static" within the config as a variable. But with the benefit you can dynamically at any time turn it on/off in channels on a whim. The quotes are different for each channel by the way. You use the -all switch to make the channel irrelevant.<br><br>So really, I took the limitations the script had away and made it perform exactly as x0x has requested. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Sat Apr 13, 2013 1:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2013-04-12T23:24:35-04:00</updated>

		<published>2013-04-12T23:24:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101380#p101380</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101380#p101380"/>
		<title type="html"><![CDATA[Public Quotes System (current version: 1.32)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101380#p101380"><![CDATA[
But that disables this setting completely and makes the script reply in all channels the bot is on...<div class="codebox"><p>Code: </p><pre><code>  variable allowed_chans {#yourchan}</code></pre></div><br>Maybe something more like this??<div class="codebox"><p>Code: </p><pre><code>proc pubqsys::channel_check {chan nick} {  if {[isop $chan $nick] &amp;&amp; [lsearch -exact $pubqsys::allowed_chans $chan]&gt;"-1"} { return 1 } { return 0 }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Fri Apr 12, 2013 11:24 pm</p><hr />
]]></content>
	</entry>
	</feed>
