mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-27 21:19:31 +01:00
nefarious: actually check RECVPASS
This commit is contained in:
parent
c379287482
commit
25aacbd1fa
@ -850,6 +850,12 @@ class P10Protocol(Protocol):
|
||||
# no IRCds can ever connect behind us...
|
||||
self._send(self.irc.sid, 'Z %s %s %s %s' % (target, orig_pingtime, timediff, currtime))
|
||||
|
||||
def handle_pass(self, source, command, args):
|
||||
"""Handles authentication with our uplink."""
|
||||
# <- PASS :testpass
|
||||
if args[0] != self.irc.serverdata['recvpass']:
|
||||
raise ProtocolError("Error: RECVPASS from uplink does not match configuration!")
|
||||
|
||||
def handle_pong(self, source, command, args):
|
||||
"""Handles incoming PONGs."""
|
||||
# <- AB Z AB :Ay
|
||||
|
Loading…
Reference in New Issue
Block a user