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

	<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>2009-12-30T04:00:41-04:00</updated>

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

		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2009-12-30T04:00:41-04:00</updated>

		<published>2009-12-30T04:00:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91495#p91495</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91495#p91495"/>
		<title type="html"><![CDATA[How to write own lines in logfile ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91495#p91495"><![CDATA[
I'd finally found my error (yes, a CKI one): I did rehash to try my changes, but it seems that the eggdrop needs a restart.<br>Now, it works well and I can log what I need.<br><br>@speechles: I've also modified the return 1 to return 0, I don't know if it's really important but it works <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=691">CrazyCat</a> — Wed Dec 30, 2009 4:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2009-12-29T19:26:11-04:00</updated>

		<published>2009-12-29T19:26:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91488#p91488</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91488#p91488"/>
		<title type="html"><![CDATA[How to write own lines in logfile ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91488#p91488"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>return 1</code></pre></div><a href="http://www.eggheads.org/support/egghtml/1.6.19/tcl-commands.html#bindb" class="postlink">http://www.eggheads.org/support/egghtml ... html#bindb</a><br><br>The problem is whatever is calling your "putlog" procedure is invoked by a bind. This isn't a problem, except when you aren't returning something to tcl. As instead, the return value will be the one returned from your "putlog" procedure as I assume it's at then very end of your pubm/msgm procedure, the last command before the procedure ends. For most wildcard binds, those that can use a * within them, a return value of 1 signifies do-not-log/take-no-further-action. You will need to investigate every "return" within your script especially those invoked through binds. Use the url above to check what return values signify to each bind.<br><br>Notice how pub and msg use a return of 1 to log. Whilst pubm and msgm do this when returned a 0. It's likely pubm/msgm bindings are your suspect.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Tue Dec 29, 2009 7:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2009-12-29T19:13:08-04:00</updated>

		<published>2009-12-29T19:13:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91487#p91487</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91487#p91487"/>
		<title type="html"><![CDATA[How to write own lines in logfile ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91487#p91487"><![CDATA[
Sorry for the late reply.<br><br>To my best knowledge, using the putloglev command should not interfere with writing log files, as it never actually touches the files but merely add the message to the list of log entries to be written/displayed.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Tue Dec 29, 2009 7:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2009-12-29T06:31:43-04:00</updated>

		<published>2009-12-29T06:31:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91474#p91474</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91474#p91474"/>
		<title type="html"><![CDATA[How to write own lines in logfile ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91474#p91474"><![CDATA[
Hello, and sorry to up this thread, but I can't understand the trouble:<br><br>I've add a small procedure to do my puloglev:<div class="codebox"><p>Code: </p><pre><code>proc cr:log { lev chan line } {putloglev $lev "$chan" "$line"putlog "$line saved"return 1}</code></pre></div>This procedure is called at the end of others, and I can see the putlog in party-line, but nothing is added in the logfile, neither the "normal logged things", neither what I want to add in my logfile.<br><br>Does the putloglev modify the output destination ? Or am I wrong somewhere ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Tue Dec 29, 2009 6:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2009-11-18T06:02:03-04:00</updated>

		<published>2009-11-18T06:02:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=90954#p90954</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=90954#p90954"/>
		<title type="html"><![CDATA[How to write own lines in logfile ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=90954#p90954"><![CDATA[
Oh, really strange bug with my script.<br><br>My eggdrop was well loging the channel, and I've added in one of my scripts:<div class="codebox"><p>Code: </p><pre><code>putloglev p "$chan" "&lt;$user&gt; $text"</code></pre></div>And now, my eggdrop doesn't log anything, neither channel activity nor the script activity.<br><br>Before I changed the script, I've tried in party-line and it didn't make any trouble:<blockquote class="uncited"><div>.tcl putloglev p "#test" "&lt;CrazyCat&gt; I'm testing"</div></blockquote><blockquote class="uncited"><div>&lt;CrazyCat&gt; I'm testing too</div></blockquote><blockquote class="uncited"><div>[10:04] &lt;CrazyCat&gt; I'm testing<br>[10:05]&lt;CrazyCat&gt; I'm testing too</div></blockquote>And since I've rehash the eggdrop with the modified tcl, no more entries in my log file.<br><br>Any idea ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Wed Nov 18, 2009 6:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2009-11-18T03:30:42-04:00</updated>

		<published>2009-11-18T03:30:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=90953#p90953</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=90953#p90953"/>
		<title type="html"><![CDATA[How to write own lines in logfile ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=90953#p90953"><![CDATA[
Oh yes, thanks a lot.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Wed Nov 18, 2009 3:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2009-11-17T19:44:22-04:00</updated>

		<published>2009-11-17T19:44:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=90951#p90951</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=90951#p90951"/>
		<title type="html"><![CDATA[How to write own lines in logfile ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=90951#p90951"><![CDATA[
Have a look at the putloglev tcl command.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Tue Nov 17, 2009 7:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2009-11-17T18:32:39-04:00</updated>

		<published>2009-11-17T18:32:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=90949#p90949</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=90949#p90949"/>
		<title type="html"><![CDATA[How to write own lines in logfile ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=90949#p90949"><![CDATA[
Hello there,<br><br>I'm looking for a way to write, via tcl, lines in the channel log file. My bot receive datas from another one and I want to keep them in my logfile, from a procedure.<br><br>I can't use a log flag because I've to treat lines before store them, so any idea ?<br><br>Cheers<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Tue Nov 17, 2009 6:32 pm</p><hr />
]]></content>
	</entry>
	</feed>
