equal
deleted
inserted
replaced
85 local function getText(stanza, path) return getUsingPath(stanza, path, true); end |
85 local function getText(stanza, path) return getUsingPath(stanza, path, true); end |
86 ----------- |
86 ----------- |
87 |
87 |
88 local room_mt = {}; |
88 local room_mt = {}; |
89 room_mt.__index = room_mt; |
89 room_mt.__index = room_mt; |
|
90 |
|
91 function room_mt:__tostring() |
|
92 return "MUC room ("..self.jid..")"; |
|
93 end |
90 |
94 |
91 function room_mt:get_default_role(affiliation) |
95 function room_mt:get_default_role(affiliation) |
92 if affiliation == "owner" or affiliation == "admin" then |
96 if affiliation == "owner" or affiliation == "admin" then |
93 return "moderator"; |
97 return "moderator"; |
94 elseif affiliation == "member" then |
98 elseif affiliation == "member" then |