From 518f32c4eced7d5e8e06432799a5fd3482a906e7 Mon Sep 17 00:00:00 2001 From: jesopo Date: Fri, 8 Feb 2019 17:32:00 +0000 Subject: [PATCH] Fix 2 misspellings of "capabilities" and fix having not changed a variable name --- modules/line_handler.py | 6 +++--- 1 file 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",