less greetings for repeating users

This commit is contained in:
BaerbelBox
2023-05-27 07:46:50 +02:00
parent 26db379fba
commit 34f7b90c9b
+1 -1
View File
@@ -32,4 +32,4 @@ class Greeter(JoinObserverPrototype):
if data['channel'] == connection.details.get_channel(): if data['channel'] == connection.details.get_channel():
if int(time.time()) - self.names[data['nick']] > 28800: if int(time.time()) - self.names[data['nick']] > 28800:
connection.send_back(self.greeting+" " + data['nick'], data) connection.send_back(self.greeting+" " + data['nick'], data)
self.names[data['nick']] = int(time.time()) self.names[data['nick']] = int(time.time())