muc: refactor determining message type
muc: refactor determining message type

noonien-d/wocky,freedesktop-unofficial-mirror/wocky,noonien-d/wocky,noonien-d/wocky,freedesktop-unofficial-mirror/wocky,freedesktop-unofficial-mirror/wocky