Sam, that sounds like Snikket. ^F here for the world "invite" https://github.com/snikket-im/snikket-server/blob/master/ansible/files/prosody.cfg.lua
It "just works" :)
s/world/word/