diff options
-rw-r--r-- | src/server.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server.cpp b/src/server.cpp index c2068d75b..2e6109202 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -88,6 +88,7 @@ std::string UIDGenerator::GenerateSID(const std::string& servername, const std:: sid = 5 * sid + *i; std::string sidstr = ConvToStr(sid % 1000); + sidstr.insert(0, 3 - sidstr.length(), '0'); return sidstr; } |