annotate src/protocols/msn/error.c @ 8569:ee13d1befabe

[gaim-migrate @ 9317] Patch by Stu Tomlinson to restore MSN error reporting. Thanks! committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sat, 03 Apr 2004 03:17:51 +0000
parents 06f57183e29f
children c47a90a0a3b1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5309
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
1 /**
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
2 * @file error.c Error functions
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
3 *
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
4 * gaim
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
5 *
8475
06f57183e29f [gaim-migrate @ 9208]
Christian Hammond <chipx86@chipx86.com>
parents: 8255
diff changeset
6 * Copyright (C) 2003-2004 Christian Hammond <chipx86@gnupdate.org>
6701
b7e113a59b51 [gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents: 5436
diff changeset
7 *
5309
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
8 * This program is free software; you can redistribute it and/or modify
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
9 * it under the terms of the GNU General Public License as published by
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
10 * the Free Software Foundation; either version 2 of the License, or
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
11 * (at your option) any later version.
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
12 *
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
13 * This program is distributed in the hope that it will be useful,
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
16 * GNU General Public License for more details.
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
17 *
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
18 * You should have received a copy of the GNU General Public License
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
19 * along with this program; if not, write to the Free Software
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
21 */
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
22 #include "msn.h"
5436
ad445074d239 [gaim-migrate @ 5818]
Christian Hammond <chipx86@chipx86.com>
parents: 5309
diff changeset
23 #include "error.h"
5309
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
24
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
25 const char *
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
26 msn_error_get_text(unsigned int type)
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
27 {
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
28 static char msg[MSN_BUF_LEN];
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
29
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
30 switch (type) {
8569
ee13d1befabe [gaim-migrate @ 9317]
Christian Hammond <chipx86@chipx86.com>
parents: 8475
diff changeset
31 case 0:
ee13d1befabe [gaim-migrate @ 9317]
Christian Hammond <chipx86@chipx86.com>
parents: 8475
diff changeset
32 g_snprintf(msg, sizeof(msg),
ee13d1befabe [gaim-migrate @ 9317]
Christian Hammond <chipx86@chipx86.com>
parents: 8475
diff changeset
33 _("Unable to parse message"));
5309
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
34 case 200:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
35 g_snprintf(msg, sizeof(msg),
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
36 _("Syntax Error (probably a Gaim bug)"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
37 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
38 case 201:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
39 g_snprintf(msg, sizeof(msg),
8569
ee13d1befabe [gaim-migrate @ 9317]
Christian Hammond <chipx86@chipx86.com>
parents: 8475
diff changeset
40 _("Invalid email address"));
5309
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
41 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
42 case 205:
8569
ee13d1befabe [gaim-migrate @ 9317]
Christian Hammond <chipx86@chipx86.com>
parents: 8475
diff changeset
43 g_snprintf(msg, sizeof(msg), _("User does not exist"));
5309
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
44 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
45 case 206:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
46 g_snprintf(msg, sizeof(msg),
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
47 _("Fully Qualified Domain Name missing"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
48 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
49 case 207:
7086
0cacce490486 [gaim-migrate @ 7651]
Christian Hammond <chipx86@chipx86.com>
parents: 6887
diff changeset
50 g_snprintf(msg, sizeof(msg), _("Already Logged In"));
5309
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
51 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
52 case 208:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
53 g_snprintf(msg, sizeof(msg), _("Invalid Username"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
54 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
55 case 209:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
56 g_snprintf(msg, sizeof(msg), _("Invalid Friendly Name"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
57 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
58 case 210:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
59 g_snprintf(msg, sizeof(msg), _("List Full"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
60 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
61 case 215:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
62 g_snprintf(msg, sizeof(msg), _("Already there"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
63 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
64 case 216:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
65 g_snprintf(msg, sizeof(msg), _("Not on list"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
66 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
67 case 217:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
68 g_snprintf(msg, sizeof(msg), _("User is offline"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
69 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
70 case 218:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
71 g_snprintf(msg, sizeof(msg), _("Already in the mode"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
72 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
73 case 219:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
74 g_snprintf(msg, sizeof(msg), _("Already in opposite list"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
75 break;
6887
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
76 case 223:
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
77 g_snprintf(msg, sizeof(msg), _("Too many groups"));
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
78 break;
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
79 case 224:
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
80 g_snprintf(msg, sizeof(msg), _("Invalid group"));
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
81 break;
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
82 case 225:
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
83 g_snprintf(msg, sizeof(msg), _("User not in group"));
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
84 break;
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
85 case 229:
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
86 g_snprintf(msg, sizeof(msg), _("Group name too long"));
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
87 break;
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
88 case 230:
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
89 g_snprintf(msg, sizeof(msg), _("Cannot remove group zero"));
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
90 break;
5309
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
91 case 231:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
92 g_snprintf(msg, sizeof(msg),
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
93 _("Tried to add a contact to a group "
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
94 "that doesn't exist"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
95 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
96 case 280:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
97 g_snprintf(msg, sizeof(msg), _("Switchboard failed"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
98 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
99 case 281:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
100 g_snprintf(msg, sizeof(msg), _("Notify Transfer failed"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
101 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
102
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
103 case 300:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
104 g_snprintf(msg, sizeof(msg), _("Required fields missing"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
105 break;
6887
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
106 case 301:
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
107 g_snprintf(msg, sizeof(msg), _("Too many hits to a FND"));
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
108 break;
5309
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
109 case 302:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
110 g_snprintf(msg, sizeof(msg), _("Not logged in"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
111 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
112
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
113 case 500:
8255
4de49af535b3 [gaim-migrate @ 8978]
Christian Hammond <chipx86@chipx86.com>
parents: 7086
diff changeset
114 g_snprintf(msg, sizeof(msg), _("Service Temporarily Unavailable"));
5309
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
115 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
116 case 501:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
117 g_snprintf(msg, sizeof(msg), _("Database server error"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
118 break;
8255
4de49af535b3 [gaim-migrate @ 8978]
Christian Hammond <chipx86@chipx86.com>
parents: 7086
diff changeset
119 case 502:
4de49af535b3 [gaim-migrate @ 8978]
Christian Hammond <chipx86@chipx86.com>
parents: 7086
diff changeset
120 g_snprintf(msg, sizeof(msg), _("Command disabled"));
4de49af535b3 [gaim-migrate @ 8978]
Christian Hammond <chipx86@chipx86.com>
parents: 7086
diff changeset
121 break;
5309
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
122 case 510:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
123 g_snprintf(msg, sizeof(msg), _("File operation error"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
124 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
125 case 520:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
126 g_snprintf(msg, sizeof(msg), _("Memory allocation error"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
127 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
128 case 540:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
129 g_snprintf(msg, sizeof(msg), _("Wrong CHL value sent to server"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
130 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
131
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
132 case 600:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
133 g_snprintf(msg, sizeof(msg), _("Server busy"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
134 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
135 case 601:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
136 g_snprintf(msg, sizeof(msg), _("Server unavailable"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
137 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
138 case 602:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
139 g_snprintf(msg, sizeof(msg), _("Peer Notification server down"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
140 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
141 case 603:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
142 g_snprintf(msg, sizeof(msg), _("Database connect error"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
143 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
144 case 604:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
145 g_snprintf(msg, sizeof(msg),
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
146 _("Server is going down (abandon ship)"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
147 break;
6887
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
148 case 605:
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
149 g_snprintf(msg, sizeof(msg), _("Server unavailable"));
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
150 break;
5309
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
151
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
152 case 707:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
153 g_snprintf(msg, sizeof(msg), _("Error creating connection"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
154 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
155 case 710:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
156 g_snprintf(msg, sizeof(msg),
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
157 _("CVR parameters are either unknown or not allowed"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
158 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
159 case 711:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
160 g_snprintf(msg, sizeof(msg), _("Unable to write"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
161 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
162 case 712:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
163 g_snprintf(msg, sizeof(msg), _("Session overload"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
164 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
165 case 713:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
166 g_snprintf(msg, sizeof(msg), _("User is too active"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
167 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
168 case 714:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
169 g_snprintf(msg, sizeof(msg), _("Too many sessions"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
170 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
171 case 715:
8569
ee13d1befabe [gaim-migrate @ 9317]
Christian Hammond <chipx86@chipx86.com>
parents: 8475
diff changeset
172 g_snprintf(msg, sizeof(msg), _("Passport not verified"));
5309
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
173 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
174 case 717:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
175 g_snprintf(msg, sizeof(msg), _("Bad friend file"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
176 break;
6887
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
177 case 731:
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
178 g_snprintf(msg, sizeof(msg), _("Not expected"));
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
179 break;
5309
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
180
6887
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
181 case 800:
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
182 g_snprintf(msg, sizeof(msg),
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
183 _("Friendly name changes too rapidly"));
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
184 break;
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
185
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
186 case 910:
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
187 case 912:
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
188 case 918:
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
189 case 919:
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
190 case 921:
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
191 case 922:
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
192 g_snprintf(msg, sizeof(msg), _("Server too busy"));
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
193 break;
5309
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
194 case 911:
6887
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
195 case 917:
5309
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
196 g_snprintf(msg, sizeof(msg), _("Authentication failed"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
197 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
198 case 913:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
199 g_snprintf(msg, sizeof(msg), _("Not allowed when offline"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
200 break;
6887
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
201 case 914:
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
202 case 915:
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
203 case 916:
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
204 g_snprintf(msg, sizeof(msg), _("Server unavailable"));
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
205 break;
8255
4de49af535b3 [gaim-migrate @ 8978]
Christian Hammond <chipx86@chipx86.com>
parents: 7086
diff changeset
206 case 920:
5309
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
207 g_snprintf(msg, sizeof(msg), _("Not accepting new users"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
208 break;
8255
4de49af535b3 [gaim-migrate @ 8978]
Christian Hammond <chipx86@chipx86.com>
parents: 7086
diff changeset
209 case 923:
6887
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
210 g_snprintf(msg, sizeof(msg),
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
211 _("Kids Passport without parental consent"));
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
212 break;
8255
4de49af535b3 [gaim-migrate @ 8978]
Christian Hammond <chipx86@chipx86.com>
parents: 7086
diff changeset
213 case 924:
5309
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
214 g_snprintf(msg, sizeof(msg),
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
215 _("Passport account not yet verified"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
216 break;
8255
4de49af535b3 [gaim-migrate @ 8978]
Christian Hammond <chipx86@chipx86.com>
parents: 7086
diff changeset
217 case 928:
4de49af535b3 [gaim-migrate @ 8978]
Christian Hammond <chipx86@chipx86.com>
parents: 7086
diff changeset
218 g_snprintf(msg, sizeof(msg), _("Bad ticket"));
4de49af535b3 [gaim-migrate @ 8978]
Christian Hammond <chipx86@chipx86.com>
parents: 7086
diff changeset
219 break;
5309
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
220
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
221 default:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
222 g_snprintf(msg, sizeof(msg), _("Unknown Error Code %d"), type);
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
223 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
224 }
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
225
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
226 return msg;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
227 }
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
228
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
229 void
5436
ad445074d239 [gaim-migrate @ 5818]
Christian Hammond <chipx86@chipx86.com>
parents: 5309
diff changeset
230 msn_error_handle(MsnSession *session, unsigned int type)
5309
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
231 {
8569
ee13d1befabe [gaim-migrate @ 9317]
Christian Hammond <chipx86@chipx86.com>
parents: 8475
diff changeset
232 char buf[MSN_BUF_LEN];
5309
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
233
8569
ee13d1befabe [gaim-migrate @ 9317]
Christian Hammond <chipx86@chipx86.com>
parents: 8475
diff changeset
234 g_snprintf(buf, sizeof(buf), _("MSN Error: %s\n"),
ee13d1befabe [gaim-migrate @ 9317]
Christian Hammond <chipx86@chipx86.com>
parents: 8475
diff changeset
235 msn_error_get_text(type));
5309
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
236
8569
ee13d1befabe [gaim-migrate @ 9317]
Christian Hammond <chipx86@chipx86.com>
parents: 8475
diff changeset
237 gaim_notify_error(session->account->gc, NULL, buf, NULL);
5309
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
238 }