home · contact · privacy
Remove overloading of /connect to simplify things, avoid confusion.
authorChristian Heller <c.heller@plomlompom.de>
Wed, 6 Aug 2025 13:16:53 +0000 (15:16 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Wed, 6 Aug 2025 13:16:53 +0000 (15:16 +0200)
ircplom/client_tui.py

index b602b877921a728b6aa3c2938aeb3038b1fb4e7c..af1d8be73336be8bc9de6a944f250bebdf08daf1 100644 (file)
@@ -9,8 +9,6 @@ from ircplom.irc_conn import IrcMessage
 from ircplom.client import (CHAT_GLOB, IrcConnSetup, Client, ClientIdMixin,
                             ClientQueueMixin, NewClientEvent)
 
-
-CMD_SHORTCUTS['connect'] = 'window.connect'
 CMD_SHORTCUTS['disconnect'] = 'window.disconnect'
 CMD_SHORTCUTS['nick'] = 'window.nick'
 CMD_SHORTCUTS['privmsg'] = 'window.privmsg'
@@ -53,16 +51,9 @@ class _ClientWindow(Window, ClientQueueMixin):
         'Send QUIT command to server.'
         self._send_msg('QUIT', (quit_msg,))
 
-    def cmd__connect(self,
-                     host_port: str = '',
-                     nickname_pw: str = '',
-                     realname: str = ''
-                     ) -> None:
-        'Depending on number of args, attempt new connect, or reconnection.'
-        if host_port:
-            self._parent.cmd__connect(host_port, nickname_pw, realname)
-        else:
-            self._cputs('start_connecting')
+    def cmd__reconnect(self) -> None:
+        'Attempt reconnection.'
+        self._cputs('start_connecting')
 
     def cmd__nick(self, new_nick: str) -> None:
         'Attempt nickname change.'