mirror of
https://github.com/anope/anope.git
synced 2026-07-05 12:03:12 +02:00
Fix a crash on exit when uplink lost and globaloncycledown set.
This commit is contained in:
@@ -156,7 +156,12 @@ public:
|
||||
if (server)
|
||||
this->ServerGlobal(sender, server, false, line);
|
||||
else
|
||||
this->ServerGlobal(sender, Servers::GetUplink(), true, line);
|
||||
{
|
||||
auto* uplink = Servers::GetUplink();
|
||||
if (!uplink)
|
||||
return false;
|
||||
this->ServerGlobal(sender, uplink, true, line);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user