mirror of
https://shylinux.com/x/icebergs
synced 2025-06-26 10:27:31 +08:00
add some
This commit is contained in:
parent
e67d59d310
commit
e6e89563ef
@ -59,7 +59,7 @@ func init() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func UserInfo(m *ice.Message, name ice.Any, key, meta string) (value string) {
|
func UserInfo(m *ice.Message, name ice.Any, key, meta string) (value string) {
|
||||||
if m.Cmd(USER, kit.Select(m.Option(ice.MSG_USERNAME), name), func(val ice.Maps) { value = val[key] }).Length() == 0 && kit.Format(name) == m.Option(ice.MSG_USERNAME) {
|
if m.Cmd(USER, kit.Select(m.Option(ice.MSG_USERNAME), name), func(val ice.Maps) { value = val[key] }).Length() == 0 || value == "" {
|
||||||
return m.Option(meta)
|
return m.Option(meta)
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user