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

	<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>2004-08-12T07:37:12-04:00</updated>

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

		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-08-12T07:37:12-04:00</updated>

		<published>2004-08-12T07:37:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39703#p39703</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39703#p39703"/>
		<title type="html"><![CDATA[Re: Quoteengine !quote modification]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39703#p39703"><![CDATA[
<blockquote class="uncited"><div>Im using the QuoteEngine version $quote_version</div></blockquote>can't read "quote_version": no such variable<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Thu Aug 12, 2004 7:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2004-08-12T04:54:35-04:00</updated>

		<published>2004-08-12T04:54:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39702#p39702</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39702#p39702"/>
		<title type="html"><![CDATA[Quoteengine !quote modification]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39702#p39702"><![CDATA[
ask the author...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Thu Aug 12, 2004 4:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[jamitupya]]></name></author>
		<updated>2004-08-11T23:45:05-04:00</updated>

		<published>2004-08-11T23:45:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39701#p39701</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39701#p39701"/>
		<title type="html"><![CDATA[Quoteengine !quote modification]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39701#p39701"><![CDATA[
Hey hey,<br>Im using the QuoteEngine version $quote_version by JamesOff (<a href="http://www.jamesoff.net/go/quoteengine" class="postlink">http://www.jamesoff.net/go/quoteengine</a>)"   <br>and i was wondering if its possible to modify the quote_rand function to not just do a random quote but be able to specify a quote number..<br><br>Find of like a hybrid quote_rand and quote_fetch<br><br>so that yo could do a !quote and get a random quote or alt. do a !quote &lt;no.&gt; and get that quote number ?<br><br>proc quote_rand { nick host handle channel text } {<br>  global db_handle quote_noflags<br><br>  if {![channel get $channel quoteengine]} {<br>    return 0<br>  }<br><br>  if [matchattr $handle $quote_noflags] { return 0 }<br><br>  set where_clause "WHERE channel='$channel'"<br>  if [regexp -- "--?all" $text] {<br>    set where_clause ""<br>  }<br><br>  if [regexp -- "--?c(hannel)?( |=)(.+)" $text matches skip1 skip2 newchan] {<br>    set where_clause "WHERE channel='[mysqlescape $newchan]'"<br>  }<br><br>  set sql "SELECT * FROM quote_text $where_clause ORDER BY RAND() LIMIT 1"<br>  putloglev d * "QuoteEngine: executing $sql"<br><br>  set result [mysqlquery $db_handle $sql]<br><br>  if {[set row [mysqlnext $result]] != ""} {<br>    set id [lindex $row 0]<br>    set quote [lindex $row 3]<br>    set by [lindex $row 1]<br>    set when [clock format [lindex $row 5] -format "%Y/%m/%d %H:%M"]<br><br>    puthelp "PRIVMSG $channel :\[\002$id\002\] $quote"<br>  } else {<br>    puthelp "PRIVMSG $channel :Couldn't find a quote <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad">"<br>  }<br>  mysqlendquery $result<br>}<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5169">jamitupya</a> — Wed Aug 11, 2004 11:45 pm</p><hr />
]]></content>
	</entry>
	</feed>
