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

	<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-12-11T13:57:43-04:00</updated>

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

		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2007-12-11T13:57:43-04:00</updated>

		<published>2007-12-11T13:57:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79240#p79240</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79240#p79240"/>
		<title type="html"><![CDATA[Two scripts work seperately but not together]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79240#p79240"><![CDATA[
Warez is not supported on this forum.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Tue Dec 11, 2007 1:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[anon]]></name></author>
		<updated>2007-12-09T21:41:11-04:00</updated>

		<published>2007-12-09T21:41:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79176#p79176</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79176#p79176"/>
		<title type="html"><![CDATA[Two scripts work seperately but not together]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79176#p79176"><![CDATA[
<blockquote class="uncited"><div>Maybe try <a href="http://www.tcl.tk/man/tcl8.4/TclCmd/namespace.htm" class="postlink">namespace</a>?</div></blockquote>Creating a namespace around each existing script produced the same results.  <br><br>EDIT: I have simplified it as much as possible and this still won't trigger both.  Only the last one.  Both putlogs are outputted so it is going though all of it.<br><div class="codebox"><p>Code: </p><pre><code>bind pub - !FIX fix::fix_procbind pub - !NEW pre::pre_procnamespace eval fix {namespace export fix_procset _version 0.3proc fix_proc { nick host handle channel text } {putlog "FIX" }putlog "fix v$_version loaded."}namespace eval pre {namespace export pre_procset _version 0.1proc pre_proc { nick host handle channel text } {putlog "PRE"}putlog "pre v$_version loaded."}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9532">anon</a> — Sun Dec 09, 2007 9:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2007-12-09T20:14:38-04:00</updated>

		<published>2007-12-09T20:14:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79172#p79172</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79172#p79172"/>
		<title type="html"><![CDATA[Two scripts work seperately but not together]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79172#p79172"><![CDATA[
Looks like a warez script..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Sun Dec 09, 2007 8:14 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2007-12-09T17:40:29-04:00</updated>

		<published>2007-12-09T17:40:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79164#p79164</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79164#p79164"/>
		<title type="html"><![CDATA[Two scripts work seperately but not together]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79164#p79164"><![CDATA[
Maybe try <a href="http://www.tcl.tk/man/tcl8.4/TclCmd/namespace.htm" class="postlink">namespace</a>?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Sun Dec 09, 2007 5:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[anon]]></name></author>
		<updated>2007-12-09T15:53:08-04:00</updated>

		<published>2007-12-09T15:53:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79160#p79160</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79160#p79160"/>
		<title type="html"><![CDATA[Two scripts work seperately but not together]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79160#p79160"><![CDATA[
I have these two scripts, both work fine when only 1 is loaded.  When both are loaded only the last one loaded works.  Any ideas?<br>pre.tcl<div class="codebox"><p>Code: </p><pre><code>package require mysqltclset db_handle [mysqlconnect -host localhost -user root -password pass -db pre]bind pub - !NEW pre_procset _version 0.2proc insert {section name timestamp} {global db_handleset sql "INSERT INTO releases VALUES (null, '$section', '$name', '$timestamp', null, null, '0', null)"set result [mysqlexec $db_handle $sql]if {$result == 1} {return 1} else {putlog "FAILURE - $sql"return 0}}proc pre_proc { nick host handle channel text } {set section [lindex [split $text] 1]set release [lindex [split $text] 3]set timestamp "[lindex [split $text] 4] "append timestamp [lindex [split $text] 5]putlog "PRE $release"set result [insert $section $release $timestamp]if {$result == 1} {puthelp "PRIVMSG #lfs-pre :PRE in $section :: $release $timestamp"}}putlog "pre.tcl v$_version loaded."</code></pre></div>fix.tcl<div class="codebox"><p>Code: </p><pre><code>package require mysqltclset db_handle [mysqlconnect -host localhost -user root -password pass -db pre]bind pub - !FIX fix_procset _version 0.2proc fix_size {name size files} {global db_handleset sql "UPDATE releases SET size='$size', files='$files' WHERE name='$name'"set result [mysqlexec $db_handle $sql]if {$result == 1} {return 1} else {putlog "SIZE FAILURE - $sql"return 0}}proc fix_proc { nick host handle channel text } {putlog "FIX [lindex [split $text] 1]" set fixtype [lindex [split $text] 0]if {$fixtype == "size"} {fix_size [lindex [split $text] 1] [lindex [split $text] 2] [lindex [split $text] 3]} }putlog "fix.tcl v$_version loaded."</code></pre></div>I have also tried putting them in the same file and that doesn't work either.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9532">anon</a> — Sun Dec 09, 2007 3:53 pm</p><hr />
]]></content>
	</entry>
	</feed>
