From 39675e15e870efb890d6923af71e395a925447ca Mon Sep 17 00:00:00 2001 From: James Lu Date: Sat, 23 Jul 2016 21:51:26 -0700 Subject: [PATCH] Irc: use int values for ircmatch casemapping The ircmatch version with casemapping variables hasn't been released on pip yet. --- classes.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/classes.py b/classes.py index b5aaf66..097bd8d 100644 --- a/classes.py +++ b/classes.py @@ -925,7 +925,10 @@ class Irc(): against the target's IP address and real host, respectively. """ # Get the corresponding casemapping value used by ircmatch. - casemapping = getattr(ircmatch, self.proto.casemapping) + if self.proto.casemapping == 'rfc1459': + casemapping = 0 + else: + casemapping = 1 # Try to convert target into a UID. If this fails, it's probably a hostname. target = self.nickToUid(target) or target