Software /
code /
prosody
Diff
plugins/mod_admin_telnet.lua @ 7471:3631d259bb85
mod_admin_telnet: rename variable to make it defined (room -> room_name)
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Sat, 09 Jul 2016 00:47:55 +0800 |
parent | 7090:7aa37d70944b |
child | 7474:701989ab904f |
line wrap: on
line diff
--- a/plugins/mod_admin_telnet.lua Sat Jul 09 00:46:28 2016 +0800 +++ b/plugins/mod_admin_telnet.lua Sat Jul 09 00:47:55 2016 +0800 @@ -957,11 +957,11 @@ 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