Software /
code /
prosody
Comparison
plugins/muc/name.lib.lua @ 8988:d92b8bc6614c
MUC: Remove empty statement [luacheck]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 07 Jul 2018 17:59:15 +0200 |
parent | 8986:320ae6dbb2e8 |
child | 9034:1c709e3d2e5e |
comparison
equal
deleted
inserted
replaced
8987:596c8c7d98b1 | 8988:d92b8bc6614c |
---|---|
18 if room._data.name == name then return false; end | 18 if room._data.name == name then return false; end |
19 room._data.name = name; | 19 room._data.name = name; |
20 return true; | 20 return true; |
21 end | 21 end |
22 | 22 |
23 local function insert_name_into_form(event); | 23 local function insert_name_into_form(event) |
24 table.insert(event.form, { | 24 table.insert(event.form, { |
25 name = "muc#roomconfig_roomname"; | 25 name = "muc#roomconfig_roomname"; |
26 type = "text-single"; | 26 type = "text-single"; |
27 label = "Name"; | 27 label = "Name"; |
28 value = event.room._data.name; | 28 value = event.room._data.name; |