Fixed minor bug in IrcMsgQueue and removed needless if statement

This commit is contained in:
Jeremy Fincher 2003-03-31 22:21:42 +00:00
parent a52a1fe6d6
commit df77cfaccf
1 changed files with 4 additions and 4 deletions

View File

@ -101,7 +101,8 @@ class IrcMsgQueue(object):
self.queue = []
def enqueueMsg(self, msg):
if msg in self.msgs and not world.startup:
if msg in self.msgs:
if not world.startup:
debug.debugMsg('Not adding msg %s to queue' % msg, 'normal')
else:
self.msgs.add(msg)
@ -110,7 +111,6 @@ class IrcMsgQueue(object):
def dequeueMsg(self):
if self.queue:
msg = self.queue.pop(0)
if msg in self.msgs:
self.msgs.remove(msg)
return msg
else: