Services: catch occasional error when removing waiting joins from list

Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
This commit is contained in:
Daniel Folkinshteyn 2011-08-08 18:45:02 -04:00 committed by James McCoy
parent d5648ab534
commit 1e1b39783b
1 changed files with 4 additions and 1 deletions

View File

@ -319,7 +319,10 @@ class Services(callbacks.Plugin):
for netname, m in tmp_wj:
if netname == irc.network:
irc.sendMsg(m)
self.waitingJoins.remove((netname, m,))
try:
self.waitingJoins.remove((netname, m,))
except ValueError:
pass # weird stuff happen sometimes
elif 'not yet authenticated' in s:
# zirc.org has this, it requires an auth code.
email = s.split()[-1]