Software /
code /
verse
Comparison
plugins/vcard_update.lua @ 380:0891b4e27766
Discard trailing whitespace
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 01 May 2015 23:27:29 +0200 |
parent | 250:a5ac643a7fd6 |
child | 392:cdea6a28369e |
comparison
equal
deleted
inserted
replaced
379:d80d27234e38 | 380:0891b4e27766 |
---|---|
30 stream:add_plugin("presence"); | 30 stream:add_plugin("presence"); |
31 | 31 |
32 | 32 |
33 local x_vcard_update; | 33 local x_vcard_update; |
34 | 34 |
35 function update_vcard_photo(vCard) | 35 function update_vcard_photo(vCard) |
36 local data; | 36 local data; |
37 for i=1,#vCard do | 37 for i=1,#vCard do |
38 if vCard[i].name == "PHOTO" then | 38 if vCard[i].name == "PHOTO" then |
39 data = vCard[i][1]; | 39 data = vCard[i][1]; |
40 break | 40 break |