@event_handler(AuthorizedEvent)<EOL><INDENT>def handle_authorized_event(self, event):<DEDENT>
self.server = event.authorized_jid.bare()<EOL>if "<STR_LIT>" in self.server_features:<EOL><INDENT>if self.roster is not None and self.roster.version is not None:<EOL><INDENT>version = self.roster.version<EOL><DEDENT>else:<EOL><INDENT>version = "<STR_LIT>"<EOL><DEDENT><DEDENT>else:<EOL><INDENT>version = None<EOL><DEDENT>self.request_roster(version)<EOL>
Request roster upon login.