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

	<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>2006-05-01T14:09:13-04:00</updated>

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

		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2006-05-01T14:09:13-04:00</updated>

		<published>2006-05-01T14:09:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62538#p62538</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62538#p62538"/>
		<title type="html"><![CDATA[Problem with IF]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62538#p62538"><![CDATA[
which is equivalent with the code snip I posted, just with some redudant code within the if expressions.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Mon May 01, 2006 2:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[darton]]></name></author>
		<updated>2006-05-01T11:59:07-04:00</updated>

		<published>2006-05-01T11:59:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62532#p62532</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62532#p62532"/>
		<title type="html"><![CDATA[Problem with IF]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62532#p62532"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pub - !gi pub:giproc pub:gi {nick uhost hand chan arg} {global admin_chan public_chan  if {![onchan BRenBot $admin_chan]} {        putquick "privmsg $chan :The Servers are down!"}  if {[onchan BRenBot $admin_chan]} {  if {[string equal -nocase $public_chan $chan]} {   putquick "privmsg $admin_chan :!gi"  } }}</code></pre></div>With this script it works.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7270">darton</a> — Mon May 01, 2006 11:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2006-05-01T11:39:07-04:00</updated>

		<published>2006-05-01T11:39:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62531#p62531</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62531#p62531"/>
		<title type="html"><![CDATA[Problem with IF]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62531#p62531"><![CDATA[
<blockquote class="uncited"><div>If the BRenBot is not in that channel, my bot says:"The Servers are down." But it still writes "!gi" in the #admin_chan.<br>How is it possible that my bot stops writing "!gi" if the BRenBot is not in the #admin_chan? </div></blockquote><blockquote class="uncited"><div>No, I already tried this. If the BRenBot was in the #admin_chan, my bot would not write "!gi" in the #admin_chan.</div></blockquote>you wrote the opposite in your description. You might want to check spelling (case doesnt matter) of channel and nick. Consider encoding issues of characters above 127. You can also try using 'hand2nick' to also match alternate nicknames, if there is a user entry for the bot.<br><blockquote class="uncited"><div>So your script does not work.</div></blockquote>Assuming your script worked as descripted, my changed if construuction should stop your initialy described problem.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Mon May 01, 2006 11:39 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[darton]]></name></author>
		<updated>2006-05-01T07:32:38-04:00</updated>

		<published>2006-05-01T07:32:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62529#p62529</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62529#p62529"/>
		<title type="html"><![CDATA[Problem with IF]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62529#p62529"><![CDATA[
No, I already tried this. If the BRenBot was in the #admin_chan, my bot would not write "!gi" in the #admin_chan. So your script does not work.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7270">darton</a> — Mon May 01, 2006 7:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2006-05-01T06:32:31-04:00</updated>

		<published>2006-05-01T06:32:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62528#p62528</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62528#p62528"/>
		<title type="html"><![CDATA[Problem with IF]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62528#p62528"><![CDATA[
because the next if is independend from first one. you should use ELSEIF like<div class="codebox"><p>Code: </p><pre><code>  if {![onchan BRenBot $admin_chan]} {         puthelp "PRIVMSG $chan :The Servers are down!"  } elseif {[string equal -nocase $public_chan $chan]} {    putserv "PRIVMSG $admin_chan :!gi"  }</code></pre></div>to make the 2nd one depend on the previous one.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Mon May 01, 2006 6:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[darton]]></name></author>
		<updated>2006-05-01T06:02:24-04:00</updated>

		<published>2006-05-01T06:02:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62526#p62526</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62526#p62526"/>
		<title type="html"><![CDATA[Problem with IF]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62526#p62526"><![CDATA[
Hello!<br>Look at this script. If the BRenBot is not in that channel, my bot says:"The Servers are down." But it still writes "!gi" in the #admin_chan.<br>How is it possible that my bot stops writing "!gi" if the BRenBot is not in the #admin_chan? <div class="codebox"><p>Code: </p><pre><code>bind pub - !gi pub:giproc pub:gi {nick uhost hand chan arg} {global admin_chan public_chan  if {![onchan BRenBot $admin_chan]} {        putquick "privmsg $chan :The Servers are down!"}  if {[string equal -nocase $public_chan $chan]} {   putquick "privmsg $admin_chan :!gi" }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7270">darton</a> — Mon May 01, 2006 6:02 am</p><hr />
]]></content>
	</entry>
	</feed>
