fixed crash bug in cmd_resync
[NeonServV5.git] / src / cmd_neonserv_resync.c
index 9dd7a9ce35f91b0fd98ab0cfbdb516de06f4edbc..162a9c96dd09fba0dfb529442c9be3404c2fb345 100644 (file)
@@ -116,7 +116,7 @@ static void neonserv_cmd_resync_async1(struct ClientSocket *client, struct Clien
                 }
             }
         }
-        if((usermask && *usermask && match(usermask, row[1])) || caccess < min_access || caccess > max_access) continue;
+        if((usermask && *usermask && match(usermask, chanuser->user->nick)) || caccess < min_access || caccess > max_access) continue;
         if(caccess >= db_enfops) {
             if(!(chanuser->flags & CHANUSERFLAG_OPPED) && resync_op)
                 modeBufferOp(modeBuf, chanuser->user->nick);