Network specific logging module and \ in nick #245

Closed
opened 2026-10-05 04:07:27 +02:00 by adam · 4 comments
Owner

Hi there,

I just noticed the network specific logging module fails when nicks contain a backslash \. Today I talked to nick\ and znc just created a nick\ directory additionally to logging to the correct filename.
I tried to search the issues but the new github search style is crap and I didn't find anything, I hope this is no dupe.

Hi there, I just noticed the network specific logging module fails when nicks contain a backslash `\`. Today I talked to `nick\` and znc just created a `nick\` directory additionally to logging to the correct filename. I tried to search the issues but the new github search style is crap and I didn't find anything, I hope this is no dupe. <!-- github-sync-id:16138113 -->
adam closed this issue 2026-10-05 04:07:27 +02:00
Author
Owner

Was this on windows?

Was this on windows? <!-- github-comment-id:20183853 -->
Author
Owner

Sorry, forgot to mention. Debian Testing with ext4. ZNC 1.1-git-125-a06b649.

Sorry, forgot to mention. Debian Testing with ext4. ZNC 1.1-git-125-a06b649. <!-- github-comment-id:20183917 -->
Author
Owner

Works for me:

-rw-r--r-- 1 somebody somebody   22 июня  28 20:10 nick\_20130628.log

What parameters did you give to log module?

Works for me: ``` -rw-r--r-- 1 somebody somebody 22 июня 28 20:10 nick\_20130628.log ``` What parameters did you give to log module? <!-- github-comment-id:20198062 -->
Author
Owner

I gave it no extra parameters, just loaded it via webinterface.
It actually does create the log, it just additionally creates a directory.
We talked about this in IRC, it seems like

22:35:08 psychon | DarthGandalf: CFile::GetDir() interprets both / and \ as directory delimiters -.-
22:35:20 psychon | so it does "the wrong thing" on non-windows here

I gave it no extra parameters, just loaded it via webinterface. It actually does create the log, it just additionally creates a directory. We talked about this in IRC, it seems like > 22:35:08 psychon | DarthGandalf: CFile::GetDir() interprets both / and \ as directory delimiters -.- > 22:35:20 psychon | so it does "the wrong thing" on non-windows here <!-- github-comment-id:20375765 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/znc#245