From 30366247254312f8f00b5ae5a3e193ac84cf0d3a Mon Sep 17 00:00:00 2001 From: James Booth Date: Wed, 3 Aug 2016 01:52:22 +0100 Subject: [PATCH] Fix presence_notify.py offline message --- presence_notify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/presence_notify.py b/presence_notify.py index 2fe5a18..ef3ff6b 100644 --- a/presence_notify.py +++ b/presence_notify.py @@ -73,4 +73,4 @@ def prof_on_contact_offline(barejid, resource, status): if not all_res or len(all_res) == 0: prof.notify("{barejid} is offline".format(barejid=barejid), 5000, "Presence") elif barejid in all_res: - prof.notify("{barejid} is {presence}".format(barejid=barejid, presence=presence), 5000, "Presence") + prof.notify("{barejid} is offline".format(barejid=barejid), 5000, "Presence")