summaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/init.cpp b/src/init.cpp
index 0f2f30a58..1a5293f37 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -403,6 +403,12 @@ void Init(int ac, char **av)
else if (ModuleManager::FindFirstOf(ENCRYPTION) == NULL)
throw FatalException("You must load at least one encryption module");
+ if (ircd->ts6 && Config->Numeric.empty());
+ {
+ Anope::string numeric = ts6_sid_retrieve();
+ Me->SetSID(numeric);
+ Config->Numeric = numeric;
+ }
for (botinfo_map::iterator it = BotListByNick.begin(), it_end = BotListByNick.end(); it != it_end; ++it)
{
it->second->GenerateUID();