mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-24 03:33:10 +01:00
nefarious: add (untested) SVSNICK handler based on P10 docs
Closes #269.
This commit is contained in:
parent
db93db7f4e
commit
80d7be8c7d
@ -1281,4 +1281,13 @@ class P10Protocol(IRCS2SProtocol):
|
||||
self.checkCloakChange(target)
|
||||
# We don't need to send any hooks here, checkCloakChange does that for us.
|
||||
|
||||
def handle_svsnick(self, source, command, args):
|
||||
"""Handles SVSNICK (forced nickname change attempts)."""
|
||||
# From Nefarious docs at https://github.com/evilnet/nefarious2/blob/7bd3ac4/doc/p10.txt#L1057
|
||||
# {7SN} *** SVSNICK (non undernet)
|
||||
|
||||
# 1 <target numeric>
|
||||
# 2 <new nick>
|
||||
return {'target': args[0], 'newnick': args[1]}
|
||||
|
||||
Class = P10Protocol
|
||||
|
Loading…
Reference in New Issue
Block a user