Software /
code /
verse
Comparison
plugins/disco.lua @ 474:fca0c7672148
disco: Remove stray print()
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 17 Mar 2023 11:12:12 +0000 |
parent | 473:b2198cd64c5a |
child | 475:68a4fb45afbc |
comparison
equal
deleted
inserted
replaced
473:b2198cd64c5a | 474:fca0c7672148 |
---|---|
313 local function scan_identities_for_service(service_jid) | 313 local function scan_identities_for_service(service_jid) |
314 local service_disco_info = stream.disco.cache[service_jid]; | 314 local service_disco_info = stream.disco.cache[service_jid]; |
315 if service_disco_info then | 315 if service_disco_info then |
316 for identity in pairs(service_disco_info.identities) do | 316 for identity in pairs(service_disco_info.identities) do |
317 local category, type = identity:match("^(.*)/(.*)$"); | 317 local category, type = identity:match("^(.*)/(.*)$"); |
318 print(service_jid, category, type) | |
319 stream:event("disco/service-discovered/"..category, { | 318 stream:event("disco/service-discovered/"..category, { |
320 type = type, jid = service_jid; | 319 type = type, jid = service_jid; |
321 }); | 320 }); |
322 end | 321 end |
323 end | 322 end |