mirror of
https://github.com/anope/anope.git
synced 2026-07-02 06:06:39 +02:00
Generate random SIDs for us if one is not specified
This commit is contained in:
@@ -761,7 +761,7 @@ class ProtoInspIRCd : public Module
|
||||
ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
|
||||
|
||||
if (Config->Numeric.empty())
|
||||
throw ModuleException("This IRCd protocol requires a server id to be set in Anope's configuration.");
|
||||
Config->Numeric = ts6_sid_retrieve();
|
||||
}
|
||||
|
||||
void OnUserNickChange(User *u, const Anope::string &)
|
||||
|
||||
@@ -756,7 +756,7 @@ class ProtoInspIRCd : public Module
|
||||
ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
|
||||
|
||||
if (Config->Numeric.empty())
|
||||
throw ModuleException("This IRCd protocol requires a server id to be set in Anope's configuration.");
|
||||
Config->Numeric = ts6_sid_retrieve();
|
||||
}
|
||||
|
||||
void OnUserNickChange(User *u, const Anope::string &)
|
||||
|
||||
@@ -662,7 +662,7 @@ class ProtoPlexus : public Module
|
||||
ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
|
||||
|
||||
if (Config->Numeric.empty())
|
||||
throw ModuleException("This IRCd protocol requires a server id to be set in Anope's configuration.");
|
||||
Config->Numeric = ts6_sid_retrieve();
|
||||
}
|
||||
|
||||
void OnServerSync(Server *s)
|
||||
|
||||
@@ -594,7 +594,7 @@ class ProtoRatbox : public Module
|
||||
ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
|
||||
|
||||
if (Config->Numeric.empty())
|
||||
throw ModuleException("This IRCd protocol requires a server id to be set in Anope's configuration.");
|
||||
Config->Numeric = ts6_sid_retrieve();
|
||||
}
|
||||
|
||||
void OnServerSync(Server *s)
|
||||
|
||||
Reference in New Issue
Block a user