comparison src/protocols/msn/msn.c @ 2226:2a09a177ed5f

[gaim-migrate @ 2236] hopefully this won't break anything committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Thu, 06 Sep 2001 19:47:02 +0000
parents 20a4d5da0b95
children cfc9abe45db2
comparison
equal deleted inserted replaced
2225:7abd9297efac 2226:2a09a177ed5f
945 hide_login_progress(gc, "Unable to connect to Notification Server"); 945 hide_login_progress(gc, "Unable to connect to Notification Server");
946 signoff(gc); 946 signoff(gc);
947 return; 947 return;
948 } 948 }
949 949
950 g_snprintf(buf, sizeof(buf), "USR %d MD5 I %s\n", ++md->trId, gc->username); 950 g_snprintf(buf, sizeof(buf), "VER %d MSNP5\n", ++md->trId);
951 if (msn_write(md->fd, buf, strlen(buf)) < 0) { 951 if (msn_write(md->fd, buf, strlen(buf)) < 0) {
952 hide_login_progress(gc, "Unable to talk to Notification Server"); 952 hide_login_progress(gc, "Unable to talk to Notification Server");
953 signoff(gc); 953 signoff(gc);
954 return; 954 return;
955 } 955 }
976 } 976 }
977 debug_printf("S: %s", buf); 977 debug_printf("S: %s", buf);
978 g_strchomp(buf); 978 g_strchomp(buf);
979 979
980 if (!g_strncasecmp(buf, "VER", 3)) { 980 if (!g_strncasecmp(buf, "VER", 3)) {
981 /* we got VER, check to see that MSNP2 is in the list, then send INF */ 981 /* we got VER, check to see that MSNP5 is in the list, then send INF */
982 if (!strstr(buf, "MSNP2")) { 982 if (!strstr(buf, "MSNP5")) {
983 hide_login_progress(gc, "Protocol not supported"); 983 hide_login_progress(gc, "Protocol not supported");
984 signoff(gc); 984 signoff(gc);
985 return; 985 return;
986 } 986 }
987 987
1131 hide_login_progress(gc, "Unable to connect"); 1131 hide_login_progress(gc, "Unable to connect");
1132 signoff(gc); 1132 signoff(gc);
1133 return; 1133 return;
1134 } 1134 }
1135 1135
1136 g_snprintf(buf, sizeof(buf), "VER %d MSNP2\n", ++md->trId); 1136 g_snprintf(buf, sizeof(buf), "VER %d MSNP5\n", ++md->trId);
1137 if (msn_write(md->fd, buf, strlen(buf)) < 0) { 1137 if (msn_write(md->fd, buf, strlen(buf)) < 0) {
1138 hide_login_progress(gc, "Unable to write to server"); 1138 hide_login_progress(gc, "Unable to write to server");
1139 signoff(gc); 1139 signoff(gc);
1140 return; 1140 return;
1141 } 1141 }