--- a/channels.py Sun Feb 08 04:59:22 2009 +0200
+++ b/channels.py Mon Feb 09 00:24:13 2009 +0200
@@ -9,6 +9,7 @@
from log_channel import LogChannel
from log_source import LogDirectory
+from log_parser import IrssiParser
relpath = lambda path : os.path.join(os.path.dirname(__file__), path)
@@ -16,14 +17,20 @@
"""
The list of channels, and related methods
"""
+
+ # timezone to use
+ TIMEZONE = pytz.timezone('Europe/Helsinki')
+
+ # the parser that we use
+ PARSER = IrssiParser(TIMEZONE, "%H:%M:%S")
# the statically defined channel list
CHANNELS = {
'tycoon': LogChannel('tycoon', "OFTC", "#tycoon",
- LogDirectory(relpath('logs/tycoon'), pytz.timezone('Europe/Helsinki'))
+ LogDirectory(relpath('logs/tycoon'), TIMEZONE, PARSER)
),
'openttd': LogChannel('openttd', "OFTC", "#openttd",
- LogDirectory(relpath('logs/openttd'), pytz.timezone('Europe/Helsinki'))
+ LogDirectory(relpath('logs/openttd'), TIMEZONE, PARSER)
),
}