Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2007-06-21 15:02:22 (GMT)
committer Simon McVittie <simon.mcvittie@collabora.co.uk>2007-06-21 15:02:22 (GMT)
commit3c95f5563dd696e98643318bd1c75575ad872148 (patch)
tree7b19d898618c117fd0b6d9068019a90c7214bbfc
parentc398f5ed8c6498d4f252c966fe1f6c2ec2c535d6 (diff)
Merge double definition of ServerPlugin._connected_cb, fixing the registration bug again
-rw-r--r--src/server_plugin.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/server_plugin.py b/src/server_plugin.py
index bfbd21e..c589877 100644
--- a/src/server_plugin.py
+++ b/src/server_plugin.py
@@ -128,13 +128,6 @@ class ServerPlugin(TelepathyPlugin):
def _could_connect(self):
return bool(self._ip4am.props.address)
- def _connected_cb(self):
- if self._account['register']:
- # we successfully register this account
- self._owner.set_registered(True)
-
- TelepathyPlugin._connected_cb(self)
-
def _server_is_trusted(self, hostname):
"""Return True if the server with the given hostname is trusted to
verify public-key ownership correctly, and only allows users to
@@ -235,6 +228,10 @@ class ServerPlugin(TelepathyPlugin):
return ret
def _connected_cb(self):
+ if self._account['register']:
+ # we successfully register this account
+ self._owner.set_registered(True)
+
TelepathyPlugin._connected_cb(self)
publish_handles, local_pending, remote_pending = \