diff options
author | walliski <walliski@users.noreply.github.com> | 2015-10-23 19:24:35 +0300 |
---|---|---|
committer | walliski <walliski@users.noreply.github.com> | 2015-10-23 19:24:35 +0300 |
commit | e80558c2217c6589870090ecf85fd36946bb3278 (patch) | |
tree | 1821117526d3eb7550abcef9fd6c653cd25e2a1f | |
parent | cbb5657eec179a810d078e10157c04e09baaa903 (diff) | |
parent | b7c75dc5d9096da76bd121d82bd514d3b3e8d91b (diff) |
Merge pull request #12 from FruitieX/fixChannelEscape
Escape channel names the same way as ZNC Log module does it
-rw-r--r-- | backlog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backlog.cpp b/backlog.cpp index 4a8f816..619de29 100644 --- a/backlog.cpp +++ b/backlog.cpp @@ -102,7 +102,7 @@ void CBacklogMod::OnModCommand(const CString& sCommand) { CString Path = GetNV("LogPath").substr(); // make copy Path.Replace("$NETWORK", Network); - Path.Replace("$WINDOW", Channel.AsLower()); + Path.Replace("$WINDOW", CString(Channel.Replace_n("/", "-").Replace_n("\\", "-")).AsLower()); Path.Replace("$USER", User); CString DirPath = Path.substr(0, Path.find_last_of("/")); |