3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-24 11:42:51 +01:00

ts6: record null IPs as 0.0.0.0 instead of 0

This commit is contained in:
James Lu 2016-01-23 13:37:15 -08:00
parent 3c3ae104ba
commit fdad7c9c16

View File

@ -481,6 +481,9 @@ class TS6Protocol(TS6BaseProtocol):
'host=%s realname=%s realhost=%s ip=%s', self.irc.name, nick, ts, uid,
ident, host, realname, realhost, ip)
if ip == '0': # IP was invalid; something used for services.
ip = '0.0.0.0'
self.irc.users[uid] = IrcUser(nick, ts, uid, ident, host, realname, realhost, ip)
parsedmodes = utils.parseModes(self.irc, uid, [modes])
log.debug('Applying modes %s for %s', parsedmodes, uid)