def loggedIn(avatar, group):
 j = avatar.join(group)
 j.addCallback(joinedGroup, avatar)
 return j

def loggedIn ( avatar , group ) : j = avatar . join ( group ) j . addCallback ( joinedGroup , avatar ) return j
logged in successfully .