mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +01:00
Slight optimization in getCallback.
This commit is contained in:
parent
33f2818398
commit
c6a8cebc2d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user