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

	<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-01-31T07:36:29-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2005-01-31T07:36:29-04:00</updated>

		<published>2005-01-31T07:36:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46009#p46009</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46009#p46009"/>
		<title type="html"><![CDATA[Searching for a script with !set &lt;variable&gt;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46009#p46009"><![CDATA[
never mind didn't see MeTroiD script..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Mon Jan 31, 2005 7:36 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2005-01-31T07:30:24-04:00</updated>

		<published>2005-01-31T07:30:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46007#p46007</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46007#p46007"/>
		<title type="html"><![CDATA[Searching for a script with !set &lt;variable&gt;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46007#p46007"><![CDATA[
using set is a bad idea from pub .. but <br><br>if you make it at least don't for get to remove certain chars to avoid execution<br><div class="codebox"><p>Code: </p><pre><code>proc set_pub proc {nick host hand chan arg} {  set arg [string map {\\ \\\\ \" \\\" \[ \\\[ \] \\\] \{ \\\{ \} \\\} \( \\\( \) \\\)} $arg]  set  [lindex $arg 0] [join [lrange $arg 1 end]]  putserv "PRIVMSG $chan :SET --&gt; [lindex $arg 0] --&gt; [join [lrange $arg 1 end]]}bind pub n !set set_pub</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Mon Jan 31, 2005 7:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-01-30T22:28:28-04:00</updated>

		<published>2005-01-30T22:28:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45992#p45992</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45992#p45992"/>
		<title type="html"><![CDATA[Searching for a script with !set &lt;variable&gt;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45992#p45992"><![CDATA[
<blockquote class="uncited"><div>awyeah : .set &lt;variable&gt; &lt;value&gt; <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"></div></blockquote>Oh crap, thats right, lol. Should be:<br><div class="codebox"><p>Code: </p><pre><code>set [lindex $text 0] "[lindex $text 1]"</code></pre></div>My one would set a variable of "mycommand" which you could replace by editing the script. But with this sort of command you can make as many as variables as you like.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sun Jan 30, 2005 10:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-01-29T17:29:33-04:00</updated>

		<published>2005-01-29T17:29:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45950#p45950</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45950#p45950"/>
		<title type="html"><![CDATA[Searching for a script with !set &lt;variable&gt;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45950#p45950"><![CDATA[
True, splitting should do it  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> <div class="codebox"><p>Code: </p><pre><code>proc bot:command {nick uhost hand chan text} { global mycommand myothercommand if {[string equal -nocase "mycommand" [lindex [split $text] 0]]} { set mycommand "[lindex [split $text] 1]" } elseif {[string equal -nocase "myothercommand" [lindex [split $text] 0]]} { set myothercommand "[lindex [split $text] 1]"  } }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sat Jan 29, 2005 5:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2005-01-29T15:55:13-04:00</updated>

		<published>2005-01-29T15:55:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45943#p45943</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45943#p45943"/>
		<title type="html"><![CDATA[Searching for a script with !set &lt;variable&gt;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45943#p45943"><![CDATA[
Maybe you should read MY post<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Sat Jan 29, 2005 3:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-01-29T15:51:23-04:00</updated>

		<published>2005-01-29T15:51:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45941#p45941</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45941#p45941"/>
		<title type="html"><![CDATA[Searching for a script with !set &lt;variable&gt;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45941#p45941"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>proc bot:command {nick uhost hand chan text} { global mycommand global myothercommand if {[string equal -nocase "mycommand" [lindex $text 0]]} { set mycommand "[lindex $text 1]" } elseif {[string equal -nocase "myothercommand" [lindex $text 0]]} { set myothercommand "[lindex $text 1]" } }</code></pre></div>It has been a long time since I last wrote anything in TCL, but just wondering wouldn't the bot die if someone used !bot mycommand [die] ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sat Jan 29, 2005 3:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Longbow]]></name></author>
		<updated>2005-01-29T15:20:39-04:00</updated>

		<published>2005-01-29T15:20:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45940#p45940</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45940#p45940"/>
		<title type="html"><![CDATA[Searching for a script with !set &lt;variable&gt;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45940#p45940"><![CDATA[
Thanks, but how would I add multiple entries...<br><br>bind pub - !bot bot:command<br><br>proc bot:command {nick uhost hand chan text} {<br> global mycommand<br> global myothercommand<br>  if {[string equal -nocase "mycommand" [lindex $text 0]]} {<br>   set mycommand "[lindex $text 1]"<br>   } else { <br>[string equal -nocase "myothercommand" [lindex $text 0]]} {<br>set myothercommand "[lindex $text 1]"<br>}<br>}<br><br> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5887">Longbow</a> — Sat Jan 29, 2005 3:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2005-01-29T11:24:20-04:00</updated>

		<published>2005-01-29T11:24:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45935#p45935</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45935#p45935"/>
		<title type="html"><![CDATA[Searching for a script with !set &lt;variable&gt;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45935#p45935"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pub n !set command:setproc command:set { n u h c t } {set var [lindex [split $t] 0]set mode [lindex [split $t] 1]set $var $mode}</code></pre></div>?<br><br>Just a simple thing as i have a headache and i don't feel like coding at all <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> — Sat Jan 29, 2005 11:24 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2005-01-29T03:50:48-04:00</updated>

		<published>2005-01-29T03:50:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45926#p45926</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45926#p45926"/>
		<title type="html"><![CDATA[Searching for a script with !set &lt;variable&gt;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45926#p45926"><![CDATA[
awyeah : .set &lt;variable&gt; &lt;value&gt; <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=187">caesar</a> — Sat Jan 29, 2005 3:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-01-29T01:29:53-04:00</updated>

		<published>2005-01-29T01:29:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45923#p45923</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45923#p45923"/>
		<title type="html"><![CDATA[Searching for a script with !set &lt;variable&gt;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45923#p45923"><![CDATA[
There is already a command for that, but through DCC.<br><div class="codebox"><p>Code: </p><pre><code>.tcl set &lt;variable &lt;value&gt;</code></pre></div>For your example:<br><blockquote class="uncited"><div>!set command off </div></blockquote><div class="codebox"><p>Code: </p><pre><code>bind pub - !set set:commandproc set:command {nick uhost hand chan text} { global mycommand  if {[string equal -nocase "mycommand" [lindex $text 0]]} {   set mycommand "[lindex $text 1]"   }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sat Jan 29, 2005 1:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Longbow]]></name></author>
		<updated>2005-01-28T18:20:51-04:00</updated>

		<published>2005-01-28T18:20:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45918#p45918</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45918#p45918"/>
		<title type="html"><![CDATA[Searching for a script with !set &lt;variable&gt;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45918#p45918"><![CDATA[
I'm looking for a script where you can set variables via bind pub.<br><br>Search as..<br><br>!set command off<br><br>If you know of any that contain this type of thing, post them here please.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5887">Longbow</a> — Fri Jan 28, 2005 6:20 pm</p><hr />
]]></content>
	</entry>
	</feed>
