Avoid appending a user to curr_opers or curr_helpers more than once.
[srvx.git] / src / nickserv.c
index dc6eeb7c9529190cddaaef4295c843e32f485e01..81fe3aa7e53c9448c683fe5a14049c44508347c2 100644 (file)
@@ -944,7 +944,7 @@ set_user_handle_info(struct userNode *user, struct handle_info *hi, int stamp)
         user->next_authed = hi->users;
         hi->users = user;
         hi->lastseen = now;
-        if (IsHelper(user))
+        if (IsHelper(user) && !userList_contains(&curr_helpers, user))
             userList_append(&curr_helpers, user);
 
         if (hi->fakehost || old_info)
@@ -1368,7 +1368,7 @@ static NICKSERV_FUNC(cmd_handleinfo)
         reply(type);
     }
 
-    if (oper_has_access(user, cmd->parent->bot, 0, 1) || IsSupport(user)) {
+    if (oper_has_access(user, cmd->parent->bot, 0, 1) || IsStaff(user)) {
         if (!hi->notes) {
             reply("NSMSG_HANDLEINFO_NO_NOTES");
         } else {