mirror of
https://github.com/jlu5/PyLink.git
synced 2025-01-12 05:02:33 +01:00
ts6: record null IPs as 0.0.0.0 instead of 0
This commit is contained in:
parent
3c3ae104ba
commit
fdad7c9c16
@ -481,6 +481,9 @@ class TS6Protocol(TS6BaseProtocol):
|
|||||||
'host=%s realname=%s realhost=%s ip=%s', self.irc.name, nick, ts, uid,
|
'host=%s realname=%s realhost=%s ip=%s', self.irc.name, nick, ts, uid,
|
||||||
ident, host, realname, realhost, ip)
|
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)
|
self.irc.users[uid] = IrcUser(nick, ts, uid, ident, host, realname, realhost, ip)
|
||||||
parsedmodes = utils.parseModes(self.irc, uid, [modes])
|
parsedmodes = utils.parseModes(self.irc, uid, [modes])
|
||||||
log.debug('Applying modes %s for %s', parsedmodes, uid)
|
log.debug('Applying modes %s for %s', parsedmodes, uid)
|
||||||
|
Loading…
Reference in New Issue
Block a user