diff options
author | Adam <Adam@anope.org> | 2011-08-07 17:43:23 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-08-07 17:43:23 -0400 |
commit | 25e3408ff654a9cb8ac15af41e3e015cbe85a444 (patch) | |
tree | 2a523e178f24c561c62a8a8ccdb1ca2a829faa17 /src/init.cpp | |
parent | 35588cc521cb0ea8c15b0bde3d2543ada9db3751 (diff) |
Fixed generating sid on startup
Diffstat (limited to 'src/init.cpp')
-rw-r--r-- | src/init.cpp | 6 |
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(); |