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

	<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-04-18T11:50:52-04:00</updated>

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

		<entry>
		<author><name><![CDATA[stoo]]></name></author>
		<updated>2004-04-18T11:50:52-04:00</updated>

		<published>2004-04-18T11:50:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35683#p35683</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35683#p35683"/>
		<title type="html"><![CDATA[adding to list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35683#p35683"><![CDATA[
what i want to do is allow anyone in the channel to do the following<br><br>!merc &lt;info&gt;<br><br>anything that is in the info part, i need saved and added to a database.<br><br>every minuite i need the database to be displayed to the channel.<br><br>after 5 mins i want the fist line to be removed and the second line to become the first line and so on...<br><br>this is what i have so far, but its not working...<br><div class="codebox"><p>Code: </p><pre><code>bind pub -|- !merc merc:mercset channel "#stoobar"set time 15set merclist ""set merctext  "$merclist"set used 1if {[string compare [string index $time 0] "!"] == 0} { set timer [string range $time 1 end] } { set timer [expr $time * 1] }if {[lsearch -glob [utimers] "* go *"] == -1} { utimer $timer go }proc merc:merc {nick host handle chan text} { global used merclist merctextincr usedset list [split $text] set info1 [lindex $list 0] set info2 [lindex $list 1] set info3 [lindex $list 2]set info3 [lindex $list 3]set info4 [lindex $list 4]set info5 [lindex $list 5]set info6 [lindex $list 6]set info7 [lindex $list 7]set info8 [lindex $list 8]set info9 [lindex $list 9]set info10 [lindex $list 10]set mercinfo($used) "$info1 $info2 $info3 $info4 $info5 $info6 $info7 $info8 $info9 $info10"set mercinfo($nick) $usedappend $merclist mercinfo($used)putquick "NOTICE $nick : You have been added $used"putquick "NOTICE $nick : $mercinfo($used)"return 1}proc go {} {global channel time merctext timer merclistforeach chan $channel {foreach line $merclist { putserv "PRIVMSG $chan :$line" }}if {[lsearch -glob [utimers] "* go *"] == -1} { utimer $timer go }}</code></pre></div>any help would be greatly appreciated<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4497">stoo</a> — Sun Apr 18, 2004 11:50 am</p><hr />
]]></content>
	</entry>
	</feed>
