From 59a1a79c82b0f16840297b6dbc8c0ef4e53d073c Mon Sep 17 00:00:00 2001 From: Mindiell Date: Wed, 24 Apr 2024 09:49:03 +0200 Subject: [PATCH] =?UTF-8?q?Correction=20pour=20ne=20pas=20envoyer=20un=20m?= =?UTF-8?q?essage=20=C3=A0=20cahque=20nouvelle=20arriv=C3=A9e=20sur=20le?= =?UTF-8?q?=20salon?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hebdobot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hebdobot.py b/hebdobot.py index f9ee5f9..14e692e 100644 --- a/hebdobot.py +++ b/hebdobot.py @@ -77,7 +77,8 @@ class HebdoBot(IrcBot): """ Lorsqu'il se connecte, le bot dit bonjour. """ - self.send(event.target, "Bonjour tout le monde, je suis là :)") + if event.source.nick.lower() == self.nickname.lower(): + self.send(event.target, "Bonjour tout le monde, je suis là :)") def send(self, target, message): if self.review.is_started and target == self.channel: