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'
'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.'