equal
deleted
inserted
replaced
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 |