Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--__init__.py0
-rw-r--r--activity.py6
-rw-r--r--bot/aiml/Kernel.py2
3 files changed, 7 insertions, 1 deletions
diff --git a/__init__.py b/__init__.py
deleted file mode 100644
index e69de29..0000000
--- a/__init__.py
+++ /dev/null
diff --git a/activity.py b/activity.py
index 291677e..8d4a29e 100644
--- a/activity.py
+++ b/activity.py
@@ -455,6 +455,8 @@ class SpeakActivity(SharedActivity):
if not button.props.active:
return
+ is_first_session = not self.chat.me.flags() & gtk.MAPPED
+
self._mode = MODE_CHAT
self.face.shut_up()
self.notebook.set_current_page(1)
@@ -463,6 +465,10 @@ class SpeakActivity(SharedActivity):
self.voices.set_model(voices_model)
self._set_voice(old_voice)
+ if is_first_session:
+ self.chat.me.say_notification(
+ _("You are in off-line mode, share and invite someone."))
+
def __changed_voices_cb(self, combo):
voice = combo.props.value
diff --git a/bot/aiml/Kernel.py b/bot/aiml/Kernel.py
index 1593530..42d5ef7 100644
--- a/bot/aiml/Kernel.py
+++ b/bot/aiml/Kernel.py
@@ -1,4 +1,4 @@
-# -*- coding=utf-8 -*-
+# -*- coding=latin-1 -*-
"""This file contains the public interface to the aiml module."""
import AimlParser
import DefaultSubs