util.pluginloader: Return full file path from internal file loader on success, not...
[prosody.git] / util / filters.lua
index f304e71a15f4a2a79a20c738356b5c751baac194..d143666bf8d8f212225d475cdc8312317e746ad4 100644 (file)
@@ -76,4 +76,12 @@ function add_filter_hook(callback)
        t_insert(new_filter_hooks, callback);
 end
 
+function remove_filter_hook(callback)
+       for i=1,#new_filter_hooks do
+               if new_filter_hooks[i] == callback then
+                       t_remove(new_filter_hooks, i);
+               end
+       end
+end
+
 return _M;