aboutsummaryrefslogtreecommitdiff
path: root/modules/line_handler.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-02-08 17:32:00 +0000
committerGravatar jesopo2019-02-08 17:32:00 +0000
commit518f32c4eced7d5e8e06432799a5fd3482a906e7 (patch)
tree7e35bf2e328e2b08aedbbfa98e2cec7cca037c0a /modules/line_handler.py
parentRequest CAPs we support when we see them advertised with `CAP NEW` (diff)
signature
Fix 2 misspellings of "capabilities" and fix having not changed a variable name
Diffstat (limited to 'modules/line_handler.py')
-rw-r--r--modules/line_handler.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/line_handler.py b/modules/line_handler.py
index 7843221f..f786cff0 100644
--- a/modules/line_handler.py
+++ b/modules/line_handler.py
@@ -279,7 +279,7 @@ class Module(ModuleManager.BaseModule):
else:
event["server"].disconnect()
- def _match_caps(self, cabilities):
+ def _match_caps(self, capabilities):
return set(capabilities) & CAPABILITIES
# the server is telling us about its capabilities!
@@ -294,9 +294,9 @@ class Module(ModuleManager.BaseModule):
event["server"].server_capabilities.update(capabilities)
if not is_multiline:
matched_caps = self._match_caps(
- list(event["server"].server_capbilities.keys()))
+ list(event["server"].server_capabilities.keys()))
- if matched_capabilities:
+ if matched_caps:
event["server"].queue_capabilities(matched_caps)
self._event(event, "cap.ls",