Commited patch #1292, thank you daveman.
This commit is contained in:
parent
81c2cd6ffa
commit
e2c183c9b4
2 changed files with 11 additions and 1 deletions
pvpgn
|
@ -133,7 +133,7 @@ check_multilogin = 0
|
|||
# Max allowed value is 18 (enforced by server)
|
||||
maxchar = 8
|
||||
|
||||
# Character sorting. Options are: level, mtime, name, none. (none assumed if
|
||||
# Character sorting. Options are: level, ctime, mtime, name, none. (none assumed if
|
||||
# not specified).
|
||||
#charlist_sort = "none"
|
||||
|
||||
|
|
|
@ -59,6 +59,16 @@ extern int d2charlist_add_char(t_elist * list_head, t_d2charinfo_file * charinfo
|
|||
}
|
||||
elist_add_tail(curr,&charlist->list);
|
||||
}
|
||||
else if (strcasecmp(d2char_sort, "ctime")==0)
|
||||
{
|
||||
elist_for_each(curr,list_head)
|
||||
{
|
||||
ccharlist = elist_entry(curr,t_d2charlist,list);
|
||||
if (bn_int_get(charinfo->header.create_time) < bn_int_get(ccharlist->charinfo->header.create_time))
|
||||
break;
|
||||
}
|
||||
elist_add_tail(curr,&charlist->list);
|
||||
}
|
||||
else if (strcasecmp(d2char_sort, "mtime")==0)
|
||||
{
|
||||
elist_for_each(curr,list_head)
|
||||
|
|
Loading…
Add table
Reference in a new issue