From 788bcd29cfa321a0e56f32486c2a9b74be394bcf Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 29 Apr 2023 12:03:05 +0100 Subject: IPv6 addresses should be partially expanded with '0' not 0x0. --- src/users.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/users.cpp') diff --git a/src/users.cpp b/src/users.cpp index f98f088fa..e6dcb7cd5 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -117,7 +117,7 @@ const std::string& User::GetAddress() // need to partially expand the address to avoid issues with // the IRC wire format. if (cached_address[0] == ':') - cached_address.insert(cached_address.begin(), 1, 0); + cached_address.insert(cached_address.begin(), 1, '0'); cached_address.shrink_to_fit(); } -- cgit v1.3.1-10-gc9f91