🏡 index : ~doyle/titanirc.git

author Jordan Doyle <jordan@doyle.la> 2023-01-12 0:42:00.0 +00:00:00
committer Jordan Doyle <jordan@doyle.la> 2023-01-12 0:42:00.0 +00:00:00
commit
6e153814f682219b99543106ec08b8b01e2a2dda [patch]
tree
4cb1e2c5d46b0931290e0fd5a27851d9888d095d
parent
7e1f8d71444370478de52925219b4badf3776764
download
6e153814f682219b99543106ec08b8b01e2a2dda.tar.gz

Reply to client PINGs



Diff

 src/client.rs | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/client.rs b/src/client.rs
index 59e5dbe..b9e67a2 100644
--- a/src/client.rs
+++ b/src/client.rs
@@ -574,7 +574,13 @@ impl StreamHandler<Result<irc_proto::Message, ProtocolError>> for Client {
            Command::WHOIS(_, _) => {}
            Command::WHOWAS(_, _, _) => {}
            Command::KILL(_, _) => {}
            Command::PING(_, _) => {}
            Command::PING(v, _) => {
                self.writer.write(Message {
                    tags: None,
                    prefix: None,
                    command: Command::PONG(v, None),
                });
            }
            Command::PONG(_, _) => {
                self.last_active = Instant::now();
            }