mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-01 09:19:23 +01:00
protocols: remove extraneous "Error: " from exception messages
This commit is contained in:
parent
c9272c25ce
commit
f163d7ddde
@ -601,7 +601,7 @@ class InspIRCdProtocol(TS6BaseProtocol):
|
||||
|
||||
if args[1] != self.serverdata['recvpass']:
|
||||
# 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]
|
||||
self.servers[numeric] = Server(None, servername, desc=sdesc)
|
||||
|
@ -980,7 +980,7 @@ class P10Protocol(IRCS2SProtocol):
|
||||
"""Handles authentication with our uplink."""
|
||||
# <- PASS :testpass
|
||||
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):
|
||||
"""Handles the BURST command, used for bursting channels on link.
|
||||
|
@ -450,7 +450,7 @@ class UnrealProtocol(TS6BaseProtocol):
|
||||
def handle_pass(self, numeric, command, args):
|
||||
# <- PASS :abcdefg
|
||||
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):
|
||||
if numeric == self.uplink:
|
||||
|
Loading…
Reference in New Issue
Block a user