+#if defined(S_ISLNK) && defined(HAVE_LSTAT)
+ if(lstat(filename, &sb) < 0)
+ continue;
+
+ /* ok, if its a symlink, we work on the presumption if an
+ * oper help exists of that name, its a symlink to that --fl
+ */
+ if(S_ISLNK(sb.st_mode))
+ {
+ cacheptr = irc_dictionary_retrieve(help_dict_oper, ldirent->d_name);
+
+ if(cacheptr != NULL)
+ {
+ cacheptr->flags |= HELP_USER;
+ continue;
+ }
+ }
+#endif
+