summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/screen_detach.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/screen_detach.py b/plugins/screen_detach.py
index 2b42d01a..50519871 100644
--- a/plugins/screen_detach.py
+++ b/plugins/screen_detach.py
@@ -93,6 +93,10 @@ class Plugin(BasePlugin, pyinotify.Notifier):
self.attached = attached
status = 'available' if self.attached else 'away'
self.core.command_status(status)
+ if self.attached:
+ self.core.xmpp.plugin['xep_0352'].send_active()
+ else:
+ self.core.xmpp.plugin['xep_0352'].send_inactive()
class HandleScreen(pyinotify.ProcessEvent):
def my_init(self, **kwargs):