summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2021-04-08 21:19:06 +0100
committerSadie Powell <sadie@witchery.services>2021-04-08 21:19:06 +0100
commitbfbd0f6cc6297f26c8348aebe9492246110d0eba (patch)
tree772415e49157114354d69e445efb376613212c55 /src
parentbc2fa5c4a50ea174f229979f9e060a817dd3a281 (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/users.cpp4
1 files changed, 4 insertions, 0 deletions
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