]> jfr.im git - irc/evilnet/x3.git/blobdiff - src/tools.c
fixed registration process (uncommitted code from afternets x3 applied)
[irc/evilnet/x3.git] / src / tools.c
index 85912a61c63caf9b554ec00eb3610686362b8a53..172765f1cbb563b925b986ca661b39fce4ef7411 100644 (file)
@@ -1,7 +1,7 @@
 /* tools.c - miscellaneous utility functions
  * Copyright 2000-2004 srvx Development Team
  *
- * This file is part of srvx.
+ * This file is part of x3.
  *
  * srvx is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -424,7 +424,9 @@ user_matches_glob_broken(struct userNode *user, const char *orig_glob, int inclu
         return 1;
     /* Check for a fakehost match. */
     if (IsFakeHost(user) && match_ircglob(user->fakehost, glob))
-            return 1;
+        return 1;
+    if (IsSetHost(user) && match_ircglob(sethostname, glob))
+        return 1;
     /* Check for an account match. */
     if (hidden_host_suffix && user->handle_info) {
         char hidden_host[HOSTLEN+1];