mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +01:00
Added a couple asserts.
This commit is contained in:
parent
e4fa4dec7b
commit
eac5d2f9f8
@ -106,6 +106,8 @@ def toLower(s, casemapping=None):
|
|||||||
|
|
||||||
def strEqual(nick1, nick2):
|
def strEqual(nick1, nick2):
|
||||||
"""Returns True if nick1 == nick2 according to IRC case rules."""
|
"""Returns True if nick1 == nick2 according to IRC case rules."""
|
||||||
|
assert isinstance(nick1, basestring)
|
||||||
|
assert isinstance(nick2, basestring)
|
||||||
return toLower(nick1) == toLower(nick2)
|
return toLower(nick1) == toLower(nick2)
|
||||||
|
|
||||||
nickEqual = strEqual
|
nickEqual = strEqual
|
||||||
|
Loading…
Reference in New Issue
Block a user