#695 Plugins break at channel names with slashes

open
nobody
5
2012-09-06
2010-12-20
Anonymous
No

ChannelLogger, and probably any other plugin using filenames generated from channel names, will break with channel names which have slashes in them. Example:

ERROR 2010-12-20T15:59:33 Error opening log:
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/supybot/plugins/ChannelLogger/plugin.py", line 149, in getLog
log = file(os.path.join(logDir, name), 'a')
IOError: [Errno 2] No such file or directory: '/home/florian/supybot/logs/ChannelLogger/rizon/#/x/#/x/.log'
ERROR 2010-12-20T15:59:33 Exception id: 0x2d72a

Florian

Discussion