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

	<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-07-17T15:45:33-04:00</updated>

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

		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-07-17T15:45:33-04:00</updated>

		<published>2005-07-17T15:45:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=52717#p52717</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=52717#p52717"/>
		<title type="html"><![CDATA[Spurious partyline response]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=52717#p52717"><![CDATA[
<blockquote class="uncited"><div>Thanks demond. I understand. I'm assuming that deliberately ending a proc with the statement 'return 0' will do the trick</div></blockquote>exactly<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sun Jul 17, 2005 3:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arfer]]></name></author>
		<updated>2005-07-17T15:26:40-04:00</updated>

		<published>2005-07-17T15:26:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=52715#p52715</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=52715#p52715"/>
		<title type="html"><![CDATA[Spurious partyline response]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=52715#p52715"><![CDATA[
Thanks demond. I understand. I'm assuming that deliberately ending a proc with the statement 'return 0' will do the trick<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5705">arfer</a> — Sun Jul 17, 2005 3:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-07-17T15:05:45-04:00</updated>

		<published>2005-07-17T15:05:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=52711#p52711</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=52711#p52711"/>
		<title type="html"><![CDATA[Spurious partyline response]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=52711#p52711"><![CDATA[
that "spurious" line is actually a log message from the [bind pub] proc<br><br>a PUB bind logs the public command that has triggered it if the handler proc returns 1 (or rather non-zero) - and in the first case your proc implicitly returns non-zero, because the last operation is [set] with a positive number<br><br>in the second case, you moved that [set] and your proc no longer returns implicitly non-zero - in the absence of last operation that implicitly changes the return value, zero is returned by default and the public command doesn't get logged<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sun Jul 17, 2005 3:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[YooHoo]]></name></author>
		<updated>2005-07-17T14:49:37-04:00</updated>

		<published>2005-07-17T14:49:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=52707#p52707</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=52707#p52707"/>
		<title type="html"><![CDATA[Re: Spurious partyline response]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=52707#p52707"><![CDATA[
<blockquote class="uncited"><div> However the following line is seen in the bot's partyline :-<br><br>&lt;&lt;arfer&gt;&gt; !arfer! .test<br>...<br>Has anybody any idea as to what is causing this?</div></blockquote>your console settings.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2706">YooHoo</a> — Sun Jul 17, 2005 2:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arfer]]></name></author>
		<updated>2005-07-17T14:39:05-04:00</updated>

		<published>2005-07-17T14:39:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=52703#p52703</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=52703#p52703"/>
		<title type="html"><![CDATA[Spurious partyline response]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=52703#p52703"><![CDATA[
I have an oddity with one of my own scripts. An oddity because, whilst there are no errors, there is a spurious message in the partyline upon activating a public command trigger. I have set up the following otherwise meaningless script to demonstrate.<br><br>set playing 0<br><br>bind PUB -|- .test pTestProc<br><br>proc pTestProc {nick uhost hand chan arg} {<br>  global playing<br>  if {$playing == 0} {<br>    putserv "PRIVMSG $chan :$playing"<br>  }<br>  set varDummy 10<br>}<br><br>After typing .test in an irc channel using my usual nick of 'arfer', the script duly responds with 0 in the same channel. However the following line is seen in the bot's partyline :-<br><br>&lt;&lt;arfer&gt;&gt; !arfer! .test<br><br>If I change the script slightly (in fact order the lines a little differently) as below, the script functions in precisely the same manner but there is no spurious partyline message.<br><br>set playing 0<br><br>bind PUB -|- .test pTestProc<br><br>proc pTestProc {nick uhost hand chan arg} {<br>  global playing<br>  set varDummy 10<br>  if {$playing == 0} {<br>    putserv "PRIVMSG $chan :$playing"<br>  }<br>}<br><br>Has anybody any idea as to what is causing this?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5705">arfer</a> — Sun Jul 17, 2005 2:39 pm</p><hr />
]]></content>
	</entry>
	</feed>
