Move auth help from irc.py to service.py
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
hunk ./irc.py 543
- 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():
hunk ./service.py 34
+ )
+
+ 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)