unless it is logged in.
void xmpp_presence_notify(char *, char *);
void jabber_roster_item(struct CitContext *);
void jabber_send_message(char *, char *);
-void jabber_offer_non_sasl_authentication(void);
if (message_body == NULL) return;
if (message_to == NULL) return;
if (IsEmptyStr(message_to)) return;
+ if (!CC->logged_in) return;
for (cptr = ContextList; cptr != NULL; cptr = cptr->next) {
if (!strcasecmp(cptr->cs_inet_email, message_to)) {
jabber_iq_roster_query();
}
- else if (!strcasecmp(query_xmlns, "jabber:iq:auth")) {
- jabber_offer_non_sasl_authentication();
- }
-
/*
* End of query result. If we didn't hit any known namespaces then we will
* have simply delivered an empty result stanza, which should be ok.
}
}
-/*
- * Offer non-SASL authentication to legacy clients.
- */
-void jabber_offer_non_sasl_authentication(void) {
- cprintf("<query xmlns=\"jabber:iq:auth\">"
- "<username/>"
- "<password/>"
- "<digest/>"
- "<resource/>"
- "</query>"
- );
-}
-
#endif /* HAVE_EXPAT */