From 354f4eceb2a71c7ee5372d96c046a2a4190c9866 Mon Sep 17 00:00:00 2001 From: emdee Date: Wed, 26 Oct 2022 09:13:01 +0000 Subject: [PATCH] Added more groups support --- tox-irc-sync.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tox-irc-sync.py b/tox-irc-sync.py index 9f1145b..20ab935 100644 --- a/tox-irc-sync.py +++ b/tox-irc-sync.py @@ -331,6 +331,7 @@ class SyniTox(Tox): nick = self._oArgs.group_nick # is the chat_id the pk? chat_id = self._oArgs.group_chatid + if not chat_id: return -1 num = self.group_join(chat_id, password, nick, status='') self.sGROUP_BOT_NUM = num self.group_self_set_status(num, TOX_USER_STATUS['NONE']) @@ -964,7 +965,7 @@ def oArgparse(lArgv): choices=['public','private'], help="state for the group - default public") parser.add_argument('--group_chatid', type=str, default='', - help="chat_id of the group - will be created on first use") + help="chat_id of the group - leave empty and will be created on first use") parser.add_argument('--group_name', type=str, default='', help="name for the group") parser.add_argument('--group_nick', type=str, default='',