We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c6a718 commit 34c78e5Copy full SHA for 34c78e5
irctest/server_tests/cap.py
@@ -347,8 +347,13 @@ def testCapRemovalByClient(self):
347
self.addClient(1)
348
self.connectClient("sender")
349
self.sendLine(1, "CAP LS 302")
350
- m = self.getRegistrationMessage(1)
351
- if not ({cap1, cap2} <= set(m.params[2].split())):
+ caps = set()
+ while True:
352
+ m = self.getRegistrationMessage(1)
353
+ caps.update(m.params[-1].split())
354
+ if m.params[2] != "*":
355
+ break
356
+ if not ({cap1, cap2} <= caps):
357
raise CapabilityNotSupported(f"{cap1} or {cap2}")
358
self.sendLine(1, f"CAP REQ :{cap1} {cap2}")
359
self.sendLine(1, "nick bar")
0 commit comments