From 90c39d9ae136f5d8b08d4af2b7b6c9b30588be0a Mon Sep 17 00:00:00 2001 From: Debarshi Ray Date: Tue, 3 May 2011 02:08:26 +0300 Subject: [PATCH 1/2] Handle PART messages in our test IRC server --- tests/twisted/idletest.py | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/tests/twisted/idletest.py b/tests/twisted/idletest.py index c4851df..5d36dfc 100644 --- a/tests/twisted/idletest.py +++ b/tests/twisted/idletest.py @@ -93,6 +93,14 @@ class BaseIRCServer(irc.IRC): self.rooms.append(room) self.sendJoin(room, [self.nick]) + def handlePART(self, args, prefix): + room = args[0] + try: + self.rooms.remove(room) + except ValueError: + pass + self.sendPart(room, self.nick, args[1]) + def sendJoin(self, room, members=[]): members.append(self.nick) -- 1.7.4.4