irc: ping handler (PONG response) now uses reply_command()
patch 6176f009d1ee06533bca9b17d829baac7989692a
Author: E. Bosch <presidev@AT@gmail.com>
Date: Tue Feb 9 00:58:21 CET 2021
* irc: ping handler (PONG response) now uses reply_command()
diff -rN -u old-irgramd/irc.py new-irgramd/irc.py
--- old-irgramd/irc.py 2024-11-23 01:45:25.235028054 +0100
+++ new-irgramd/irc.py 2024-11-23 01:45:25.235028054 +0100
@@ -160,9 +160,8 @@
async def handle_irc_ping(self, user, payload):
self.logger.debug('Handling PING: %s', payload)
- await self.send_irc_command(user, ':{} PONG {} :{}'.format(
- self.hostname, self.hostname, payload
- ))
+
+ await self.reply_command(user, SRV, 'PONG', (self.hostname, payload))
async def handle_irc_who(self, user, target):
self.logger.debug('Handling WHO: %s', target)