+
+ // sethost - reed/apples
+ if (IsSetHost(user)) {
+ setident = alloca(strcspn(user->sethost, "@")+2);
+ safestrncpy(setident, user->sethost, strcspn(user->sethost, "@")+1);
+ sethostname = strchr(user->sethost, '@') + 1;
+ }
+
+ if (!match_ircglob(user->ident, glob) && (IsSetHost(user) && !match_ircglob(setident, glob)))
+ return 0;