diff options
Diffstat (limited to 'src/configreader.cpp')
-rw-r--r-- | src/configreader.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp index c5f37a1e4..2ee99f1af 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -1716,6 +1716,14 @@ InspIRCd* ServerConfig::GetInstance() return ServerInstance; } +std::string ServerConfig::GetSID() +{ + std::string OurSID; + OurSID += (char)((Instance->Config->sid / 100) + 48); + OurSID += (char)((Instance->Config->sid / 10) % 10 + 48); + OurSID += (char)(Instance->Config->sid % 10 + 48); + return OurSID; +} ValueItem::ValueItem(int value) { |