Software / code / prosody
Comparison
plugins/muc/mod_muc.lua @ 5776:bd0ff8ae98a8
Remove all trailing whitespace
| author | Florian Zeitz <florob@babelmonkeys.de> |
|---|---|
| date | Fri, 09 Aug 2013 17:48:21 +0200 |
| parent | 5692:24e7e58155d8 |
| child | 5807:d7212bd61b60 |
comparison
equal
deleted
inserted
replaced
| 5775:a6c2b8933507 | 5776:bd0ff8ae98a8 |
|---|---|
| 1 -- Prosody IM | 1 -- Prosody IM |
| 2 -- Copyright (C) 2008-2010 Matthew Wild | 2 -- Copyright (C) 2008-2010 Matthew Wild |
| 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 | 8 |
| 9 | 9 |
| 14 local muc_host = module:get_host(); | 14 local muc_host = module:get_host(); |
| 15 local muc_name = module:get_option("name"); | 15 local muc_name = module:get_option("name"); |
| 16 if type(muc_name) ~= "string" then muc_name = "Prosody Chatrooms"; end | 16 if type(muc_name) ~= "string" then muc_name = "Prosody Chatrooms"; end |
| 17 local restrict_room_creation = module:get_option("restrict_room_creation"); | 17 local restrict_room_creation = module:get_option("restrict_room_creation"); |
| 18 if restrict_room_creation then | 18 if restrict_room_creation then |
| 19 if restrict_room_creation == true then | 19 if restrict_room_creation == true then |
| 20 restrict_room_creation = "admin"; | 20 restrict_room_creation = "admin"; |
| 21 elseif restrict_room_creation ~= "admin" and restrict_room_creation ~= "local" then | 21 elseif restrict_room_creation ~= "admin" and restrict_room_creation ~= "local" then |
| 22 restrict_room_creation = nil; | 22 restrict_room_creation = nil; |
| 23 end | 23 end |
| 24 end | 24 end |