patch 7f3352bbc9fe55c1c399495c13e36549390d9b07
Author: E. Bosch <presidev@AT@gmail.com>
Date: Tue Jul 14 01:15:16 CEST 2026
* Move auth help from irc.py to service.py
diff -rN -u old-irgramd-1/irc.py new-irgramd-1/irc.py
--- old-irgramd-1/irc.py 2026-07-25 07:46:49.744001366 +0200
+++ new-irgramd-1/irc.py 2026-07-25 07:46:49.748001367 +0200
@@ -540,14 +540,7 @@
async def check_telegram_auth(self, user):
await self.tg.auth_checked.wait()
if not self.tg.authorized and not self.tg.ask_code:
- for line in (
- '----',
- 'Your Telegram account is not authorized yet,',
- 'you must supply the code that Telegram sent to your phone',
- 'or another client that is currently connected',
- 'use /msg {} code <code>'.format(self.service_user.irc_nick),
- 'e.g. /msg {} code 12345'.format(self.service_user.irc_nick),
- ):
+ for line in self.service.auth_help():
await self.send_msg(self.service_user, user.irc_nick, line)
async def send_users_irc(self, prfx, command, params):
diff -rN -u old-irgramd-1/service.py new-irgramd-1/service.py
--- old-irgramd-1/service.py 2026-07-25 07:46:49.744001366 +0200
+++ new-irgramd-1/service.py 2026-07-25 07:46:49.748001367 +0200
@@ -33,6 +33,16 @@
'to get help',
)
+ def auth_help(self):
+ return (
+ '----',
+ 'Your Telegram account is not authorized yet,',
+ 'you must supply the code that Telegram sent to your phone',
+ 'or another client that is currently connected',
+ 'use /msg {} code <code>'.format(self.irc.service_user.irc_nick),
+ 'e.g. /msg {} code 12345'.format(self.irc.service_user.irc_nick)
+ )
+
async def handle_command_code(self, code=None, help=None):
if not help:
if self.ask_code: