summaryrefslogtreecommitdiff
path: root/src/uplink.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/uplink.cpp')
-rw-r--r--src/uplink.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/uplink.cpp b/src/uplink.cpp
index 9f2caa02d..871121cc9 100644
--- a/src/uplink.cpp
+++ b/src/uplink.cpp
@@ -38,6 +38,12 @@ class ReconnectTimer : public Timer
void Uplink::Connect()
{
+ if (Config->Uplinks.empty())
+ {
+ Log() << "Warning: There are no configured uplinks.";
+ return;
+ }
+
if (static_cast<unsigned>(++Anope::CurrentUplink) >= Config->Uplinks.size())
Anope::CurrentUplink = 0;