Add a way to blacklist CAPs per-network (line_handler.py)
This commit is contained in:
parent
7e4c1cadb1
commit
e1c81efa6f
1 changed files with 4 additions and 0 deletions
|
@ -306,6 +306,10 @@ class Module(ModuleManager.BaseModule):
|
||||||
if not is_multiline:
|
if not is_multiline:
|
||||||
matched_caps = self._match_caps(
|
matched_caps = self._match_caps(
|
||||||
list(event["server"].server_capabilities.keys()))
|
list(event["server"].server_capabilities.keys()))
|
||||||
|
blacklisted_caps = event["server"].get_setting(
|
||||||
|
"blacklisted-caps", [])
|
||||||
|
matched_caps = list(
|
||||||
|
set(matched_caps)-set(blacklisted_caps))
|
||||||
|
|
||||||
event["server"].queue_capabilities(matched_caps)
|
event["server"].queue_capabilities(matched_caps)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue