def deauthContact(self, jid): LogEvent(INFO, self.session.jabberID) userHandle = glue.jid2icq(jid) self.session.legacycon.deauthContact(userHandle)
def addContact(self, jid): LogEvent(INFO, self.session.jabberID) userHandle = glue.jid2icq(jid) self.session.legacycon.addContact(userHandle) self.session.contactList.getContact(jid).contactGrantsAuth()