summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_spanningtree/treesocket1.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree/treesocket1.cpp b/src/modules/m_spanningtree/treesocket1.cpp
index af3117b07..03fa69197 100644
--- a/src/modules/m_spanningtree/treesocket1.cpp
+++ b/src/modules/m_spanningtree/treesocket1.cpp
@@ -286,7 +286,10 @@ std::string TreeSocket::RandString(unsigned int length)
}
for (unsigned int i = 0; i < length; i++)
- out += static_cast<char>((randombuf[i] & 0x7F) | 0x21);
+ {
+ char randchar = static_cast<char>((randombuf[i] & 0x7F) | 0x21);
+ out += (randchar == '=' ? '_' : randchar);
+ }
delete[] randombuf;
return out;