mirror of
https://github.com/jlu5/PyLink.git
synced 2025-01-26 04:04:22 +01:00
unreal: remove handle_privmsg/handle_notice override
This commit is contained in:
parent
a32d937b91
commit
6ef3bab0fc
@ -86,7 +86,7 @@ class IRCS2SProtocol(Protocol):
|
|||||||
# P10:
|
# P10:
|
||||||
# <- ABAAA P AyAAA :privmsg text
|
# <- ABAAA P AyAAA :privmsg text
|
||||||
# <- ABAAA O AyAAA :notice text
|
# <- ABAAA O AyAAA :notice text
|
||||||
target = args[0]
|
target = self._getUid(args[0])
|
||||||
|
|
||||||
# Coerse =#channel from Charybdis op moderated +z to @#channel.
|
# Coerse =#channel from Charybdis op moderated +z to @#channel.
|
||||||
if target.startswith('='):
|
if target.startswith('='):
|
||||||
|
@ -548,15 +548,6 @@ class UnrealProtocol(TS6BaseProtocol):
|
|||||||
self.irc.cmodes.update({'halfop': 'h', 'admin': 'a', 'owner': 'q',
|
self.irc.cmodes.update({'halfop': 'h', 'admin': 'a', 'owner': 'q',
|
||||||
'op': 'o', 'voice': 'v'})
|
'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):
|
def handle_join(self, numeric, command, args):
|
||||||
"""Handles the UnrealIRCd JOIN command."""
|
"""Handles the UnrealIRCd JOIN command."""
|
||||||
# <- :GL JOIN #pylink,#test
|
# <- :GL JOIN #pylink,#test
|
||||||
|
Loading…
Reference in New Issue
Block a user