summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Baumann <derflob@derflob.de>2016-07-15 21:14:06 +1200
committerFlorian Baumann <derflob@derflob.de>2016-07-15 21:14:06 +1200
commit282e9f3244ee64b480840793cb7f89b4aea57052 (patch)
treedd2a1d576b3b371c7a816e36972e2276711d3b77
parentd921ce632b47b91e042ed36a4fe92f6bccc81ada (diff)
downloadxmpp-282e9f3244ee64b480840793cb7f89b4aea57052.tar.gz
xmpp-282e9f3244ee64b480840793cb7f89b4aea57052.tar.bz2
more sane amount of messages/snapshots
-rw-r--r--__init__.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/__init__.py b/__init__.py
index 38d4a35..22faf84 100644
--- a/__init__.py
+++ b/__init__.py
@@ -46,7 +46,7 @@ class OctoXMPP(EventHandlerPlugin, SettingsPlugin):
'jid': "rupert@m3k.cc",
'resource': "Rupert",
'password': "KosselMini",
- 'recipients': [("groupchat", "3k@conference.m3k.cc"), ("chat", "derflob@derflob.de")]
+ 'recipients': [("groupchat", "3k@conference.m3k.cc")]
}
}
@@ -91,15 +91,13 @@ class OctoXMPP(EventHandlerPlugin, SettingsPlugin):
elif (event == "PrintFailed"):
self._msg_recipients("Da ging was schief!")
elif (event == "PrintPaused"):
- self._msg_recipients("Druck pausiert.", False)
+ self._msg_recipients("Druck pausiert.")
elif (event == "PrintResumed"):
self._msg_recipients("Druck resümiert.", False)
elif (event == "PrintCancelled"):
- self._msg_recipients("Druck abgebrochen!")
+ self._msg_recipients("Druck abgebrochen!", False)
elif (event == "PrintStarted"):
- self._msg_recipients("Druck begonnen.")
- elif (event == "Connected"):
- self._msg_recipients("Connected to Rupert.")
+ self._msg_recipients("Druck begonnen.", False)
def _process_message(self, msg):
if (msg.get_type() == "groupchat"):