Mercurial > pidgin.yaz
changeset 8016:7bae464195c4
[gaim-migrate @ 8696]
fix jabber registrations for XMPP servers
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Mon, 05 Jan 2004 22:37:07 +0000 |
parents | 5f86d21b6232 |
children | 8948e4313575 |
files | src/protocols/jabber/auth.c src/protocols/jabber/jabber.c src/protocols/jabber/jabber.h src/protocols/jabber/message.c |
diffstat | 4 files changed, 15 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/jabber/auth.c Mon Jan 05 22:09:29 2004 +0000 +++ b/src/protocols/jabber/auth.c Mon Jan 05 22:37:07 2004 +0000 @@ -54,6 +54,11 @@ } } + if(js->registration) { + jabber_register_start(js); + return; + } + mechs = xmlnode_get_child(packet, "mechanisms"); if(!mechs) {
--- a/src/protocols/jabber/jabber.c Mon Jan 05 22:09:29 2004 +0000 +++ b/src/protocols/jabber/jabber.c Mon Jan 05 22:37:07 2004 +0000 @@ -688,7 +688,7 @@ } } -static void jabber_register_start(JabberStream *js) +void jabber_register_start(JabberStream *js) { JabberIq *iq; @@ -812,10 +812,12 @@ case JABBER_STREAM_AUTHENTICATING: gaim_connection_update_progress(js->gc, _("Authenticating"), js->gsc ? 6 : 3, JABBER_CONNECT_STEPS); - if(js->registration) - jabber_register_start(js); - else if(js->protocol_version == JABBER_PROTO_0_9) - jabber_auth_start_old(js); + if(js->protocol_version == JABBER_PROTO_0_9) { + if(js->registration) + jabber_register_start(js); + else + jabber_auth_start_old(js); + } break; case JABBER_STREAM_REINITIALIZING: gaim_connection_update_progress(js->gc, _("Re-initializing Stream"),
--- a/src/protocols/jabber/jabber.h Mon Jan 05 22:09:29 2004 +0000 +++ b/src/protocols/jabber/jabber.h Mon Jan 05 22:37:07 2004 +0000 @@ -87,6 +87,7 @@ void jabber_stream_set_state(JabberStream *js, JabberStreamState state); void jabber_register_parse(JabberStream *js, xmlnode *packet); +void jabber_register_start(JabberStream *js); char *jabber_get_next_id(JabberStream *js);
--- a/src/protocols/jabber/message.c Mon Jan 05 22:09:29 2004 +0000 +++ b/src/protocols/jabber/message.c Mon Jan 05 22:37:07 2004 +0000 @@ -506,6 +506,8 @@ } else if(!strncmp(msg, "/part", 5)) { jabber_chat_part(chat, strlen(msg) > 6 ? msg+6 : NULL); return 1; + } else if(!strncmp(msg, "/ban", 4)) { + } else if(!strncmp(msg, "/kick", 5)) { } jm = g_new0(JabberMessage, 1);