From 80d7be8c7dca386c535098e163aeda6b41bb5691 Mon Sep 17 00:00:00 2001 From: James Lu Date: Tue, 12 Jul 2016 21:44:35 -0700 Subject: [PATCH] nefarious: add (untested) SVSNICK handler based on P10 docs Closes #269. --- protocols/nefarious.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/protocols/nefarious.py b/protocols/nefarious.py index e946417..59483e9 100644 --- a/protocols/nefarious.py +++ b/protocols/nefarious.py @@ -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 + # 2 + return {'target': args[0], 'newnick': args[1]} + Class = P10Protocol