diff -up RemoteNotify-old/remotenotify/jabberbot.py RemoteNotify/remotenotify/jabberbot.py
--- RemoteNotify-old/remotenotify/jabberbot.py	2009-05-27 16:35:07.000000000 +0200
+++ RemoteNotify/remotenotify/jabberbot.py	2009-11-02 00:59:49.374777965 +0100
@@ -45,6 +45,7 @@ import deluge.common as common
 import deluge.error as error
 from deluge.ui.console import mapping
 import time
+import re
 
 myJid = None
 myPass = None
@@ -226,7 +227,8 @@ def authd(xmlstream):
 
 def gotIq(el):
   global myBuddies,myJid
-  if el['type'] == 'result' and el['to']==myJid.full() and el['from']==myJid.userhost():
+  jidR=re.compile('([^/]+)/?.*')
+  if el['type'] == 'result' and el['to']==myJid.full() and jidR.search(el['from']).group(1)==myJid.userhost():
     print('got Iq result')
     query = list(el.elements())[0]
     for item in query.elements():
@@ -356,6 +357,8 @@ class JabberThread(Thread):
     def run(self):
         print 'Starting Jabber Thread'
         global started, connector, inited,deluge,myJid,myPass,dalock
+        jServerR=re.compile('.+@(.+)')
+        myServer=jServerR.search(myJid.userhost()).group(1)
         if not started:
           started = True
           if not inited:
@@ -364,7 +367,7 @@ class JabberThread(Thread):
             deluge = delugeConn()
             factory = jabberclient.basicClientFactory(myJid, myPass)
             factory.addBootstrap('//event/stream/authd',authd)
-            connector = reactor.connectTCP('jabber.org',5222,factory)
+            connector = reactor.connectTCP(myServer,5222,factory)
             dalock = threading.Lock()
             reactor.callLater(20, checkWorkQueue)
           # TODO: load jid and so on
