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

	<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>2005-05-10T19:52:43-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-05-10T19:52:43-04:00</updated>

		<published>2005-05-10T19:52:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49347#p49347</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49347#p49347"/>
		<title type="html"><![CDATA[Strip question]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49347#p49347"><![CDATA[
Visit <a href="http://www.peterre.com/characters.html" class="postlink">http://www.peterre.com/characters.html</a>, this should help you out.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue May 10, 2005 7:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[daltonc]]></name></author>
		<updated>2005-05-10T18:56:32-04:00</updated>

		<published>2005-05-10T18:56:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49345#p49345</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49345#p49345"/>
		<title type="html"><![CDATA[Strip question]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49345#p49345"><![CDATA[
rgr, here ya, this is the part thats setting the custom commands and adding to the database..<br><br><div class="codebox"><p>Code: </p><pre><code>elseif {[string tolower [lindex [split $arg] 0]] == "$chan_trigger($chan)set"} {                if {[isop $nick $chan]} {                        set command_input [string tolower [join [lindex $arg 1 ]]]                        set command_input_value  "[lrange $arg 2 end]"                        putlog "Setting $command_input to $command_input_value for $chan"                        set ${command_input}($chan) $command_input_value                        set result [mysql_query "SELECT command_name FROM bot_commands WHERE command_chan='$chan' &amp;&amp; command_name='$command_input'"]                                if {[info exist result]} {                                        foreach row $result {                                                foreach element $row {                                                     if {$chan_bot(${chan}) == "$botnick"} {                                                        set update_command [mysql_query "UPDATE bot_commands SET command_value='$command_input_value' WHERE command_name='$command_input' &amp;&amp; command_chan='$chan'"]                                                        global $command_input                                                        set ${command_input}($chan) $command_input_value                                                        putlog "Set command value"                                                        rehash                                                        putnotc $nick "Set $command_input to '$command_input($chan)'"                                                    }                                                  }                                                }                                            }</code></pre></div><br>thats just a bit of the code, its a huge proc, but uhh where it goes set ${command_input}($chan) its like not overwritting the variable.. like it should.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6153">daltonc</a> — Tue May 10, 2005 6:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-05-10T17:37:24-04:00</updated>

		<published>2005-05-10T17:37:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49333#p49333</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49333#p49333"/>
		<title type="html"><![CDATA[Strip question]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49333#p49333"><![CDATA[
Can you show us more of your script so we can know what we're doing here.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue May 10, 2005 5:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[daltonc]]></name></author>
		<updated>2005-05-10T14:35:13-04:00</updated>

		<published>2005-05-10T14:35:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49324#p49324</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49324#p49324"/>
		<title type="html"><![CDATA[Strip question]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49324#p49324"><![CDATA[
Thanks, but now on my set command I am tryin to set a variable. Its giving me 'variable commands already exist' <br><br>Its like for some reason it wont overwrite. Any ideas why? <br><br>I have another command called set trigger.. and it overwrites the trigger just fine.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6153">daltonc</a> — Tue May 10, 2005 2:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-05-10T13:12:08-04:00</updated>

		<published>2005-05-10T13:12:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49318#p49318</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49318#p49318"/>
		<title type="html"><![CDATA[Strip question]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49318#p49318"><![CDATA[
try<div class="codebox"><p>Code: </p><pre><code>[join [lrange [array get [string range $arg 1 end] $chan] 1 end]]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue May 10, 2005 1:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[daltonc]]></name></author>
		<updated>2005-05-10T12:53:34-04:00</updated>

		<published>2005-05-10T12:53:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49317#p49317</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49317#p49317"/>
		<title type="html"><![CDATA[Strip question]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49317#p49317"><![CDATA[
Ok, I am inserting data into my database as a value for a variable and when my bot loads up it sets the value to that variable. Anyways, if there is more than 1 word as the value it outputs it like this {command1 command2} <br><br>so If I type <br><br>@set commands command1 <br>and then type @commands it says<br>command1<br><br>but if I type @set commands command1 command2 <br>and then type @commands it says<br>{command1 command2} <br><br><br>When I look in the database there is no { or } <br>but its in the output where it has { and } <br><br>This is my line that ouputs the data.. <br><br>putserv "notice $nick :[lrange [array get [string range $arg 1 end] $chan] 1 end]"<br><br>Any ideas?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6153">daltonc</a> — Tue May 10, 2005 12:53 pm</p><hr />
]]></content>
	</entry>
	</feed>
