3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-30 14:49:28 +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,8 +637,7 @@ 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
if remoteuser and modes:
remoteirc.proto.modeClient(remoteirc, remoteuser, remoteuser, modes)
utils.add_hook(handle_mode, 'MODE')