summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDebarshi Ray <rishi@gnu.org>2011-05-06 02:05:46 +0300
committerDebarshi Ray <rishi@gnu.org>2011-05-06 19:55:54 +0300
commit771b45b483f643008512b49f16adaffa2038cd2e (patch)
tree677de729797d349b54709d9175e6075ecf87b0ff /tests
parent8d9d807fcbfb1078e2a54862f790ff20b2993846 (diff)
downloadtelepathy-idle-771b45b483f643008512b49f16adaffa2038cd2e.tar.gz
idletest: return an empty RPL_WHOISCHANNELS in response to WHOIS
RFC 2812 defines RPL_WHOISCHANNELS as: "<nick> :*( ( "@" / "+" ) <channel> " " )" Therefore, there is the possibility of an empty message even though preliminary testing with some IRC daemons (eg., Freenode, GIMPNet and IRCNet) did not reveal such a scenario. Nevertheless to maintain strict compliance with the RFC we should test for this as well. Fixes: https://bugs.freedesktop.org/34796
Diffstat (limited to 'tests')
-rw-r--r--tests/twisted/idletest.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/twisted/idletest.py b/tests/twisted/idletest.py
index 9785413..9136cbc 100644
--- a/tests/twisted/idletest.py
+++ b/tests/twisted/idletest.py
@@ -80,6 +80,7 @@ class BaseIRCServer(irc.IRC):
self.sendMessage('311', self.nick, self.nick, self.user, 'idle.test.client', '*', ':%s' % self.real_name, prefix='idle.test.server')
if self.rooms:
self.sendMessage('319', self.nick, self.nick, ':%s' % ' '.join(self.rooms), prefix='idle.test.server')
+ self.sendMessage('319', self.nick, self.nick, ':', prefix='idle.test.server')
self.sendMessage('312', self.nick, self.nick, 'idle.test.server', ':Idle Test Server', prefix='idle.test.server')
if self.secure:
self.sendMessage('671', self.nick, self.nick, ':is using a secure connection', prefix='idle.test.server')