comparison src/protocols/jabber/auth.c @ 7515:6cd392e0d6ea

[gaim-migrate @ 8128] today's lesson is: test things you wrote on a 7-hour offline car ride before you commit them committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Sat, 15 Nov 2003 07:18:15 +0000
parents 43a214a385d1
children 2df4d470c12a
comparison
equal deleted inserted replaced
7514:43a214a385d1 7515:6cd392e0d6ea
130 const char *type = xmlnode_get_attrib(packet, "type"); 130 const char *type = xmlnode_get_attrib(packet, "type");
131 const char *pw = gaim_account_get_password(js->gc->account); 131 const char *pw = gaim_account_get_password(js->gc->account);
132 132
133 if(!type) { 133 if(!type) {
134 return; 134 return;
135 } else if(strcmp(type, "error")) { 135 } else if(!strcmp(type, "error")) {
136 /* XXX: handle error */ 136 /* XXX: handle error */
137 } else if(strcmp(type, "result")) { 137 } else if(!strcmp(type, "result")) {
138 query = xmlnode_get_child(packet, "query"); 138 query = xmlnode_get_child(packet, "query");
139 if(js->stream_id && xmlnode_get_child(query, "digest")) { 139 if(js->stream_id && xmlnode_get_child(query, "digest")) {
140 digest = TRUE; 140 digest = TRUE;
141 } else if(!xmlnode_get_child(query, "password")) { 141 } else if(!xmlnode_get_child(query, "password")) {
142 gaim_connection_error(js->gc, 142 gaim_connection_error(js->gc,