Fix 2 misspellings of "capabilities" and fix having not changed a variable name
This commit is contained in:
parent
15ab772442
commit
518f32c4ec
1 changed files with 3 additions and 3 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue