Fixes issues caused by incorrect user comparisons.
This commit is contained in:
parent
21b8165751
commit
3804faab3b
1 changed files with 3 additions and 0 deletions
|
|
@ -21,6 +21,9 @@ type
|
||||||
proc isOnline*(user: User): bool =
|
proc isOnline*(user: User): bool =
|
||||||
return getTime().toUnix() - user.lastOnline < (60*5)
|
return getTime().toUnix() - user.lastOnline < (60*5)
|
||||||
|
|
||||||
|
proc `==`*(u1, u2: User): bool =
|
||||||
|
u1.name == u2.name
|
||||||
|
|
||||||
when defined(js):
|
when defined(js):
|
||||||
include karax/prelude
|
include karax/prelude
|
||||||
import karaxutils
|
import karaxutils
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue