mod_carbons/mod_carbons.lua
changeset 1343 7dbde05b48a9
parent 1325 b21236b6b8d8
child 1593 3e4d15ae2133
child 1793 dbce8a7726ef
equal deleted inserted replaced
1342:0ae065453dc9 1343:7dbde05b48a9
    29 local function message_handler(event, c2s)
    29 local function message_handler(event, c2s)
    30 	local origin, stanza = event.origin, event.stanza;
    30 	local origin, stanza = event.origin, event.stanza;
    31 	local orig_type = stanza.attr.type;
    31 	local orig_type = stanza.attr.type;
    32 	local orig_from = stanza.attr.from;
    32 	local orig_from = stanza.attr.from;
    33 	local orig_to = stanza.attr.to;
    33 	local orig_to = stanza.attr.to;
    34 	
    34 
    35 	if not (orig_type == nil
    35 	if not (orig_type == nil
    36 			or orig_type == "normal"
    36 			or orig_type == "normal"
    37 			or orig_type == "chat") then
    37 			or orig_type == "chat") then
    38 		return -- No carbons for messages of type error or headline
    38 		return -- No carbons for messages of type error or headline
    39 	end
    39 	end