Skip to content

Commit 40cbe74

Browse files
committed
irc: Add QUIT handling
This closes the connection if the client sends quit In particular it allows irssi to exit quickly on /quit as it waits for servers to close connections (added in the middle to not causes conflicts with other in flight PRs, might want to reorder these alphabetically or something later)
1 parent ebdcce8 commit 40cbe74

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ircd/proto.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,10 @@ pub async fn ircd_sync_read(
222222
}
223223
}
224224
}
225+
Command::QUIT(msg) => {
226+
info!("QUIT {}", msg.unwrap_or_default());
227+
break;
228+
}
225229
Command::ChannelMODE(chan, modes) if modes.is_empty() => {
226230
if let Err(e) = matrirc
227231
.irc()

0 commit comments

Comments
 (0)