Software /
code /
prosody
Comparison
util/filters.lua @ 6368:bd0c8b361589
Merge 0.10->trunk
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 28 Aug 2014 12:05:18 +0100 |
parent | 6367:769a3577dd85 |
child | 6777:5de6b93d0190 |
comparison
equal
deleted
inserted
replaced
6354:bbb4a82db32e | 6368:bd0c8b361589 |
---|---|
43 | 43 |
44 local filter_list = session.filters[type]; | 44 local filter_list = session.filters[type]; |
45 if not filter_list then | 45 if not filter_list then |
46 filter_list = {}; | 46 filter_list = {}; |
47 session.filters[type] = filter_list; | 47 session.filters[type] = filter_list; |
48 elseif filter_list[callback] then | |
49 return; -- Filter already added | |
48 end | 50 end |
49 | 51 |
50 priority = priority or 0; | 52 priority = priority or 0; |
51 | 53 |
52 local i = 0; | 54 local i = 0; |