summaryrefslogtreecommitdiff
path: root/src/connection.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/connection.py')
-rw-r--r--src/connection.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/connection.py b/src/connection.py
index f586eb01..94167c75 100644
--- a/src/connection.py
+++ b/src/connection.py
@@ -77,6 +77,7 @@ class Connection(Thread):
self.client.RegisterHandler('message', self.handler_message)
self.client.RegisterHandler('presence', self.handler_presence)
self.client.RegisterHandler('iq', self.handler_iq)
+ self.client.RegisterHandler('error', self.handler_error)
def handler_presence(self, connection, presence):
fro = presence.getFrom()
@@ -94,6 +95,11 @@ class Connection(Thread):
def handler_iq(self, connection, iq):
pass
+ def handler_error(self, connection, error):
+ import sys
+ print "TOUCHE FION"
+ sys.exit()
+
def process(self, timeout=10):
if self.online:
try:self.client.Process(timeout)