Comparison

mod_onhold/mod_onhold.lua @ 1343:7dbde05b48a9

all the things: Remove trailing whitespace
author Florian Zeitz <florob@babelmonkeys.de>
date Tue, 11 Mar 2014 18:44:01 +0100
parent 2:b8012f99acfb
comparison
equal deleted inserted replaced
1342:0ae065453dc9 1343:7dbde05b48a9
1 -- Prosody IM 1 -- Prosody IM
2 -- Copyright (C) 2008-2009 Matthew Wild 2 -- Copyright (C) 2008-2009 Matthew Wild
3 -- Copyright (C) 2008-2009 Waqas Hussain 3 -- Copyright (C) 2008-2009 Waqas Hussain
4 -- Copyright (C) 2009 Jeff Mitchell 4 -- Copyright (C) 2009 Jeff Mitchell
5 -- 5 --
6 -- This project is MIT/X11 licensed. Please see the 6 -- This project is MIT/X11 licensed. Please see the
7 -- COPYING file in the source package for more information. 7 -- COPYING file in the source package for more information.
8 -- 8 --
9 9
10 local datamanager = require "util.datamanager"; 10 local datamanager = require "util.datamanager";
46 if event.origin.presence then return nil; end 46 if event.origin.presence then return nil; end
47 local session = event.origin; 47 local session = event.origin;
48 local node, host = session.username, session.host; 48 local node, host = session.username, session.host;
49 local from; 49 local from;
50 local de_stanza; 50 local de_stanza;
51 51
52 local data = datamanager.list_load(node, host, "onhold"); 52 local data = datamanager.list_load(node, host, "onhold");
53 local newdata = {}; 53 local newdata = {};
54 if not data then return nil; end 54 if not data then return nil; end
55 for _, stanza in ipairs(data) do 55 for _, stanza in ipairs(data) do
56 de_stanza = st.deserialize(stanza); 56 de_stanza = st.deserialize(stanza);