diff options
Diffstat (limited to 'src/init.cpp')
-rw-r--r-- | src/init.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/init.cpp b/src/init.cpp index 73589b468..0f2f30a58 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -11,6 +11,7 @@ #include "services.h" #include "modules.h" +#include "oper.h" Uplink *uplink_server; @@ -401,6 +402,12 @@ void Init(int ac, char **av) throw FatalException("You must load a protocol module!"); else if (ModuleManager::FindFirstOf(ENCRYPTION) == NULL) throw FatalException("You must load at least one encryption module"); + + for (botinfo_map::iterator it = BotListByNick.begin(), it_end = BotListByNick.end(); it != it_end; ++it) + { + it->second->GenerateUID(); + it->second->server = Me; + } Log() << "Using IRCd protocol " << protocol->name; |