projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
1cfa756
)
mod_admin_telnet: rename variable to make it defined (room -> room_name)
author
Anton Shestakov
<av6@dwimlabs.net>
Fri, 8 Jul 2016 16:47:55 +0000
(
00:47
+0800)
committer
Anton Shestakov
<av6@dwimlabs.net>
Fri, 8 Jul 2016 16:47:55 +0000
(
00:47
+0800)
plugins/mod_admin_telnet.lua
patch
|
blob
|
history
diff --git
a/plugins/mod_admin_telnet.lua
b/plugins/mod_admin_telnet.lua
index 9dfbbc7a379c524ad1dcdc79381a6ce2123014e9..b2a013247c7026fa60dbdf6b46e215df9aa6fd97 100644
(file)
--- a/
plugins/mod_admin_telnet.lua
+++ b/
plugins/mod_admin_telnet.lua
@@
-957,11
+957,11
@@
local function check_muc(jid)
end
function def_env.muc:create(room_jid)
- local room, host = check_muc(room_jid);
+ local room
_name
, host = check_muc(room_jid);
if not room_name then
return room_name, host;
end
- if not room then return nil, host end
+ if not room
_name
then return nil, host end
if hosts[host].modules.muc.rooms[room_jid] then return nil, "Room exists already" end
return hosts[host].modules.muc.create_room(room_jid);
end