patch 7f3352bbc9fe55c1c399495c13e36549390d9b07 Author: E. Bosch Date: Tue Jul 14 01:15:16 CEST 2026 * Move auth help from irc.py to service.py diff -rN -u old-irgramd/irc.py new-irgramd/irc.py --- old-irgramd/irc.py 2026-07-25 09:30:52.153327760 +0200 +++ new-irgramd/irc.py 2026-07-25 09:30:52.153327760 +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 '.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/service.py new-irgramd/service.py --- old-irgramd/service.py 2026-07-25 09:30:52.153327760 +0200 +++ new-irgramd/service.py 2026-07-25 09:30:52.153327760 +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 '.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: