3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 09:19:23 +01:00

Irc: mention CIDR matching (#411) and casemappings in matchHost() desc.

This commit is contained in:
James Lu 2017-02-25 22:26:37 -08:00
parent 4df8567fa6
commit 5fe277f90d

View File

@ -1094,8 +1094,12 @@ class Irc():
Checks whether the given host, or given UID's hostmask matches the given nick!user@host Checks whether the given host, or given UID's hostmask matches the given nick!user@host
glob. glob.
If the target given is a UID, and the ip or realhost options are True, this will also match If the target given is a UID, and the 'ip' or 'realhost' options are True, this will also
against the target's IP address and real host, respectively. match against the target's IP address and real host, respectively.
This function respects IRC casemappings (rfc1459 and ascii). If the given target is a UID,
and the 'ip' option is enabled, the host portion of the glob is also matched as a CIDR
range.
""" """
# Get the corresponding casemapping value used by ircmatch. # Get the corresponding casemapping value used by ircmatch.
if self.proto.casemapping == 'rfc1459': if self.proto.casemapping == 'rfc1459':