Comparison

plugins/disco.lua @ 212:cd2e5eef7a7a

plugins.disco: Increase hook priority. Fixes duplicated disco features.
author Kim Alvefur <zash@zash.se>
date Tue, 16 Aug 2011 02:32:36 +0200
parent 197:7e98cf2c1d8d
child 250:a5ac643a7fd6
comparison
equal deleted inserted replaced
211:837cd09fcf01 212:cd2e5eef7a7a
373 end 373 end
374 end 374 end
375 stream:event("ready"); 375 stream:event("ready");
376 end); 376 end);
377 return true; 377 return true;
378 end, 5); 378 end, 50);
379 379
380 stream:hook("presence-out", function (presence) 380 stream:hook("presence-out", function (presence)
381 if not presence:get_child("c", xmlns_caps) then 381 if not presence:get_child("c", xmlns_caps) then
382 presence:reset():add_child(stream:caps()):reset(); 382 presence:reset():add_child(stream:caps()):reset();
383 end 383 end