mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-26 04:32:51 +01:00
Irc: mention CIDR matching (#411) and casemappings in matchHost() desc.
This commit is contained in:
parent
4df8567fa6
commit
5fe277f90d
@ -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':
|
||||||
|
Loading…
Reference in New Issue
Block a user