diff options
author | Matthew Wild <mwild1@gmail.com> | 2013-04-25 20:36:55 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2013-04-25 20:36:55 +0100 |
commit | 2dfc9af3a232c997e4f448560009d90bd89a9922 (patch) | |
tree | b7d4f7e33701c49b63f4a1623412c4b7bbbefe6a /plugins/muc | |
parent | 8d9961c21dc61d0e90462e6f2c4b1d3de60bc676 (diff) | |
download | prosody-2dfc9af3a232c997e4f448560009d90bd89a9922.tar.gz prosody-2dfc9af3a232c997e4f448560009d90bd89a9922.zip |
MUC: add __tostring on room metatable
Diffstat (limited to 'plugins/muc')
-rw-r--r-- | plugins/muc/muc.lib.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua index b6167a19..3af8c766 100644 --- a/plugins/muc/muc.lib.lua +++ b/plugins/muc/muc.lib.lua @@ -88,6 +88,10 @@ local function getText(stanza, path) return getUsingPath(stanza, path, true); en local room_mt = {}; room_mt.__index = room_mt; +function room_mt:__tostring() + return "MUC room ("..self.jid..")"; +end + function room_mt:get_default_role(affiliation) if affiliation == "owner" or affiliation == "admin" then return "moderator"; |