diff options
author | Matthew Wild <mwild1@gmail.com> | 2014-08-28 12:05:18 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2014-08-28 12:05:18 +0100 |
commit | 580f0a2a97b67c80dcb77d386bf469912c5ddfcb (patch) | |
tree | f9b41c73e3cda1b1f3ffe63a3921967eea4a20d6 /util/filters.lua | |
parent | af8588572ea3aef8d7c799315adaaf7c7bb64c4f (diff) | |
parent | e5cad1e21d8d45fb12dc0f3d53767c7fb875c96c (diff) | |
download | prosody-580f0a2a97b67c80dcb77d386bf469912c5ddfcb.tar.gz prosody-580f0a2a97b67c80dcb77d386bf469912c5ddfcb.zip |
Merge 0.10->trunk
Diffstat (limited to 'util/filters.lua')
-rw-r--r-- | util/filters.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/util/filters.lua b/util/filters.lua index c2bdca07..427dcb7c 100644 --- a/util/filters.lua +++ b/util/filters.lua @@ -45,6 +45,8 @@ function add_filter(session, type, callback, priority) if not filter_list then filter_list = {}; session.filters[type] = filter_list; + elseif filter_list[callback] then + return; -- Filter already added end priority = priority or 0; |