3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-25 04:02:45 +01:00

hybrid: prettier logging, fix wrong argument being passed to IrcUser

This commit is contained in:
James Lu 2016-04-08 20:46:03 -07:00
parent b3447b74c2
commit e4cd028e86

View File

@ -185,13 +185,14 @@ class HybridProtocol(TS6Protocol):
ts, modes, ident, host, ip, uid, account, realname = args[2:10] ts, modes, ident, host, ip, uid, account, realname = args[2:10]
if account == '*': if account == '*':
account = None account = None
log.debug('(%s) handle_uid got args: nick=%s ts=%s uid=%s ident=%s ' log.debug('(%s) handle_uid: got args nick=%s ts=%s uid=%s ident=%s '
'host=%s realname=%s ip=%s', self.irc.name, nick, ts, uid, 'host=%s realname=%s ip=%s', self.irc.name, nick, ts, uid,
ident, host, realname, ip) ident, host, realname, ip)
self.irc.users[uid] = IrcUser(nick, ts, uid, ident, host, realname, realname, ip) self.irc.users[uid] = IrcUser(nick, ts, uid, ident, host, realname, host, 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('(%s) handle_uid: Applying modes %s for %s', self.irc.name, parsedmodes, uid)
utils.applyModes(self.irc, uid, parsedmodes) utils.applyModes(self.irc, uid, parsedmodes)
self.irc.servers[numeric].users.add(uid) self.irc.servers[numeric].users.add(uid)