diff --git a/protocols/ircs2s_common.py b/protocols/ircs2s_common.py index d50c959..217b27c 100644 --- a/protocols/ircs2s_common.py +++ b/protocols/ircs2s_common.py @@ -86,7 +86,7 @@ class IRCS2SProtocol(Protocol): # P10: # <- ABAAA P AyAAA :privmsg text # <- ABAAA O AyAAA :notice text - target = args[0] + target = self._getUid(args[0]) # Coerse =#channel from Charybdis op moderated +z to @#channel. if target.startswith('='): diff --git a/protocols/unreal.py b/protocols/unreal.py index fbdba61..b072464 100644 --- a/protocols/unreal.py +++ b/protocols/unreal.py @@ -548,15 +548,6 @@ class UnrealProtocol(TS6BaseProtocol): self.irc.cmodes.update({'halfop': 'h', 'admin': 'a', 'owner': 'q', 'op': 'o', 'voice': 'v'}) - def handle_privmsg(self, source, command, args): - # Convert nicks to UIDs, where they exist. - target = self._getUid(args[0]) - # We use lowercase channels internally, but uppercase UIDs. - if utils.isChannel(target): - target = self.irc.toLower(target) - return {'target': target, 'text': args[1]} - handle_notice = handle_privmsg - def handle_join(self, numeric, command, args): """Handles the UnrealIRCd JOIN command.""" # <- :GL JOIN #pylink,#test