1
0
mirror of https://shylinux.com/x/icebergs synced 2025-04-26 01:24:05 +08:00
This commit is contained in:
shylinux 2020-07-24 17:10:38 +08:00
parent c45ae98b42
commit d73015258e
2 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,7 @@ import (
func _user_list(m *ice.Message) {
m.Richs(USER, nil, kit.MDB_FOREACH, func(key string, value map[string]interface{}) {
m.Push(key, value, []string{kit.MDB_TIME, USERNAME, USERNODE})
m.Push(key, value, []string{kit.MDB_TIME, USERNAME, USERNICK})
})
}
func _user_login(m *ice.Message, name, word string) (ok bool) {

View File

@ -197,9 +197,9 @@ func (m *Message) Sort(key string, arg ...string) *Message {
case "int_r":
number[index] = -kit.Int(line[key])
case "time":
number[index] = kit.Time(line[key])
number[index] = int(kit.Time(line[key]))
case "time_r":
number[index] = -kit.Time(line[key])
number[index] = -int(kit.Time(line[key]))
}
})