]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fix not parsing connect class hosts for inherited classes.
authorSadie Powell <sadie@witchery.services>
Thu, 8 Apr 2021 20:19:06 +0000 (21:19 +0100)
committerSadie Powell <sadie@witchery.services>
Thu, 8 Apr 2021 20:19:06 +0000 (21:19 +0100)
This bug was introduced since the last release and only ever
affected git versions built since commit 8c3c4f8e82.

src/users.cpp

index 8ea0de6bc61d5e04698e3b6527a3c53f1c4c7950..2513a7830996c4b4d71370a1b058c5ee3465e22a 100644 (file)
@@ -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