summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-01-20 16:34:43 +0300
committerAndrei Karas <akaras@inbox.ru>2012-01-20 16:34:43 +0300
commit690579fef58390e1b28a0dc73174ab559cb3b40c (patch)
tree181e6b145c26ae4a4555178e76fcfb03a07895ed /src
parent5dc9a8a99e38a22c3c690d143e32901eeef7b9ab (diff)
downloadmanaverse-690579fef58390e1b28a0dc73174ab559cb3b40c.tar.gz
manaverse-690579fef58390e1b28a0dc73174ab559cb3b40c.tar.bz2
manaverse-690579fef58390e1b28a0dc73174ab559cb3b40c.tar.xz
manaverse-690579fef58390e1b28a0dc73174ab559cb3b40c.zip
Add char '#' as allowed in file names in chat logger.
Diffstat (limited to 'src')
-rw-r--r--src/chatlogger.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/chatlogger.cpp b/src/chatlogger.cpp
index 40fc5aa57..ad86de8e9 100644
--- a/src/chatlogger.cpp
+++ b/src/chatlogger.cpp
@@ -147,7 +147,8 @@ std::string ChatLogger::secureName(std::string &name) const
&& (name[f] < 'A' || name[f] > 'Z')
&& name[f] != '-' && name[f] != '+' && name[f] != '='
&& name[f] != '.' && name[f] != ',' && name[f] != ')'
- && name[f] != '(' && name[f] != '[' && name[f] != ']')
+ && name[f] != '(' && name[f] != '[' && name[f] != ']'
+ && name[f] != '#')
{
name[f] = '_';
}