Corrected a minor issue with seen and case Sensitivity

This commit is contained in:
BaerbelBox
2024-02-10 07:21:45 +01:00
parent 290bda4fce
commit db1f59f823

View File

@@ -19,7 +19,7 @@ class SeenObserver(PrivMsgObserverPrototype):
return return
if not self._is_idented_mod(data, connection): if not self._is_idented_mod(data, connection):
return return
who = data['message'].split(' ')[1] who = data['messageCaseSensitive'].split(' ')[1]
user_provider = UserProvider() user_provider = UserProvider()
activity = user_provider.get_activity(who) activity = user_provider.get_activity(who)
output = data['nick']+": Ich habe "+who+" zuletzt am "+str(datetime.datetime.fromtimestamp(activity).strftime("%d.%m.%Y um %H:%M:%S"))+ ' Uhr gesehen' output = data['nick']+": Ich habe "+who+" zuletzt am "+str(datetime.datetime.fromtimestamp(activity).strftime("%d.%m.%Y um %H:%M:%S"))+ ' Uhr gesehen'