Fix 2 misspellings of "capabilities" and fix having not changed a variable name

This commit is contained in:
jesopo 2019-02-08 17:32:00 +00:00
parent 15ab772442
commit 518f32c4ec

View file

@ -279,7 +279,7 @@ class Module(ModuleManager.BaseModule):
else: else:
event["server"].disconnect() event["server"].disconnect()
def _match_caps(self, cabilities): def _match_caps(self, capabilities):
return set(capabilities) & CAPABILITIES return set(capabilities) & CAPABILITIES
# the server is telling us about its capabilities! # the server is telling us about its capabilities!
@ -294,9 +294,9 @@ class Module(ModuleManager.BaseModule):
event["server"].server_capabilities.update(capabilities) event["server"].server_capabilities.update(capabilities)
if not is_multiline: if not is_multiline:
matched_caps = self._match_caps( 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) event["server"].queue_capabilities(matched_caps)
self._event(event, "cap.ls", self._event(event, "cap.ls",