mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-24 19:52:53 +01:00
Irc: use int values for ircmatch casemapping
The ircmatch version with casemapping variables hasn't been released on pip yet.
(cherry picked from commit 39675e15e8
)
This commit is contained in:
parent
3b62d0af3e
commit
795c163a69
@ -924,7 +924,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
|
||||
|
Loading…
Reference in New Issue
Block a user