From: Christian Heller Date: Tue, 2 Sep 2025 09:47:26 +0000 (+0200) Subject: From inside channel window allow re-join with mere /join sans args. X-Git-Url: https://plomlompom.com/repos/day?a=commitdiff_plain;h=7dae9fd76d6f32850cb2e471a508edec192399b5;p=ircplom From inside channel window allow re-join with mere /join sans args. --- diff --git a/ircplom/client_tui.py b/ircplom/client_tui.py index 2961f6e..b506d75 100644 --- a/ircplom/client_tui.py +++ b/ircplom/client_tui.py @@ -181,8 +181,11 @@ class _ChatWindow(_ClientWindow): class _ChannelWindow(_ChatWindow): + def cmd__join(self, channel='') -> None: + super().cmd__join(channel if channel else self.chatname) + def cmd__part(self) -> None: - 'Attempt joining a channel.' + 'Attempt parting channel.' self._send_msg('PART', (self.chatname,))