From fdad7c9c162c8f5910a7e3a0d0c2bd6eae3e03eb Mon Sep 17 00:00:00 2001 From: James Lu Date: Sat, 23 Jan 2016 13:37:15 -0800 Subject: [PATCH] ts6: record null IPs as 0.0.0.0 instead of 0 --- protocols/ts6.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/protocols/ts6.py b/protocols/ts6.py index 4ff138a..2fadabf 100644 --- a/protocols/ts6.py +++ b/protocols/ts6.py @@ -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)