Software /
code /
prosody
Changeset
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 |
parents | 7470:893378a1c03e |
children | 7472:8965ad0aed2c |
files | plugins/mod_admin_telnet.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
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