mirror of
https://github.com/progval/irctest.git
synced 2025-04-04 22:39:50 +00:00
Don't send empty CAP REQ
This commit is contained in:
@ -331,7 +331,7 @@ class BaseServerTestCase(_IrcTestCase):
|
||||
def connectClient(self, nick, name=None, capabilities=None,
|
||||
skip_if_cap_nak=False):
|
||||
client = self.addClient(name)
|
||||
if capabilities is not None:
|
||||
if capabilities is not None and 0 < len(capabilities):
|
||||
self.sendLine(client, 'CAP REQ :{}'.format(' '.join(capabilities)))
|
||||
m = self.getRegistrationMessage(client)
|
||||
try:
|
||||
|
@ -38,7 +38,7 @@ class EchoMessageTestCase(cases.BaseServerTestCase):
|
||||
self.sendLine(1, 'JOIN #chan')
|
||||
|
||||
if not solo:
|
||||
capabilities = ['server-time'] if server_time else []
|
||||
capabilities = ['server-time'] if server_time else None
|
||||
self.connectClient('qux', capabilities=capabilities)
|
||||
self.sendLine(2, 'JOIN #chan')
|
||||
|
||||
|
Reference in New Issue
Block a user