Mercurial > pidgin
comparison src/protocols/msn/dispatch.c @ 7937:0dc286295b36
[gaim-migrate @ 8608]
Remove some unnecessary stuff.
committer: Tailor Script <tailor@pidgin.im>
| author | Christian Hammond <chipx86@chipx86.com> |
|---|---|
| date | Sat, 27 Dec 2003 01:35:04 +0000 |
| parents | 414c701ef1ff |
| children | ad5c8f01882b |
comparison
equal
deleted
inserted
replaced
| 7936:b8b83826cc61 | 7937:0dc286295b36 |
|---|---|
| 185 size_t param_count) | 185 size_t param_count) |
| 186 { | 186 { |
| 187 GaimConnection *gc = servconn->session->account->gc; | 187 GaimConnection *gc = servconn->session->account->gc; |
| 188 | 188 |
| 189 if (isdigit(*command)) | 189 if (isdigit(*command)) |
| 190 { | 190 gaim_connection_error(gc, msn_error_get_text(atoi(command))); |
| 191 char buf[4]; | |
| 192 | |
| 193 strncpy(buf, command, 4); | |
| 194 buf[4] = '\0'; | |
| 195 | |
| 196 gaim_connection_error(gc, (char *)msn_error_get_text(atoi(buf))); | |
| 197 } | |
| 198 else | 191 else |
| 199 gaim_connection_error(gc, _("Unable to parse message.")); | 192 gaim_connection_error(gc, _("Unable to parse message.")); |
| 200 | 193 |
| 201 return FALSE; | 194 return FALSE; |
| 202 } | 195 } |
