Mercurial > prosody-hg
comparison plugins/muc/name.lib.lua @ 7121:bb1adaabcff6
MUC: Fix copypaste mistake
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Wed, 03 Feb 2016 02:16:28 +0100 |
| parents | 50b9a7e86de9 |
| children | a0764a8d6b26 |
comparison
equal
deleted
inserted
replaced
| 7120:a6afe52159f1 | 7121:bb1adaabcff6 |
|---|---|
| 29 table.insert(event.form, { | 29 table.insert(event.form, { |
| 30 name = "muc#roomconfig_roomname"; | 30 name = "muc#roomconfig_roomname"; |
| 31 type = "text-single"; | 31 type = "text-single"; |
| 32 label = "Name"; | 32 label = "Name"; |
| 33 }); | 33 }); |
| 34 event.formdata["muc#roomconfig_roomname"] = get_description(event.room) or ""; | 34 event.formdata["muc#roomconfig_roomname"] = get_name(event.room) or ""; |
| 35 end); | 35 end); |
| 36 | 36 |
| 37 module:hook("muc-config-submitted/muc#roomconfig_roomname", function(event) | 37 module:hook("muc-config-submitted/muc#roomconfig_roomname", function(event) |
| 38 if set_name(event.room, event.value) then | 38 if set_name(event.room, event.value) then |
| 39 event.status_codes["104"] = true; | 39 event.status_codes["104"] = true; |
