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

	<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>2011-08-13T20:30:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[^DooM^]]></name></author>
		<updated>2011-01-22T21:23:47-04:00</updated>

		<published>2011-01-22T21:23:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95778#p95778</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95778#p95778"/>
		<title type="html"><![CDATA[Log all bot messages (patch)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95778#p95778"><![CDATA[
Thommey,<br><br>Thanks for the script to allow the bot to log itself, still works well on latest build.<br><br>Cheers!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3723">^DooM^</a> — Sat Jan 22, 2011 9:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[thommey]]></name></author>
		<updated>2011-08-13T20:30:00-04:00</updated>

		<published>2009-06-12T20:12:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89174#p89174</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89174#p89174"/>
		<title type="html"><![CDATA[Log all bot messages (patch)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89174#p89174"><![CDATA[
I don't see a chance for this making it into the eggdrop core. It is way more difficult to do this correctly. Imagine a channel mode +c which blocks messages with colors/control codes (as seen on QuakeNet). There is no guarantee the message actually reaches the channel. The bot might also be banned or muted and it would still log its own message.<br><br>To do this in a for-all-networks compatible way, with respect to blocked messages, one would need to maintain a list of negative replies to a PRIVMSG which indicate that delivery failed. And it'd be quite a mess to always remember the last message to which such an error token would refer. Unfortunately, there are no positive replies for PRIVMSGs in the IRC protocol.<br><br>Eggdrop1.6.20+ has "bind out" which will trigger when a message is sent to the server. This offers the possibility to make a tcl script which watches and putloglevs PRIVMSGs.<br><br><a href="http://thommey.tclhelp.net/dl/dl.htcl?id=5" class="postlink">Backwards compatible script that logs eggdrop's own messages using bind out if available</a><br><br>Edit: Fixed a typo and added trace script<br><br>Update 2011-08: Changed link to a script that makes use of <em class="text-italics">bind out</em> to also catch modules and internal messages not sent from scripts. Eggdrop1.6.20 has bind out now.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9830">thommey</a> — Fri Jun 12, 2009 8:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[FallFromGrace]]></name></author>
		<updated>2008-08-21T13:09:36-04:00</updated>

		<published>2008-08-21T13:09:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84741#p84741</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84741#p84741"/>
		<title type="html"><![CDATA[Log all bot messages (patch)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84741#p84741"><![CDATA[
patch command doesnt work =\<br><br>can anyone upload patched 'cmdsirc.c' file (version 1.6.19)?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10083">FallFromGrace</a> — Thu Aug 21, 2008 1:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2008-03-09T15:52:06-04:00</updated>

		<published>2008-03-09T15:52:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81567#p81567</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81567#p81567"/>
		<title type="html"><![CDATA[Log all bot messages (patch)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81567#p81567"><![CDATA[
You'd have to send this request to the eggheads devteam. See <a href="http://www.eggheads.org" class="postlink">http://www.eggheads.org</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sun Mar 09, 2008 3:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dungeon]]></name></author>
		<updated>2008-03-09T07:26:13-04:00</updated>

		<published>2008-03-09T07:26:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81557#p81557</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81557#p81557"/>
		<title type="html"><![CDATA[Log all bot messages (patch)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81557#p81557"><![CDATA[
Is there any chance that this patch (or one that logs bot responses also) could be included into the main source? <br><br>I don't want to accuse it of being a bug, but the config file *does* say that the "p" option logs all public chat - which implies that output from bot SAY/ACT is not considered public (or perhaps a note in the config file to warn that text from bot is excluded).<br><br>I'm guessing that a setting in the config file could elect to flick on/off logging bot natter in the event that people still want the original behaviour. How about "p = all public (non-bot)" and "P = public (including bot)"...?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7579">dungeon</a> — Sun Mar 09, 2008 7:26 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sparc317]]></name></author>
		<updated>2008-01-30T16:20:06-04:00</updated>

		<published>2008-01-30T16:20:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=80481#p80481</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=80481#p80481"/>
		<title type="html"><![CDATA[Log all bot messages (patch)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=80481#p80481"><![CDATA[
<blockquote class="uncited"><div>The closest thing you can get to this, is activating "raw logging", which enables two new logflags, one for outbound server traffic (v), and one for inbound server traffic (r). See the "raw-log" setting in your eggdrop-configfile for further info.</div></blockquote>Thanks, I'll check this out.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9653">sparc317</a> — Wed Jan 30, 2008 4:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2008-01-30T14:01:20-04:00</updated>

		<published>2008-01-30T14:01:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=80473#p80473</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=80473#p80473"/>
		<title type="html"><![CDATA[Log all bot messages (patch)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=80473#p80473"><![CDATA[
The big problem with logging outbound messages is that there is no hooks for adding messages to any of the queue's, neither is there one upon de-queueing (sending) any of the messages in the queue. Also, if these were available, you would still have to match the command to see what kind of command is being sent, possibly causing trouble with non-standard extensions (nick/chanserv, psybnc, etc).<br><br>The closest thing you can get to this, is activating "raw logging", which enables two new logflags, one for outbound server traffic (v), and one for inbound server traffic (r). See the "raw-log" setting in your eggdrop-configfile for further info.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Wed Jan 30, 2008 2:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sparc317]]></name></author>
		<updated>2008-01-30T05:50:18-04:00</updated>

		<published>2008-01-30T05:50:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=80459#p80459</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=80459#p80459"/>
		<title type="html"><![CDATA[Log all bot messages (patch)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=80459#p80459"><![CDATA[
Yeah, quite annoying really but not a showstopper.<br><br>I just added an addition putlog command in my TCL script which logs the same message that is sent to the channel in the end.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9653">sparc317</a> — Wed Jan 30, 2008 5:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2008-01-29T19:48:16-04:00</updated>

		<published>2008-01-29T19:48:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=80449#p80449</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=80449#p80449"/>
		<title type="html"><![CDATA[Log all bot messages (patch)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=80449#p80449"><![CDATA[
It appears eggdrop doesn't log it's own messages sent to a channel.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Tue Jan 29, 2008 7:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sparc317]]></name></author>
		<updated>2008-01-29T14:54:21-04:00</updated>

		<published>2008-01-29T14:54:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=80444#p80444</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=80444#p80444"/>
		<title type="html"><![CDATA[Log all bot messages (patch)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=80444#p80444"><![CDATA[
Hi,<br><br>Tried this patch but doesn't work for me. My bot just messages a channel (gets its input from a TCL script)<br><br>It logs all messages to the channel from other users, but not from itself. <br><br>Any ideas as would be nice for this to work?<br><br>Thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9653">sparc317</a> — Tue Jan 29, 2008 2:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2008-01-09T07:50:30-04:00</updated>

		<published>2008-01-09T07:50:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79891#p79891</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79891#p79891"/>
		<title type="html"><![CDATA[Re: NO LOGS]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79891#p79891"><![CDATA[
<blockquote class="uncited"><div>Hi,<br><br>Its a missing log function that you did well done but ...<br><br>I patch my source (latest) but i have no logs from private messages from my bot.<br><br>Please responce the right way to patch or something usefull tip<br><br>Thanks.</div></blockquote>Private messages to you when you initiate a DCC/CTCP Chat to your bot?? If so, check your IRC client's logs.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Wed Jan 09, 2008 7:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dntel]]></name></author>
		<updated>2008-01-07T15:03:27-04:00</updated>

		<published>2008-01-07T15:03:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79862#p79862</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79862#p79862"/>
		<title type="html"><![CDATA[NO LOGS]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79862#p79862"><![CDATA[
Hi,<br><br>Its a missing log function that you did well done but ...<br><br>I patch my source (latest) but i have no logs from private messages from my bot.<br><br>Please responce the right way to patch or something usefull tip<br><br>Thanks.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9610">dntel</a> — Mon Jan 07, 2008 3:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dungeon]]></name></author>
		<updated>2007-03-25T09:24:53-04:00</updated>

		<published>2007-03-25T09:24:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=71589#p71589</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=71589#p71589"/>
		<title type="html"><![CDATA[Log all bot messages (patch)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=71589#p71589"><![CDATA[
This is EXACTLY what I was looking for.<br><br>In searching all forums, I couldn't work out why the bot's own messages weren't getting logged - I thought there was some problem with the PUB bind, but I still wasn't getting everything.<br><br>Way to go, forbjok. Thanks muchly for this! Yahoo! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> <br><br>Oh, one other thing... is there any easy way of actually printing out the mode characters in logfiles? Having &lt;@opname&gt; rather than just &lt;opname&gt; so that their channel level can be ascertained in the logfile?<br><br>I've tried a few logging scripts and someone started writing some TCL for me, but it involved running a ishop/isop etc on EVERY *PUB* line. Considering that there's a inbuilt logging function, I thought it'd be a simple recode of the source (but I'm not a C programmer, unfortunately).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7579">dungeon</a> — Sun Mar 25, 2007 9:24 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[forbjok]]></name></author>
		<updated>2007-03-21T21:22:01-04:00</updated>

		<published>2007-03-21T21:22:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=71460#p71460</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=71460#p71460"/>
		<title type="html"><![CDATA[Log all bot messages (patch)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=71460#p71460"><![CDATA[
Hi. Some time ago, i needed to have my eggdrop log all messages, including those said by the eggdrop bot itself. (by default, it will only log messages from other users, which leaves the logs incomplete)<br><br>To accomplish that, I made this small modification:<div class="codebox"><p>Code: </p><pre><code>Index: src/mod/irc.mod/cmdsirc.c===================================================================--- src/mod/irc.mod/cmdsirc.c(revision 10)+++ src/mod/irc.mod/cmdsirc.c(revision 11)@@ -112,6 +112,8 @@   putlog(LOG_CMDS, "*", "#%s# (%s) act %s", dcc[idx].nick, chan-&gt;dname, par);   dprintf(DP_HELP, "PRIVMSG %s :\001ACTION %s\001\n", chan-&gt;name, par);   dprintf(idx, "Action to %s: %s\n", chan-&gt;dname, par);++  putlog(LOG_PUBLIC, chan-&gt;dname, "Action: %s %s", botname, par); }  static void cmd_msg(struct userrec *u, int idx, char *par)@@ -158,6 +160,11 @@   putlog(LOG_CMDS, "*", "#%s# (%s) say %s", dcc[idx].nick, chan-&gt;dname, par);   dprintf(DP_HELP, "PRIVMSG %s :%s\n", chan-&gt;name, par);   dprintf(idx, "Said to %s: %s\n", chan-&gt;dname, par);++  if (me_op(chan))+    putlog(LOG_PUBLIC, chan-&gt;dname, "@&lt;%s&gt; %s", botname, par);+  else+    putlog(LOG_PUBLIC, chan-&gt;dname, "&lt;%s&gt; %s", botname, par); }  static void cmd_kickban(struct userrec *u, int idx, char *par)</code></pre></div>It can also be downloaded as a patch file here: <a href="http://www.cerealsmoker.net/~forbjok/patch/eggdrop_1.6.18_log-all-bot-messages.patch" class="postlink">http://www.cerealsmoker.net/~forbjok/pa ... ages.patch</a><br>This patch was created for eggdrop 1.6.18, but might work for others as well. (I haven't tested)<br><br>Hopefully this will save someone the bother of looking for hours for information on how to accomplish this  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8836">forbjok</a> — Wed Mar 21, 2007 9:22 pm</p><hr />
]]></content>
	</entry>
	</feed>
