From 7d44088223acacd848349634200a6e2b8ab1383a Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Thu, 27 Mar 2003 20:38:40 +0000 Subject: [PATCH] Fixed IndexError in Irc.removeCallback --- src/irclib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/irclib.py b/src/irclib.py index 4502e850a..b16422d6c 100644 --- a/src/irclib.py +++ b/src/irclib.py @@ -280,7 +280,7 @@ class Irc(object): toRemove.append(i) if toRemove: for i in reviter(range(len(self.callbacks))): - if toRemove[-1] == i: + if toRemove and toRemove[-1] == i: toRemove.pop() ret.append(self.callbacks.pop(i)) return ret