corrected minor mistake in chance to get a duck

This commit is contained in:
BaerbelBox
2022-06-17 10:09:28 +02:00
parent 6621b5faf7
commit 5fc98e574e
+1 -1
View File
@@ -77,7 +77,7 @@ class DuckObserver(PrivMsgObserverPrototype, PingObserverPrototype):
def update_on_ping(self, data, connection: Connection): def update_on_ping(self, data, connection: Connection):
if self.active == 0: if self.active == 0:
return return
if 1 == randint(1,1): if 1 == randint(1,11):
if self.duck_alive == 0: if self.duck_alive == 0:
connection.send_channel("*. *. *. * <<w°)> *. *. * Quack!") connection.send_channel("*. *. *. * <<w°)> *. *. * Quack!")
self.duck_alive = 1 self.duck_alive = 1