diff options
-rw-r--r-- | activity.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activity.py b/activity.py index d746d35..897652c 100644 --- a/activity.py +++ b/activity.py @@ -221,6 +221,8 @@ class Chat(activity.Activity): nick = '???' logger.debug('Received message from %s: %s', nick, text) self.chatbox.add_text(buddy, text) + if not self.has_focus: + self.notify_user(_("Message from %s") % buddy, text) def _alert(self, title, text=None): alert = NotifyAlert(timeout=5) |