Software /
code /
prosody
Comparison
plugins/mod_presence.lua @ 7345:0c69305ab525
mod_presence: Fix variable name
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 08 Apr 2016 17:14:58 +0200 |
parent | 7344:81efa212db1e |
child | 7433:7eec6f3c7300 |
comparison
equal
deleted
inserted
replaced
7344:81efa212db1e | 7345:0c69305ab525 |
---|---|
362 local username = event.username; | 362 local username = event.username; |
363 local session = event.origin; | 363 local session = event.origin; |
364 local roster = event.roster or session and session.roster; | 364 local roster = event.roster or session and session.roster; |
365 local jid = event.jid; | 365 local jid = event.jid; |
366 local item = event.item; | 366 local item = event.item; |
367 local from_jid = origin.full_jid or (username .. "@" .. module.host); | 367 local from_jid = session.full_jid or (username .. "@" .. module.host); |
368 | 368 |
369 local subscription = item and item.subscription or "none"; | 369 local subscription = item and item.subscription or "none"; |
370 local ask = item and item.ask; | 370 local ask = item and item.ask; |
371 local pending = roster and roster[false].pending[jid]; | 371 local pending = roster and roster[false].pending[jid]; |
372 | 372 |