3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-25 12:12:53 +01:00

protocols: remove extraneous "Error: " from exception messages

This commit is contained in:
James Lu 2017-07-02 22:52:46 -07:00
parent c9272c25ce
commit f163d7ddde
3 changed files with 3 additions and 3 deletions

View File

@ -601,7 +601,7 @@ class InspIRCdProtocol(TS6BaseProtocol):
if args[1] != self.serverdata['recvpass']: if args[1] != self.serverdata['recvpass']:
# Check if recvpass is correct # Check if recvpass is correct
raise ProtocolError('Error: recvpass from uplink server %s does not match configuration!' % servername) raise ProtocolError('recvpass from uplink server %s does not match configuration!' % servername)
sdesc = args[-1] sdesc = args[-1]
self.servers[numeric] = Server(None, servername, desc=sdesc) self.servers[numeric] = Server(None, servername, desc=sdesc)

View File

@ -980,7 +980,7 @@ class P10Protocol(IRCS2SProtocol):
"""Handles authentication with our uplink.""" """Handles authentication with our uplink."""
# <- PASS :testpass # <- PASS :testpass
if args[0] != self.serverdata['recvpass']: if args[0] != self.serverdata['recvpass']:
raise ProtocolError("Error: RECVPASS from uplink does not match configuration!") raise ProtocolError("RECVPASS from uplink does not match configuration!")
def handle_burst(self, source, command, args): def handle_burst(self, source, command, args):
"""Handles the BURST command, used for bursting channels on link. """Handles the BURST command, used for bursting channels on link.

View File

@ -450,7 +450,7 @@ class UnrealProtocol(TS6BaseProtocol):
def handle_pass(self, numeric, command, args): def handle_pass(self, numeric, command, args):
# <- PASS :abcdefg # <- PASS :abcdefg
if args[0] != self.serverdata['recvpass']: if args[0] != self.serverdata['recvpass']:
raise ProtocolError("Error: RECVPASS from uplink does not match configuration!") raise ProtocolError("RECVPASS from uplink does not match configuration!")
def handle_ping(self, numeric, command, args): def handle_ping(self, numeric, command, args):
if numeric == self.uplink: if numeric == self.uplink: