Merge pull request #519 from lyra833/escape-channel

Fixed a bug preventing logging
This commit is contained in:
JocelynDelalande 2015-12-01 22:09:13 +01:00
commit 8a80ee343d
1 changed files with 3 additions and 1 deletions

View File

@ -34,7 +34,9 @@ module.exports.write = function(user, network, chan, msg) {
} }
fs.appendFile( fs.appendFile(
path + "/" + chan + ".log", // Quick fix to escape pre-escape channel names that contain % using %%,
// and / using %. **This does not escape all reserved words**
path + "/" + chan.replace(/%/g, "%%").replace(/\//g, "%") + ".log",
line + "\n", line + "\n",
function(e) { function(e) {
if (e) { if (e) {