<?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/11271" />

	<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>2007-11-20T19:56:19-04:00</updated>

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

		<entry>
		<author><name><![CDATA[MenzAgitat]]></name></author>
		<updated>2007-11-20T19:56:19-04:00</updated>

		<published>2007-11-20T19:56:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=78583#p78583</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=78583#p78583"/>
		<title type="html"><![CDATA[Quotes.tcl v0.1]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=78583#p78583"><![CDATA[
If you are looking for a full featured quotes manager script and a working link, you can take a look at my <a href="http://forum.egghelp.org/viewtopic.php?t=13997" class="postlink">Public Quotes System</a>  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7933">MenzAgitat</a> — Tue Nov 20, 2007 7:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2007-11-20T18:41:40-04:00</updated>

		<published>2007-11-20T18:41:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=78575#p78575</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=78575#p78575"/>
		<title type="html"><![CDATA[Quotes.tcl v0.1]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=78575#p78575"><![CDATA[
<blockquote class="uncited"><div>Links are broken.</div></blockquote>Look at the original post date and <em class="text-italics">then</em> put 2 and 2 together.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Tue Nov 20, 2007 6:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[krieg]]></name></author>
		<updated>2007-11-20T11:37:49-04:00</updated>

		<published>2007-11-20T11:37:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=78565#p78565</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=78565#p78565"/>
		<title type="html"><![CDATA[Quotes.tcl v0.1]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=78565#p78565"><![CDATA[
Links are broken.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9478">krieg</a> — Tue Nov 20, 2007 11:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rt]]></name></author>
		<updated>2006-01-31T05:41:56-04:00</updated>

		<published>2006-01-31T05:41:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59958#p59958</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59958#p59958"/>
		<title type="html"><![CDATA[Quotes.tcl v0.1]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59958#p59958"><![CDATA[
Hi metroid<br><br>Thanks for your suggestions, I appreciate them. I hope you didn't mind however I updated the script with your suggestions.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6457">rt</a> — Tue Jan 31, 2006 5:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2006-01-31T04:57:02-04:00</updated>

		<published>2006-01-31T04:57:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59957#p59957</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59957#p59957"/>
		<title type="html"><![CDATA[Quotes.tcl v0.1]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59957#p59957"><![CDATA[
Some notes<br><div class="codebox"><p>Code: </p><pre><code>source /home/Kicky/calbot/scripts/vars.tcl</code></pre></div>this line is found in the code, this is basically stupid as this path will never be right for 99.9999% of all users<br><div class="codebox"><p>Code: </p><pre><code>     if {[string match -nocase $arguments ""]} { </code></pre></div>i would personally just use <br><div class="codebox"><p>Code: </p><pre><code>if {[lindex [split $arguments] 0] == ""} {</code></pre></div>seeing as your code would get an error because you don't split $arguments<br><div class="codebox"><p>Code: </p><pre><code>     if {[string match -nocase $arguments ""]} {          putquick "NOTICE $nickname :Quotes.tcl is currently [quotes::check $channel]"      }      if {[string match -nocase $arguments "on"]} {            channel set $channel +quote           putquick "NOTICE $nickname :Done. Quotes are now enabled."           return      }      if {[string match -nocase $arguments "off"]} {            channel set $channel -quote           putquick "NOTICE $nickname :Done. Quotes are now disabled."      }</code></pre></div>It's imo better to use<br><div class="codebox"><p>Code: </p><pre><code>if {[string equal -nocase [lindex [split $arguments] 0] on]} {  channel set $channel +quote  putquick "NOTICE $nickname :Done. Quotes are now enabled."} elseif {[string equal -nocase [lindex [split $arguments] 0] off]} {  channel set $channel -quote  putquick "NOTICE $nickname :Done. Quotes are now enabled."} else {  putquick "NOTICE $nickname :Quotes is currently [expr {[channel get $channel quote] ? "on" : "off"}]"}</code></pre></div>Viewing your code i see alot of if's where you can easily use elseif's.<br>All those if's are not needed and elseif would be a better a choice.<br><br>It's upto you to use what i'm saying, i'm not forcing upon it nor am i saying your a bad scripter. I used to write my scripts the same way <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>Take my advice/suggestions or don't. That's completely upto you <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Tue Jan 31, 2006 4:57 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rt]]></name></author>
		<updated>2006-01-31T04:25:12-04:00</updated>

		<published>2006-01-31T04:25:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59956#p59956</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59956#p59956"/>
		<title type="html"><![CDATA[Quotes.tcl v0.1]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59956#p59956"><![CDATA[
Umm, no one interested?  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6457">rt</a> — Tue Jan 31, 2006 4:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rt]]></name></author>
		<updated>2006-01-28T15:28:22-04:00</updated>

		<published>2006-01-28T15:28:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59840#p59840</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59840#p59840"/>
		<title type="html"><![CDATA[Quotes.tcl v0.1]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59840#p59840"><![CDATA[
<strong class="text-strong">Quotes.tcl - Created by Calum Wood(<a href="mailto:cal@e-frag.net">cal@e-frag.net</a>)</strong><br><br>To-do list:<br>     - A !search command to be able to search for quotes- ie. !search *moo*<br>     - An online interface using xela's web interface to show quotes.<br> <br>Bugs:<br>      - None as of yet.<br><br>If you find one or have a suggestion connect to Quakenet and type /msg mrBot qbug &lt;bug/suggestion&gt;<br><br>Commands:<br>      - !status (to view status) <br>      - !status on/off to change wether the script is active on the channel.<br>      - !add &lt;quote here&gt;<br>      - !del &lt;quote here&gt;<br>      - !rand - brings up a random quote <br>      - !view &lt;quote id&gt; - views the quote.<br><br>I am sure you all reckon that !search would be a good idea - I'm just waiting for a little feedback on v0.1 before I work on anything else.<br><br>Feedback/Comments/Suggestions Appreciated. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile">    <br><br><strong class="text-strong">Download link</strong>: <a href="http://www.djcalleh.net/quotes.tcl" class="postlink">http://www.djcalleh.net/quotes.tcl</a><br><br><strong class="text-strong">YOU <em class="text-italics">MUST</em> HAVE <a href="http://www.djcalleh.net/vars.tcl" class="postlink">http://www.djcalleh.net/vars.tcl</a></strong><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6457">rt</a> — Sat Jan 28, 2006 3:28 pm</p><hr />
]]></content>
	</entry>
	</feed>
