Comparison

mod_adhoc/adhoc/mod_adhoc.lua @ 109:9b63fd1196c0

mod_adhoc_cmd*: Don't explicitly remove items. Handled by Prosody itself already mod_adhoc: Remove superfluous space
author Florian Zeitz <florob@babelmonkeys.de>
date Wed, 09 Dec 2009 23:08:19 +0100
parent 93:611d16867410
child 121:a9898f13c89e
comparison
equal deleted inserted replaced
108:4c2b35e3d979 109:9b63fd1196c0
48 end 48 end
49 end 49 end
50 end, 500); 50 end, 500);
51 51
52 module:hook("item-added/adhoc", function (event) 52 module:hook("item-added/adhoc", function (event)
53 commands[ # commands + 1] = event.item; 53 commands[ #commands + 1] = event.item;
54 end, 500); 54 end, 500);
55 55
56 local _G = _G; 56 local _G = _G;
57 local t_remove = _G.table.remove; 57 local t_remove = _G.table.remove;
58 module:hook("item-removed/adhoc", function (event) 58 module:hook("item-removed/adhoc", function (event)