hopefully this fixes the old users' desc issue

This commit is contained in:
Arya 2023-02-26 21:21:10 +05:30
parent 6df7b83746
commit 02dd770848
Signed by untrusted user: arya
GPG Key ID: 842D12BDA50DF120

View File

@ -76,6 +76,7 @@ func userdata(username, usersonline, ops string) Userinfo {
viper.SetConfigFile(filename)
viper.ReadInConfig()
var user Userinfo
user = Userinfo{}
user.Name = username
user.Created, _ = strconv.Atoi(crdstr)
user.FullName = viper.GetString("fullname")