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(); |