3
0
mirror of https://github.com/jlu5/PyLink.git synced 2025-02-02 15:44:06 +01:00

unreal: remove bad check for users connecting via IPv4

This fixes a crash when... anyone using IPv4 connects.
This commit is contained in:
James Lu 2016-01-23 12:57:10 -08:00
parent 2335065bff
commit 3c3ae104ba

View File

@ -352,8 +352,6 @@ class UnrealProtocol(TS6BaseProtocol):
# in a line, should it be mirrored to other networks.
if ip.startswith(':'):
ip = '0' + ip
else:
raise ProtocolError("Invalid number of bits in IP address field (got %s, expected 4 or 16)." % len(ipbits))
realname = args[-1]
self.irc.users[uid] = IrcUser(nick, ts, uid, ident, host, realname, realhost, ip)