# HG changeset patch # User Matthew Wild # Date 1366918615 -3600 # Node ID 06e188268df1fe34466bfe43bebe113298858ed6 # Parent 0220093e34fad59b61d810a678af68d64d5e06b7 MUC: add __tostring on room metatable diff -r 0220093e34fa -r 06e188268df1 plugins/muc/muc.lib.lua --- a/plugins/muc/muc.lib.lua Thu Apr 25 17:50:22 2013 +0200 +++ b/plugins/muc/muc.lib.lua Thu Apr 25 20:36:55 2013 +0100 @@ -88,6 +88,10 @@ 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";