Send PING and PONG as 'immediate' lines
This commit is contained in:
parent
4a4d0a37d7
commit
3ac01197f2
1 changed files with 2 additions and 2 deletions
|
@ -307,9 +307,9 @@ class Server(IRCObject.Object):
|
||||||
return self.send(utils.irc.protocol.password(password))
|
return self.send(utils.irc.protocol.password(password))
|
||||||
|
|
||||||
def send_ping(self, nonce: str="hello") -> IRCLine.SentLine:
|
def send_ping(self, nonce: str="hello") -> IRCLine.SentLine:
|
||||||
return self.send(utils.irc.protocol.ping(nonce))
|
return self.send(utils.irc.protocol.ping(nonce), immediate=True)
|
||||||
def send_pong(self, nonce: str="hello") -> IRCLine.SentLine:
|
def send_pong(self, nonce: str="hello") -> IRCLine.SentLine:
|
||||||
return self.send(utils.irc.protocol.pong(nonce))
|
return self.send(utils.irc.protocol.pong(nonce), immediate=True)
|
||||||
|
|
||||||
def try_rejoin(self, event: EventManager.Event):
|
def try_rejoin(self, event: EventManager.Event):
|
||||||
if event["server_id"] == self.id and event["channel_name"
|
if event["server_id"] == self.id and event["channel_name"
|
||||||
|
|
Loading…
Reference in a new issue