service: Send reply messages from service only to the IRC connected user
patch 232723b9dcfbfc20de95b31bc610a8de971a95c3
Author: E. Bosch <presidev@AT@gmail.com>
Date: Fri Mar 18 22:08:29 CET 2022
* service: Send reply messages from service only to the IRC connected user
that sent the command
hunk ./irc.py 385
- await self.send_msg(self.service_user, user.irc_nick, reply_line)
+ await self.send_msg(self.service_user, None, reply_line, user)
hunk ./irc.py 420
- async def send_msg(self, source, target, message):
+ async def send_msg(self, source, target, message, selfuser=None):
hunk ./irc.py 427
- if is_chan:
+ if selfuser:
+ irc_users = (selfuser,)
+ elif is_chan:
hunk ./irc.py 507
- await self.send_msg(self.service_user, user.irc_nick, line)
+ await self.send_msg(self.service_user, None, line, user)