mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 19:22:45 +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):
|
||||
"""Returns True if nick1 == nick2 according to IRC case rules."""
|
||||
assert isinstance(nick1, basestring)
|
||||
assert isinstance(nick2, basestring)
|
||||
return toLower(nick1) == toLower(nick2)
|
||||
|
||||
nickEqual = strEqual
|
||||
|
Loading…
Reference in New Issue
Block a user