Software /
code /
verse
Comparison
plugins/presence.lua @ 404:7c6a610c3ff5
plugins.presence: Fix resending previous presence
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 04 Jun 2016 13:35:23 +0200 |
parent | 250:a5ac643a7fd6 |
child | 405:f065fc1fab0a |
comparison
equal
deleted
inserted
replaced
403:6f4f60ebb796 | 404:7c6a610c3ff5 |
---|---|
8 stream.last_presence = presence; -- Cache non-directed presence | 8 stream.last_presence = presence; -- Cache non-directed presence |
9 end | 9 end |
10 end, 1); | 10 end, 1); |
11 | 11 |
12 function stream:resend_presence() | 12 function stream:resend_presence() |
13 if last_presence then | 13 if self.last_presence then |
14 stream:send(last_presence); | 14 stream:send(self.last_presence); |
15 end | 15 end |
16 end | 16 end |
17 | 17 |
18 function stream:set_status(opts) | 18 function stream:set_status(opts) |
19 local p = verse.presence(); | 19 local p = verse.presence(); |