Skip to content

Commit

Permalink
Cleanup remparty()
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Ortmann committed May 29, 2024
1 parent e28a0a0 commit 8a442e1
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/botnet.c
Original file line number Diff line number Diff line change
Expand Up @@ -341,17 +341,8 @@ void remparty(char *bot, int sock)
nfree(party[i].from);
if (party[i].away)
nfree(party[i].away);
if (i < parties) {
strcpy(party[i].bot, party[parties].bot);
strcpy(party[i].nick, party[parties].nick);
party[i].chan = party[parties].chan;
party[i].sock = party[parties].sock;
party[i].flag = party[parties].flag;
party[i].status = party[parties].status;
party[i].timer = party[parties].timer;
party[i].from = party[parties].from;
party[i].away = party[parties].away;
}
if (i < parties)
memcpy(&party[i], &party[parties], sizeof(party_t));
}
}

Expand Down

0 comments on commit 8a442e1

Please sign in to comment.