3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 01:09:22 +01:00

unreal: remove handle_privmsg/handle_notice override

This commit is contained in:
James Lu 2017-06-02 07:56:22 -07:00
parent a32d937b91
commit 6ef3bab0fc
2 changed files with 1 additions and 10 deletions

View File

@ -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('='):

View File

@ -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