From c6a8cebc2d6a4d80150d776c7d60c681016ad301 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Wed, 30 Jul 2003 11:04:29 +0000 Subject: [PATCH] Slight optimization in getCallback. --- src/irclib.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/irclib.py b/src/irclib.py index ac88684e0..a1a5eb750 100644 --- a/src/irclib.py +++ b/src/irclib.py @@ -375,8 +375,9 @@ class Irc(object): self.callbacks.append(callback) def getCallback(self, name): + name = name.lower() for callback in self.callbacks: - if callback.name() == name: + if callback.name().lower() == name: return callback else: return None