X-Git-Url: https://jfr.im/git/irc/evilnet/x3.git/blobdiff_plain/668dc38ee0a1fb3ab8e42b8d9d09580150973ac7..ffb204b696ed373e9e367d45079c3b725c98efe4:/src/tools.c diff --git a/src/tools.c b/src/tools.c index 0ebae63..4a3d52b 100644 --- a/src/tools.c +++ b/src/tools.c @@ -625,6 +625,15 @@ user_matches_glob(struct userNode *user, const char *orig_glob, int flags) if (match_ircglob(hidden_host, glob)) return 1; } + + /* Match crypt hostname */ + if (match_ircglob(user->crypthost, glob)) + return 1; + + /* Match crypt IP */ + if (match_ircglob(user->cryptip, glob)) + return 1; + /* If only matching the visible hostnames, bail early. */ if ((flags & MATCH_VISIBLE) && IsHiddenHost(user) && (IsFakeHost(user) || (hidden_host_suffix && user->handle_info)))