Comparison

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
comparison
equal deleted inserted replaced
7470:893378a1c03e 7471:3631d259bb85
955 end 955 end
956 return room_name, host; 956 return room_name, host;
957 end 957 end
958 958
959 function def_env.muc:create(room_jid) 959 function def_env.muc:create(room_jid)
960 local room, host = check_muc(room_jid); 960 local room_name, host = check_muc(room_jid);
961 if not room_name then 961 if not room_name then
962 return room_name, host; 962 return room_name, host;
963 end 963 end
964 if not room then return nil, host end 964 if not room_name then return nil, host end
965 if hosts[host].modules.muc.rooms[room_jid] then return nil, "Room exists already" end 965 if hosts[host].modules.muc.rooms[room_jid] then return nil, "Room exists already" end
966 return hosts[host].modules.muc.create_room(room_jid); 966 return hosts[host].modules.muc.create_room(room_jid);
967 end 967 end
968 968
969 function def_env.muc:room(room_jid) 969 function def_env.muc:room(room_jid)