mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-25 04:02:46 +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)
|
self.callbacks.append(callback)
|
||||||
|
|
||||||
def getCallback(self, name):
|
def getCallback(self, name):
|
||||||
|
name = name.lower()
|
||||||
for callback in self.callbacks:
|
for callback in self.callbacks:
|
||||||
if callback.name() == name:
|
if callback.name().lower() == name:
|
||||||
return callback
|
return callback
|
||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
|
Loading…
Reference in New Issue
Block a user