comparison src/protocols/msn/notification.c @ 5334:bbf2141d30d0

[gaim-migrate @ 5709] Ignore error 225, "User not in group." The users don't care. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Thu, 08 May 2003 06:22:49 +0000
parents bbbf616bd924
children 620d05932f00
comparison
equal deleted inserted replaced
5333:bbbf616bd924 5334:bbf2141d30d0
110 __unknown_cmd(MsnServConn *servconn, const char *command, const char **params, 110 __unknown_cmd(MsnServConn *servconn, const char *command, const char **params,
111 size_t param_count) 111 size_t param_count)
112 { 112 {
113 char buf[MSN_BUF_LEN]; 113 char buf[MSN_BUF_LEN];
114 114
115 g_snprintf(buf, sizeof(buf), "MSN Error: %s\n", 115 if (isdigit(*command)) {
116 (isdigit(*command) 116 int errnum = atoi(command);
117 ? msn_error_get_text(atoi(command)) 117
118 : "Unable to parse message.")); 118 if (errnum == 225) {
119 /*
120 * Ignore this. It happens as a result of moving a buddy from
121 * one group that isn't on the server to another that is.
122 * The user doesn't care if the old group was there or not.
123 */
124 return TRUE;
125 }
126
127 g_snprintf(buf, sizeof(buf), "MSN Error: %s\n",
128 msn_error_get_text(errnum));
129 }
130 else {
131 g_snprintf(buf, sizeof(buf), "MSN Error: Unable to parse message\n");
132 }
119 133
120 do_error_dialog(buf, NULL, GAIM_ERROR); 134 do_error_dialog(buf, NULL, GAIM_ERROR);
121 135
122 return TRUE; 136 return TRUE;
123 } 137 }