equal
deleted
inserted
replaced
193 print ( 'List of incoming streams:' ) |
193 print ( 'List of incoming streams:' ) |
194 for sid, data in pairs ( receiving_files ) do |
194 for sid, data in pairs ( receiving_files ) do |
195 print ( sid .. ': ' .. ( data.name or '(not set)' ) .. ' [' .. data.status .. ']' ) |
195 print ( sid .. ': ' .. ( data.name or '(not set)' ) .. ' [' .. data.status .. ']' ) |
196 end |
196 end |
197 end |
197 end |
198 end ) |
198 end, { "send", "accept", "reject", "del" } ) |
199 |
199 |
200 commands_help['ibb'] = "[[-t target_jid] send filename | accept sid filename | reject sid filename | del sid]\n\nRequests, accepts or rejects sending file via in-band bytestream." |
200 commands_help['ibb'] = "[[-t target_jid] send filename | accept sid filename | reject sid filename | del sid]\n\nRequests, accepts or rejects sending file via in-band bytestream." |
201 |
201 |
|
202 hooks_d['hook-post-connect'].xep0047 = |
|
203 function ( args ) |
|
204 lm.connection.bless( main.connection () ):handler ( ibb_incoming_iq_handler, 'iq', 'normal' ) |
|
205 main.add_feature ( 'http://jabber.org/protocol/ibb' ) |
|
206 ibb_handler_registered = true |
|
207 hooks_d['hook-post-connect'].xep0047 = nil |
|
208 hooks_d['hook-quit'].xep0047 = |
|
209 function ( args ) |
|
210 if ibb_handler_registered then |
|
211 lm.connection.bless( main.connection () ):handler ( ibb_incoming_iq_handler, 'iq' ) |
|
212 end |
|
213 end |
|
214 end |
|
215 |
202 -- vim: se ts=4: -- |
216 -- vim: se ts=4: -- |