home · contact · privacy
From inside channel window allow re-join with mere /join sans args.
authorChristian Heller <c.heller@plomlompom.de>
Tue, 2 Sep 2025 09:47:26 +0000 (11:47 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Tue, 2 Sep 2025 09:47:26 +0000 (11:47 +0200)
ircplom/client_tui.py

index 2961f6ee1b6ee7a2ef23d8d1958a03e604248aa5..b506d75b068fce1e95fb03641460bc180f87383d 100644 (file)
@@ -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,))