Bug fix round-up for SF#2885593, SF#2924219 and SF#2946094.
[srvx.git] / src / mod-helpserv.c
index 08010cc37ec2c231d961e119e0a0a16665f4b272..ed4db97e79e1e7a2cc1e457dbe9cb02379e738ea 100644 (file)
@@ -4024,7 +4024,7 @@ static int handle_join(struct modeNode *mNode) {
 
             if ((reqlist = dict_find(helpserv_reqs_bynick_dict, user->nick, NULL))) {
                 for (j=0; j < reqlist->used; j++)
-                    if (reqlist->list[i]->hs == hs)
+                    if (reqlist->list[j]->hs == hs)
                         break;
                 if (j < reqlist->used)
                     continue;