aboutsummaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2023-04-29 12:03:05 +0100
committerGravatar Sadie Powell2023-04-29 12:03:05 +0100
commit788bcd29cfa321a0e56f32486c2a9b74be394bcf (patch)
tree83aeb0e2098a00ad783b0baad99aedae48f5187d /src/users.cpp
parentFix a copy/paste error in GetUserAddress. (diff)
IPv6 addresses should be partially expanded with '0' not 0x0.
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp2
1 files changed, 1 insertions, 1 deletions
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();
}