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

relay: use match_text() to check forcetag_nicks globs

This commit is contained in:
James Lu 2018-06-11 18:51:30 -07:00
parent 73d0e153cf
commit 93fef9b923

View File

@ -141,7 +141,7 @@ def normalize_nick(irc, netname, nick, times_tagged=0, uid=''):
forcetag_nicks |= set(irc.serverdata.get('relay_forcetag_nicks', [])) forcetag_nicks |= set(irc.serverdata.get('relay_forcetag_nicks', []))
log.debug('(%s) relay.normalize_nick: checking if globs %s match %s.', irc.name, forcetag_nicks, nick) log.debug('(%s) relay.normalize_nick: checking if globs %s match %s.', irc.name, forcetag_nicks, nick)
for glob in forcetag_nicks: for glob in forcetag_nicks:
if irc.match_host(glob, nick): if irc.match_text(glob, nick):
# User matched a nick to force tag nicks for. Tag them. # User matched a nick to force tag nicks for. Tag them.
times_tagged = 1 times_tagged = 1
break break