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

	<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>2008-12-07T09:48:59-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2008-12-07T09:48:59-04:00</updated>

		<published>2008-12-07T09:48:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86113#p86113</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86113#p86113"/>
		<title type="html"><![CDATA[botnet !restart &lt;bot&gt;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86113#p86113"><![CDATA[
Read <a href="http://www.tclscripting.com/articles/jan06/article4.html" class="postlink">The difference between eq and ==</a>.<br><br>So, since you're comparing strings, it's recommended to use "eq" (unless your Tcl version is older than 8.4).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sun Dec 07, 2008 9:48 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[paull]]></name></author>
		<updated>2008-12-07T07:00:19-04:00</updated>

		<published>2008-12-07T07:00:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86110#p86110</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86110#p86110"/>
		<title type="html"><![CDATA[botnet !restart &lt;bot&gt;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86110#p86110"><![CDATA[
Ok, I got it to work, maybe not the right way but it works. I am a noob at coding so if someone else have a better idea, let me know <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> <br><br>(HUB bot is in a private channel, so no one else can use this trigger)<br><br><br>In channel with HUB bot: !restart &lt;botnick&gt;<br><br>Loaded in HUB bot:<br><br><div class="codebox"><p>Code: </p><pre><code>bind pub o|o !restart pub:restartset adminchan "#channel"proc pub:restart { nick uhost hand chan text } { global adminchan   if { $chan == $addminchan } {      if { $text == "" } {         putquick "PRIVMSG $addminchan :Use: !restart &lt;botnick&gt; (Option: ALL)"         return 0      } else {         putallbots "!restartbot $text"         putquick "PRIVMSG $addminchan :Restarting $text..."      }  }}</code></pre></div>Loaded in LEAF bots:<br><div class="codebox"><p>Code: </p><pre><code>bind bot -|- !restartbot restartbotproc restartbot { from command text } {       if { $text == "LEAF1" || $text == "ALL" } {          restart }}</code></pre></div>Btw I dont know when to use:<br><br><div class="codebox"><p>Code: </p><pre><code>    { $text == "LEAF1" }  or     { $text eq "LEAF1" }</code></pre></div>Maybe someone can tell me the difference?<br><br>thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10338">paull</a> — Sun Dec 07, 2008 7:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[paull]]></name></author>
		<updated>2008-12-05T10:56:32-04:00</updated>

		<published>2008-12-05T10:56:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86067#p86067</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86067#p86067"/>
		<title type="html"><![CDATA[botnet !restart &lt;bot&gt;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86067#p86067"><![CDATA[
I am looking for a code to load in the HUB bot in the botnet and will restart a botnick when triggered like !restart &lt;bot&gt; in the HUB channel?<br><br>Is this possible?<br><br>thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10338">paull</a> — Fri Dec 05, 2008 10:56 am</p><hr />
]]></content>
	</entry>
	</feed>
