mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-01 01:09:22 +01:00
unreal: add svsmode/svs2mode handler
This commit is contained in:
parent
119aa8939b
commit
6601071d35
@ -441,6 +441,16 @@ class UnrealProtocol(TS6BaseProtocol):
|
||||
self.irc.name, args)
|
||||
raise NotImplementedError
|
||||
|
||||
def handle_svsmode(self, numeric, command, args):
|
||||
"""Handle SVSMODE/SVS2MODE, used for setting user modes on others (services)."""
|
||||
# <- :source SVSMODE target +usermodes
|
||||
target = args[0]
|
||||
modes = args[1:]
|
||||
parsedmodes = utils.parseModes(self.irc, numeric, modes)
|
||||
utils.applyModes(self.irc, numeric, parsedmodes)
|
||||
return {'target': numeric, 'modes': parsedmodes}
|
||||
handle_svs2mode = handle_svsmode
|
||||
|
||||
def handle_umode2(self, numeric, command, args):
|
||||
"""Handles UMODE2, used to set user modes on oneself."""
|
||||
parsedmodes = utils.parseModes(self.irc, numeric, args)
|
||||
|
Loading…
Reference in New Issue
Block a user