| View previous topic :: View next topic |
| Author |
Message |
vladdeh Voice
Joined: 23 Mar 2011 Posts: 33
|
Posted: Thu Oct 20, 2011 2:48 pm Post subject: Eggdrop not logging channel messages |
|
|
| 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 |
|
 |
vladdeh Voice
Joined: 23 Mar 2011 Posts: 33
|
Posted: Thu Oct 20, 2011 4:45 pm Post subject: |
|
|
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 |
|
 |
willyw Revered One
Joined: 15 Jan 2009 Posts: 1175
|
Posted: Fri Oct 21, 2011 8:12 pm Post subject: |
|
|
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 |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Sat Oct 22, 2011 9:40 am Post subject: |
|
|
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 |
|
 |
vladdeh Voice
Joined: 23 Mar 2011 Posts: 33
|
Posted: Sat Oct 22, 2011 2:02 pm Post subject: |
|
|
| 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 |
|
 |
vladdeh Voice
Joined: 23 Mar 2011 Posts: 33
|
Posted: Mon Oct 24, 2011 3:27 am Post subject: |
|
|
| So no one can help me get the bot to log channel messages without having to disable all these scripts :/ |
|
| Back to top |
|
 |
|