From e687bb0a78fce6fd6446c5a0655e1ec037120b26 Mon Sep 17 00:00:00 2001 From: James Lu Date: Sun, 3 Apr 2016 12:38:38 -0700 Subject: [PATCH] unreal: remove outfilter hack, this doesn't handle text including PUIDs properly Reverts part of 44dc856ffaa4af4ee7918d7e6129e210b7842ca2. --- protocols/unreal.py | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/protocols/unreal.py b/protocols/unreal.py index 7678277..0e13a9f 100644 --- a/protocols/unreal.py +++ b/protocols/unreal.py @@ -56,27 +56,6 @@ class UnrealProtocol(TS6BaseProtocol): log.warning('(%s) mixed_link is experimental and may cause problems. ' 'You have been warned!', self.irc.name) - def _send(self, source, msg): - """ - Sends a TS6-style raw command from a source numeric to the self.irc connection given. - - This optionally provides the REALLY BAD HACK FOR UNREAL 3.2 SUPPORT edition, which - mangles message targets from pseudo UIDs to the target's nick. - """ - - if self.mixed_link: - args = msg.split(" ") - - for idx, arg in enumerate(args[:-1]): - # Look at every arg except the last one, which is usually message - # text or whatnot. For each, check if the argument is in the user - # DB and has a @ in it, since we reserve those for PUIDs. - if arg in self.irc.users and '@' in arg: - args[idx] = self.irc.users[arg].nick - msg = ' '.join(args) - - self.irc.send(':%s %s' % (source, msg)) - ### OUTGOING COMMAND FUNCTIONS def spawnClient(self, nick, ident='null', host='null', realhost=None, modes=set(), server=None, ip='0.0.0.0', realname=None, ts=None, opertype='IRC Operator',