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

	<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-01-06T13:09:52-04:00</updated>

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

		<entry>
		<author><name><![CDATA[T-Xorcist]]></name></author>
		<updated>2006-01-06T13:09:52-04:00</updated>

		<published>2006-01-06T13:09:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59144#p59144</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59144#p59144"/>
		<title type="html"><![CDATA[Weird bot problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59144#p59144"><![CDATA[
Great! It works now. Very much appreciated! <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=6980">T-Xorcist</a> — Fri Jan 06, 2006 1:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-01-06T13:01:59-04:00</updated>

		<published>2006-01-06T13:01:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59142#p59142</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59142#p59142"/>
		<title type="html"><![CDATA[Weird bot problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59142#p59142"><![CDATA[
That's because it's not a validchan (doesn't exist in bot's chanfile).<div class="codebox"><p>Code: </p><pre><code>bind msg - join msg:joinbind msg - part msg:partproc msg:join {nick uhost hand arg} { set c [lindex [split $arg] 0] if {[validchan $c]} {  puthelp "notice $nick :$c is already in my chanfile." } {  channel add $c  puthelp "notice $nick :$c has been succesfully added to my chanfile." }}proc msg:part {nick uhost hand arg} { set c [lindex [split $arg] 0] if {[validchan $c]} {  channel remove $c  puthelp "notice $nick :$c has been succesfully removed from my chanfile." } {  puthelp "notice $nick :$c does not exist in my chanfile." }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Fri Jan 06, 2006 1:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[T-Xorcist]]></name></author>
		<updated>2006-01-06T12:47:41-04:00</updated>

		<published>2006-01-06T12:47:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59140#p59140</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59140#p59140"/>
		<title type="html"><![CDATA[Weird bot problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59140#p59140"><![CDATA[
Well, it doesn't work as it supposed to.<br><br>When I type /msg botnick join #channel it doesn't respond at all.<br>But if I use a channel where it is allready in, it gives me response that he is allready in that channel.<br><br>So, if the bot is in the channel, it responds with: I am allready in #channel.<br>But if he is not, he doesn't give me response and doesn't join the channel.<br><br>Exactly the same problem with the parting area. It parts the channel if he is on that channel. But if he is NOT on the channel, it doesn't give me a response. After the else, it is going wrong. I guess he doesn't like the } else { part <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><br><br>For better understanding, here is the whole script:<br><div class="codebox"><p>Code: </p><pre><code>bind msg - join msg:joinbind msg m part msg:partproc msg:join {nick host hand text} {  set chan [lindex [split $text] 0]  if {[botonchan $chan]} {    putquick "NOTICE $nick :I am allready on \002$chan\002"  } else {     putquick "NOTICE $nick :You invited me to join \002$chan\002. Joining..."    channel add $chan  }}proc msg:part {nick host hand text} {  set chan [lindex [split $text] 0]  if {[botonchan $chan]} {    putquick "PRIVMSG $chan :Leaving channel... (Removed by T-Xorcist)"    channel remove $chan  } else {    putquick "NOTICE $nick :I am not on \002$chan\002"  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6980">T-Xorcist</a> — Fri Jan 06, 2006 12:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-01-06T09:13:46-04:00</updated>

		<published>2006-01-06T09:13:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59132#p59132</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59132#p59132"/>
		<title type="html"><![CDATA[Weird bot problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59132#p59132"><![CDATA[
Is that even a problem from the script? What do you mean crashes? any errors?<br><br>Also, I recommend you to split text when setting chan.<div class="codebox"><p>Code: </p><pre><code>set chan [lindex [split $text] 0]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Fri Jan 06, 2006 9:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[T-Xorcist]]></name></author>
		<updated>2006-01-05T23:44:33-04:00</updated>

		<published>2006-01-05T23:44:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59116#p59116</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59116#p59116"/>
		<title type="html"><![CDATA[Weird bot problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59116#p59116"><![CDATA[
Tried it. After I restart the bot, it lissens to me 1 time (parting the channel). After that, it seems it crashes :S<br><br>I really do not get the problem <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cry.gif" width="15" height="15" alt=":cry:" title="Crying or Very sad"><br><br>UPDATE: It doesn't even connect to the IRC server right now... This is a very weird problem I guess... This happened why I tried the } { thing <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6980">T-Xorcist</a> — Thu Jan 05, 2006 11:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-01-05T13:19:31-04:00</updated>

		<published>2006-01-05T13:19:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59086#p59086</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59086#p59086"/>
		<title type="html"><![CDATA[Weird bot problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59086#p59086"><![CDATA[
You got an error after adding that line but didn't bother to show it here. Replace<div class="codebox"><p>Code: </p><pre><code>}else{</code></pre></div>with<div class="codebox"><p>Code: </p><pre><code>} else {</code></pre></div>or just<div class="codebox"><p>Code: </p><pre><code>} {</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Thu Jan 05, 2006 1:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[T-Xorcist]]></name></author>
		<updated>2006-01-05T11:04:56-04:00</updated>

		<published>2006-01-05T11:04:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59073#p59073</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59073#p59073"/>
		<title type="html"><![CDATA[Weird bot problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59073#p59073"><![CDATA[
Hi guys/girls,<br><br>I have the following script:<div class="codebox"><p>Code: </p><pre><code>proc msg:join {nick host hand text} {  set chan [lindex $text 0]  if {[botonchan $chan]} {    putquick "NOTICE $nick :I am allready on \002$chan\002"    return 1  }else{     putquick "PRIVMSG #bots :I have been invited into \002$chan\002 by \002$nick\002"    putquick "NOTICE $nick :You invited me to join \002$chan\002. Joining..."    channel add $chan  }}</code></pre></div>The weird thing is, that it worked 1 time, after that it didn't work anymore.<br>What am I doing wrong? Because when I start the bot, it doesn't give any errors.<br>The problem accured when I added the ... if {[botonchan $chan]} { line ...<br><br>Thanks in advance!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6980">T-Xorcist</a> — Thu Jan 05, 2006 11:04 am</p><hr />
]]></content>
	</entry>
	</feed>
