Mercurial > prosody-modules
comparison mod_group_bookmarks/mod_group_bookmarks.lua @ 1343:7dbde05b48a9
all the things: Remove trailing whitespace
| author | Florian Zeitz <florob@babelmonkeys.de> |
|---|---|
| date | Tue, 11 Mar 2014 18:44:01 +0100 |
| parents | dcddd9195098 |
| children | 6824a1f3d8c0 |
comparison
equal
deleted
inserted
replaced
| 1342:0ae065453dc9 | 1343:7dbde05b48a9 |
|---|---|
| 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 |
| 82 | 82 |
| 83 if not bookmarks_file then | 83 if not bookmarks_file then |
| 84 module:log("error", "Please specify group_bookmarks_file in your configuration"); | 84 module:log("error", "Please specify group_bookmarks_file in your configuration"); |
| 85 return; | 85 return; |
| 86 end | 86 end |
| 87 | 87 |
| 88 local curr_room; | 88 local curr_room; |
| 89 for line in io.lines(bookmarks_file) do | 89 for line in io.lines(bookmarks_file) do |
| 90 if line:match("^%s*%[.-%]%s*$") then | 90 if line:match("^%s*%[.-%]%s*$") then |
| 91 curr_room = line:match("^%s*%[(.-)%]%s*$"); | 91 curr_room = line:match("^%s*%[(.-)%]%s*$"); |
| 92 if curr_room:match("^%+") then | 92 if curr_room:match("^%+") then |
