3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-27 21:19:31 +01:00

relay: Don't send empty user mode changes

This commit is contained in:
James Lu 2015-09-01 22:13:29 -07:00
parent 4f40faeaf0
commit 2f760c8c92

View File

@ -637,9 +637,8 @@ def handle_mode(irc, numeric, command, args):
elif ('-o', None) in modes:
modes.append(('-%s' % hideoper_mode, None))
remoteuser = getRemoteUser(irc, remoteirc, target, spawnIfMissing=False)
if remoteuser is None:
continue
remoteirc.proto.modeClient(remoteirc, remoteuser, remoteuser, modes)
if remoteuser and modes:
remoteirc.proto.modeClient(remoteirc, remoteuser, remoteuser, modes)
utils.add_hook(handle_mode, 'MODE')