Lists_CheckReason(): Check for Client_MaskCloaked()
authorSebastian Köhler <sebkoehler@whoami.org.uk>
Wed, 20 Mar 2013 02:40:31 +0000 (03:40 +0100)
committerSebastian Köhler <sebkoehler@whoami.org.uk>
Wed, 20 Mar 2013 02:40:31 +0000 (03:40 +0100)
Look for possible cloaked Masks in Lists. Users with +x usermode can be
banned with their cloaked hostname now.

src/ngircd/lists.c

index 6faf311a74f767207c0f2c622cde44e72a924280..21058a03116298b6cc81ff98f40b40d0c9caa502 100644 (file)
@@ -342,7 +342,7 @@ Lists_CheckReason(struct list_head *h, CLIENT *Client)
 
        while (e) {
                next = e->next;
-               if (Match(e->mask, Client_Mask(Client))) {
+               if (Match(e->mask, Client_MaskCloaked(Client))) {
                        if (e->valid_until == 1) {
                                /* Entry is valid only once, delete it */
                                LogDebug("Deleted \"%s\" from list (used).",