acro plugin: Don't sort scores when saving to file. This was losing the head

of the list, and it's not necessary anyway.


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@264 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
Kevin Easton
2013-07-10 12:57:06 +00:00
parent ee35df3a41
commit b1de392172

View File

@@ -352,15 +352,18 @@ void read_scores(void)
int write_scores(srec *tmp)
{
FILE *sf;
if (!tmp)
return 0;
tmp = sort_scores(tmp);
sf = fopen(SCOREFILE, "w");
if (!sf)
return 0;
for (; tmp; tmp = tmp->next)
if (tmp->score > 0)
fprintf(sf, "%s,%lu\n", tmp->nick, tmp->score);
fclose(sf);
return 1;
}