Software /
code /
prosody
Changeset
13566:2fb4ce131131
mod_roster: do not store number in attribute
Attributes are strings. That definitely is a number. So we
tostring() it. This is important when the API becomes stricter,
for whatever reason that might happen.
Practically, this moves the overhead of converting to a string
to a place where it is visible.
author | Jonas Schäfer <jonas@wielicki.name> |
---|---|
date | Sat, 16 Nov 2024 09:12:11 +0100 |
parents | 13565:93304fd878b2 |
children | 13567:515ac7e8ae6d |
files | plugins/mod_roster.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_roster.lua Sat Nov 16 14:35:36 2024 +0100 +++ b/plugins/mod_roster.lua Sat Nov 16 09:12:11 2024 +0100 @@ -56,7 +56,7 @@ roster:up(); -- move out from item end end - roster.tags[1].attr.ver = server_ver; + roster.tags[1].attr.ver = tostring(server_ver); end session.send(roster); session.interested = true; -- resource is interested in roster updates