Commit Graph

21 Commits

Author SHA1 Message Date
Richard Esplin
5ecb154186 Ensure log files are UTF-8 encoded
The default encoding is platform specific, so problems can arise if we do not
make it explicit. Especially on Windows. Freenode appears to be all UTF-8, and
irclib is giving us UTF-8 strings, so let's standardize on UTF-8.
2014-01-15 23:15:09 -07:00
Richard Esplin
ba0ba71bf4 Eliminate unnecessary closing of the log file.
Name returns a string that is the log file name: the channel plus the timestamp.
But on my system log.name returns the fully qualified path to the currently open file. This is because log is a file handle, so if you declare it with a path, it will be included in the name.
On systems were logging is not in the current directory, the two will never match, and the file is closed and then reopened.
Only taking the basename solves this problem.
2014-01-15 16:15:11 -07:00
Valentin Lorentz
d14f5df76f ChannelLogger: Rewrite relayed nicks. Closes GH-507. 2013-08-19 17:22:56 +02:00
Valentin Lorentz
fe540b3620 ChannelLogger: check for logChannelMessages before logging. 2013-04-26 17:52:18 +02:00
Valentin Lorentz
3dba9088b0 Merge remote-tracking branch 'supybot/master' into testing
Conflicts:
	INSTALL
	plugins/ChannelLogger/README.txt
	plugins/ChannelStats/README.txt
	plugins/Google/plugin.py
	plugins/Google/test.py
	plugins/Plugin/test.py
	plugins/Web/test.py
	setup.py
	src/callbacks.py
	src/ircdb.py
	src/irclib.py
	src/utils/str.py
	test/test_irclib.py
2013-01-01 21:11:24 +01:00
resistivecorpse
6d7b6a7d31 chaged msg.arg[0] to channel in if statements for joins and parts 2012-09-26 12:27:33 -04:00
resistivecorpse
82ed771b9e minor fixes to ChannelLogger 2012-09-25 01:11:09 -04:00
resistivecorpse
54a6425e55 adds an on off config option for logging of joins parts and quits in ChannelLogger plugin 2012-09-22 16:01:29 -04:00
James McCoy
82ecf36fcd Update my name/contact information
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
2012-09-01 10:16:48 -04:00
Valentin Lorentz
1e794d88d7 ChannelLogger: Use open() instead of file(). 2012-08-07 20:53:06 +00:00
Daniel Folkinshteyn
6ccd1ce3d6 ChannelLogger: include in logs the reasons for parts and quits 2011-02-25 19:29:24 +01:00
Valentin Lorentz
d14bb0cc16 Internationalize ChannelLogger, Ctcp, Dict, Dunno, Factoids 2010-10-17 11:22:07 +02:00
James Vega
4a9596608a Include hostmasks in JOIN, PART, QUIT logs.
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2010-02-28 21:17:35 -05:00
James Vega
ce469b0851 ChannelLogger: Allow logging to be disabled on specific channels 2009-03-11 13:37:27 -04:00
Jeremy Fincher
78f03078d8 Handle flusher correctly. 2006-10-13 05:59:39 +00:00
James Vega
a3e4fc5b1d Change the modeline to use softtabstop instead of tabstop. 2006-02-11 15:52:51 +00:00
James Vega
9971e991fe Fix the modelines. 2005-03-23 20:07:45 +00:00
Jeremy Fincher
9ec4493201 Have to handle the fact that we might have a proxy. 2005-03-14 03:51:56 +00:00
Jeremy Fincher
b0cb616709 Changed callbacks.Privmsg to be callbacks.Plugin, and callbacks.PrivmsgCommandAndRegexp to be callbacks.Plugin. 2005-02-09 07:04:04 +00:00
Jeremy Fincher
a056b12959 Changed to use an __parent instead of a super call. 2005-02-02 12:45:03 +00:00
Jeremy Fincher
f2ae3fd7ab Added ChannelLogger in the new plugin format. 2005-02-02 12:37:16 +00:00