From bfbd0f6cc6297f26c8348aebe9492246110d0eba Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 8 Apr 2021 21:19:06 +0100 Subject: Fix not parsing connect class hosts for inherited classes. This bug was introduced since the last release and only ever affected git versions built since commit 8c3c4f8e82. --- src/users.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/users.cpp b/src/users.cpp index 8ea0de6bc..2513a7830 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -1284,6 +1284,10 @@ ConnectClass::ConnectClass(ConfigTag* tag, char t, const std::string& mask, cons name = "unnamed"; type = t; host = mask; + hosts.clear(); + irc::spacesepstream hoststream(host); + for (std::string hostentry; hoststream.GetToken(hostentry); ) + hosts.push_back(hostentry); // Connect classes can inherit from each other but this is problematic for modules which can't use // ConnectClass::Update so we build a hybrid tag containing all of the values set on this class as -- cgit v1.2.3