aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2013-04-25 20:37:51 +0100
committerMatthew Wild <mwild1@gmail.com>2013-04-25 20:37:51 +0100
commit2716bbf64ff4f9c62bb578802de9e16b42d5203d (patch)
tree0f587a95354aa54cd7e6365fde97fb1050c6c7da /plugins/muc
parentc953a057a8fb1e0b0617dd090ab4ff7a643956c3 (diff)
parent55b90a8abd0e65e476c7df3fe0ff437a99607f3e (diff)
downloadprosody-2716bbf64ff4f9c62bb578802de9e16b42d5203d.tar.gz
prosody-2716bbf64ff4f9c62bb578802de9e16b42d5203d.zip
Merge 0.9->trunk
Diffstat (limited to 'plugins/muc')
-rw-r--r--plugins/muc/muc.lib.lua4
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";