This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Log of public messages stopped

General support and discussion of Eggdrop bots.
Post Reply
r
robbie-bot
Voice
Posts: 4
Joined: Mon Oct 19, 2009 1:03 am

Log of public messages stopped

Post by robbie-bot »

This seemed to happen after the upgrade to 1.6.19

I can change logfile all I want. 'p' and 'm' options seem to have no effect. The bot will no longer log public or private messages. It will log /notice or /msg lines from the channel.

I have deleted the channel file, recompiled, tried both the original and Gentoo biulds, same thing.

I got around it by writing a TCL script to add entries by putloglev but would rather use the native log.

I have looked at the config file and even stared at the code and cant see anything that would prevent the messages from being logged.
User avatar
TCL_no_TK
Owner
Posts: 509
Joined: Fri Aug 25, 2006 7:05 pm
Location: England, Yorkshire

Post by TCL_no_TK »

Check Your settings in eggdrop config file, :arrow: Also id recommend searching thought the binds, and making sure you dont have any scripts that have

Code: Select all

bind msgm -|- * sum:proc
Type .binds in dcc/telnet with the bot for a list
r
robbie-bot
Voice
Posts: 4
Joined: Mon Oct 19, 2009 1:03 am

Post by robbie-bot »

The only msgm binds are in the bseen1.4.2.tcl file. Those file have not changed since 2004.

The config file has p and m in the logfile options.
User avatar
TCL_no_TK
Owner
Posts: 509
Joined: Fri Aug 25, 2006 7:05 pm
Location: England, Yorkshire

Post by TCL_no_TK »

lol i had the same problem when i last updates... yes i had the same script on it (bseen.tcl) :P in saying that i never had the time time to pin point what was causing the problem :/ just know that it worked without it. After a recompile n all that :) hope it helps.
w
willyw
Revered One
Posts: 1203
Joined: Thu Jan 15, 2009 12:55 am

Re: Log of public messages stopped

Post by willyw »

robbie-bot wrote:This seemed to happen after the upgrade to 1.6.19

I can change logfile all I want. 'p' and 'm' options seem to have no effect. The bot will no longer log public or private messages.
...
I've had this to happen.

For me, it was a script. I'd have to go looking to find it again, but from my memory it was a procedure that had a non-zero return in it.

I'm sorry that I don't have the reference right at my fingertips, to point you to. I bet that if you search this forum, you'll find it mentioned though.

Try an experiment: comment out ALL your scripts. Then .restart .
Does it log normally now? If it does, now you know it is a script that is causing it. Load them one at a time, until you pin it down.

I hope this helps.
w
willyw
Revered One
Posts: 1203
Joined: Thu Jan 15, 2009 12:55 am

Post by willyw »

It is mentioned here:
http://forum.egghelp.org/viewtopic.php?t=12824&start=0

in the post by nml375.
There is a known "issue" with pubm-bindings in eggdrop1.6.18; If the command invoked returns 1 (TCL_OK), eggdrop will not log the message that triggered the binding.
I would suspect this to be the reason why your bot does not log public chat, that is, there seems to be a script running on your system with a pubm-binding that blocks public chat from being logged on that channel.

.....
r
robbie-bot
Voice
Posts: 4
Joined: Mon Oct 19, 2009 1:03 am

Post by robbie-bot »

The thing is, the pubm function is only called if the keywords match in the bind command.

My only pubm bind kicks users that have "now playing" spam. It would be obvious if that was being called.
r
robbie-bot
Voice
Posts: 4
Joined: Mon Oct 19, 2009 1:03 am

Post by robbie-bot »

robbie-bot wrote:The thing is, the pubm function is only called if the keywords match in the bind command.

My only pubm bind kicks users that have "now playing" spam. It would be obvious if that was being called.
Ok, did more digging. I was using grep to search for pubm. Did not realize CHATStats.tcl was in a subdir. It has not been modified since 2004. Logging stopped in May when I updated eggdrop and TCL.

The cs:count function had no return value specified. This has been running fine for years. Must be 1.6.19 or the updated TCL libs now return a default other than 0.

Removed the CHATStats.tcl and now logging works.
Post Reply