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
commitf9884fa773f3d56f098218729578b48da374342d (patch)
tree0f587a95354aa54cd7e6365fde97fb1050c6c7da /plugins/muc
parenta54b454be17169b6d377a602d284e654c3e3c6be (diff)
parentb88179151e3fdaaebd542ced76308e38f2acf0df (diff)
downloadprosody-f9884fa773f3d56f098218729578b48da374342d.tar.gz
prosody-f9884fa773f3d56f098218729578b48da374342d.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";