Mercurial > prosody-hg
comparison plugins/muc/muc.lib.lua @ 3281:fd6ab269ecc2
MUC: A little modification to improve code analysis.
| author | Waqas Hussain <waqas20@gmail.com> |
|---|---|
| date | Sat, 19 Jun 2010 23:39:29 +0500 |
| parents | eef4f31f2d7b |
| children | bdc325ce9fbc |
comparison
equal
deleted
inserted
replaced
| 3280:eef4f31f2d7b | 3281:fd6ab269ecc2 |
|---|---|
| 3 -- Copyright (C) 2008-2010 Waqas Hussain | 3 -- Copyright (C) 2008-2010 Waqas Hussain |
| 4 -- | 4 -- |
| 5 -- This project is MIT/X11 licensed. Please see the | 5 -- This project is MIT/X11 licensed. Please see the |
| 6 -- COPYING file in the source package for more information. | 6 -- COPYING file in the source package for more information. |
| 7 -- | 7 -- |
| 8 | |
| 9 local select = select; | |
| 10 local pairs, ipairs = pairs, ipairs; | |
| 8 | 11 |
| 9 local datamanager = require "util.datamanager"; | 12 local datamanager = require "util.datamanager"; |
| 10 local datetime = require "util.datetime"; | 13 local datetime = require "util.datetime"; |
| 11 | 14 |
| 12 local jid_split = require "util.jid".split; | 15 local jid_split = require "util.jid".split; |
| 571 origin.send(st.error_reply(stanza, 'cancel', 'bad-request')); | 574 origin.send(st.error_reply(stanza, 'cancel', 'bad-request')); |
| 572 return; | 575 return; |
| 573 end | 576 end |
| 574 local whois_changed = self._data.whois ~= whois | 577 local whois_changed = self._data.whois ~= whois |
| 575 self._data.whois = whois | 578 self._data.whois = whois |
| 576 module:log('debug', 'whois=%s', tostring(whois)) | 579 module:log('debug', 'whois=%s', whois) |
| 577 | 580 |
| 578 local password = fields['muc#roomconfig_roomsecret']; | 581 local password = fields['muc#roomconfig_roomsecret']; |
| 579 if password then | 582 if password then |
| 580 self:set_password(password); | 583 self:set_password(password); |
| 581 end | 584 end |
