egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Eggdrop not logging channel messages

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help
View previous topic :: View next topic  
Author Message
vladdeh
Voice


Joined: 23 Mar 2011
Posts: 33

PostPosted: Thu Oct 20, 2011 2:48 pm    Post subject: Eggdrop not logging channel messages Reply with quote

I set logfile jpk #channel "logs/#channel.log" in the eggdrop.conf but the logfile only has Joins/parts/quits and ACTIONS (/me) but no normal message any idea why this is happening?
Back to top
View user's profile Send private message
vladdeh
Voice


Joined: 23 Mar 2011
Posts: 33

PostPosted: Thu Oct 20, 2011 4:45 pm    Post subject: Reply with quote

So I've found what breaks it, it's this script http://pastebin.com/XH0N3rq5

If someone could look at it and tell me why this is stopping my bot from seeing normal channel messages I'd appreciate it.

After I disable this script messages get logged now but since this script is a part of a bunch of other scripts it breaks the rest of my bot

This is what I get every time I send ANY message on a channel after I disable this -> [21:01:50] Tcl error [a:bind:pubm]: invalid command name "a:bind:pubm"
Back to top
View user's profile Send private message
willyw
Revered One


Joined: 15 Jan 2009
Posts: 1175

PostPosted: Fri Oct 21, 2011 8:12 pm    Post subject: Reply with quote

It has to do with a proc returning 1, and not returning 0. Then logging ceases.

That is not much of an explanation, and I can't seem to find the link, or the post or whatever I read once upon a time that explained it fairly well.

It is likely that it is mentioned more than once, here in the forum - but this just isn't my day for working with Search. Maybe you can have better luck searching.

If I find that other link, I'll post it here.

In the meantime, perhaps someone else can jump in here and actually explain it properly to you. This is why I didn't reply yesterday... I'd hoped someone would give you a good answer.
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Sat Oct 22, 2011 9:40 am    Post subject: Reply with quote

Just for reference;
This is documented in the doc/tcl-commands.doc file included with the eggdrop source. However, this only applies to PUBM bindings (which allows for wildcard matching); PUB bindings will always treat the line of text as a command, and thus will never log the line as chatter (though returning 1 from the proc will cause eggdrop to log it as a command).
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
vladdeh
Voice


Joined: 23 Mar 2011
Posts: 33

PostPosted: Sat Oct 22, 2011 2:02 pm    Post subject: Reply with quote

So can someone say what I have to chance in that tcl to make it work, I'm quite horrible at this to be honest
Back to top
View user's profile Send private message
vladdeh
Voice


Joined: 23 Mar 2011
Posts: 33

PostPosted: Mon Oct 24, 2011 3:27 am    Post subject: Reply with quote

So no one can help me get the bot to log channel messages without having to disable all these scripts :/
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber