Fix buddy list
This commit is contained in:
parent
91670df8b2
commit
7d77d89df6
@ -19,6 +19,7 @@ except ImportError:
|
||||
from sugar import activity
|
||||
from sugar.sugar_globals import *
|
||||
|
||||
import BuddyList
|
||||
import richtext
|
||||
import xmlrpclib
|
||||
import p2p
|
||||
|
10
chat/p2p.py
10
chat/p2p.py
@ -57,14 +57,14 @@ class Group:
|
||||
def join(self):
|
||||
self._pannounce = presence.PresenceAnnounce()
|
||||
|
||||
realname = Owner.get_instance().get_realname()
|
||||
rname = Owner.get_instance().get_realname()
|
||||
nick = Owner.get_instance().get_nick()
|
||||
|
||||
self._buddy_list = BuddyList.BuddyList(realname)
|
||||
|
||||
self._buddy_list = BuddyList.BuddyList(rname)
|
||||
self._buddy_list.start()
|
||||
|
||||
self._pannounce.register_service(realname, self._SERVER_PORT, presence.OLPC_CHAT_SERVICE,
|
||||
name = nick, realname = realname)
|
||||
self._pannounce.register_service(rname, self._SERVER_PORT, presence.OLPC_CHAT_SERVICE,
|
||||
name = nick, realname = rname)
|
||||
|
||||
self._p2p_req_handler = GroupRequestHandler(self)
|
||||
self._p2p_server = network.GlibXMLRPCServer(("", self._SERVER_PORT))
|
||||
|
Loading…
Reference in New Issue
Block a user