aboutsummaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2023-01-16 23:19:56 +0000
committerGravatar Sadie Powell2023-01-17 00:37:14 +0000
commita99a38a3ad8012803118a3b92b20024f28b6e29b (patch)
treec4e7204ec738c036da5b6a4045d6fa58ad8df18f /src/inspircd.cpp
parentStore the actual error in FailedPort instead of an error code. (diff)
Allow creating a FailedPort without a bindspec.
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r--src/inspircd.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index e7b6257bd..919e0e8ed 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -378,7 +378,11 @@ namespace
for (const auto& fp : pl)
{
- std::cout << " " << rang::style::bold << fp.sa.str() << rang::style::reset << ": " << fp.error << '.' << std::endl
+ std::cout << " ";
+ if (fp.sa.family() != AF_UNSPEC)
+ std::cout << rang::style::bold << fp.sa.str() << rang::style::reset << ": ";
+
+ std::cout << fp.error << '.' << std::endl
<< " " << "Created from <bind> tag at " << fp.tag->source.str() << std::endl
<< std::endl;
}