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

	<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>2003-12-10T15:51:41-04:00</updated>

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

		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-12-10T15:51:41-04:00</updated>

		<published>2003-12-10T15:51:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31273#p31273</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31273#p31273"/>
		<title type="html"><![CDATA[botonchan and channel add problems]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31273#p31273"><![CDATA[
<blockquote class="uncited"><div>The bot is always trying to get on the damned channels but never quite succeed. %@!&amp;</div></blockquote>when/how is pub:op:test called?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Wed Dec 10, 2003 3:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-12-10T04:09:47-04:00</updated>

		<published>2003-12-10T04:09:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31262#p31262</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31262#p31262"/>
		<title type="html"><![CDATA[botonchan and channel add problems]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31262#p31262"><![CDATA[
The resetchan is just one of the things, I tried to get the botonchan working.<br>As I understood it, I won't need it. <br><br>The main Problem, as fare as I can see, is that the bot is always trying to get on the channel, but never quite succeed. By the way sometimes it seems to work. I got a positive answer once in a while. But mostly only after I restarted the bot. <br><br>Hmm - as I think of it, may there be a problem, if I rehash the bot, that he looses his channel information?<br><br>But I will test the whole thing without the resetchan again.<br><br>EDIT:<br>I tried it without the resetchan - it worked once (after rehash) - but then never again - not even after restart or a resetchan in another proc.<br><br>The bot is always trying to get on the damned channels but never quite succeed. %@!&amp;<p>Statistics: Posted by Guest — Wed Dec 10, 2003 4:09 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-12-09T17:28:21-04:00</updated>

		<published>2003-12-09T17:28:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31250#p31250</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31250#p31250"/>
		<title type="html"><![CDATA[botonchan and channel add problems]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31250#p31250"><![CDATA[
resetchan makes eggdrop just forget the old channel data and do a 'WHO #chan' to refresh its memory <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><blockquote class="uncited"><div>&lt;user&gt; .tcl putlog "Before: [onchan user #tcl]"; resetchan #tcl; putlog "After: [onchan user #tcl]"<br>&lt;tclsh&gt; Before: 1<br>&lt;tclsh&gt; After: 0</div></blockquote>The WHO message is not sent (and no answer would be recieved and parsed if it were) untill the proc returns, so you'll have to return and wait for the "END OF WHO" message from the server if you insist on calling resetchan <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=2878">user</a> — Tue Dec 09, 2003 5:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-12-09T06:46:01-04:00</updated>

		<published>2003-12-09T06:46:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31229#p31229</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31229#p31229"/>
		<title type="html"><![CDATA[botonchan and channel add problems]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31229#p31229"><![CDATA[
Hi<br><br>I've some Problem getting the testpart of my script working.<br>(I know the script isn't very nice and all - I'm just testing, before getting it all together and cleaning)<br><br>The problem is, botonchan always gives false though the bot is definitly on the chan and has op (set by chanserv - the bot is registered by NickServ)<br><br>my joining of channels:<div class="codebox"><p>Code: </p><pre><code>             ...                                                                       puthelp "PRIVMSG $channel :Ich geh nach $text"  channel add $text  ...</code></pre></div>(started by a bind)<br><br>and after that i'm testing, if he's on:<div class="codebox"><p>Code: </p><pre><code>proc pub:op:test { nick user hand chan arg } {  global channel botnick                                                                                  set dchan [channame2dname $chan]  resetchan "$chan"                                                                                  if {![hlp:user $nick]} {     puthelp "PRIVMSG $chan :Leider kenn ich dich nicht !"     return 1  }                                                                                  if { [onchan $botnick $chan] } {    puthelp "PRIVMSG $chan : hm hm - so scheints zu gehen !"  } else {    puthelp "PRIVMSG $chan : wenigstens geht garnichts !"  }  if { [botonchan [string tolower $dchan]] } {    puthelp "PRIVMSG $chan : ich bin da !"  } else {    puthelp "PRIVMSG $chan : Haehm - hier ist definitv was nicht richtig ! ($chan - $dchan)"  }...</code></pre></div>the command always  goes to the second branch<br><br>with dcc .status i get:<div class="codebox"><p>Code: </p><pre><code>Tcl library: /usr/lib/tcl8.3Tcl version: 8.3.3 (header version 8.3.3)   Channels: #Drizzit (trying), #cb-tempel (trying)    Online as: Woelfchen!~eggdrop@eu-irc-19999F9C.dip.t-dialin.net (/msg Woelfchen hello)    Server irc.swissirc.net:6667 (connected for 01:18)    #Drizzit  : (pending), enforcing "+ltn 5"  (greet, bitch)    #cb-tempel: (pending), enforcing "+tn"  (greet)</code></pre></div>in the temp *.chan file the status of both chans is -inactive<br><br>I think the problem lies somewhere in the (trying) but I can't figure out how to solve it, or where I'm wrong<br><br>Please help !! - I'm stuck !<p>Statistics: Posted by Guest — Tue Dec 09, 2003 6:46 am</p><hr />
]]></content>
	</entry>
	</feed>
