core.componentmanager: Refactor a little to make XEP-0114 plugin a little simpler
core.componentmanager: Refactor a little to make XEP-0114 plugin a little simpler

sarumjanuch/prosody,sarumjanuch/prosody