equal
deleted
inserted
replaced
115 |
115 |
116 pep_incoming_message_handler = lm.message_handler.new ( |
116 pep_incoming_message_handler = lm.message_handler.new ( |
117 function ( conn, mess ) |
117 function ( conn, mess ) |
118 local e = mess:child ( 'event' ) |
118 local e = mess:child ( 'event' ) |
119 if e and e:attribute ( 'xmlns' ) == 'http://jabber.org/protocol/pubsub#event' then |
119 if e and e:attribute ( 'xmlns' ) == 'http://jabber.org/protocol/pubsub#event' then |
120 local enable = yesno ( main.option ( 'pep_notification' ) ) |
120 local enable = yesno ( main.option ( 'lua_pep_notification' ) ) |
121 if enable == false then |
121 if enable == false then |
122 return true |
122 return true |
123 end |
123 end |
124 local is = e:child ( 'items' ) |
124 local is = e:child ( 'items' ) |
125 if is then |
125 if is then |