an experimental irc client

irc: only request chat history when supported

Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>

+1
+1
src/irc.zig
··· 785 785 786 786 /// fetch the history for the provided channel. 787 787 pub fn requestHistory(self: *Client, cmd: ChatHistoryCommand, channel: *Channel) !void { 788 + if (!self.caps.@"draft/chathistory") return; 788 789 if (channel.history_requested) return; 789 790 790 791 channel.history_requested = true;