Change message_filter.py _name to "Filter"

This commit is contained in:
jesopo 2019-06-10 14:43:14 +01:00
parent 807e239a2b
commit 1e03a40f8f

View file

@ -2,6 +2,8 @@ import re
from src import ModuleManager, utils from src import ModuleManager, utils
class Module(ModuleManager.BaseModule): class Module(ModuleManager.BaseModule):
_name = "Filter"
def _get_filters(self, server, target): def _get_filters(self, server, target):
filters = server.get_setting("message-filters", []) filters = server.get_setting("message-filters", [])
filters.extend(target.get_setting("message-filters", [])) filters.extend(target.get_setting("message-filters", []))