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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user