Mercurial > pidgin
comparison src/server.c @ 1013:966845e5ad29
[gaim-migrate @ 1023]
more stupidity. i fixed the wrong thing.
committer: Tailor Script <tailor@pidgin.im>
| author | Eric Warmenhoven <eric@warmenhoven.org> |
|---|---|
| date | Fri, 20 Oct 2000 08:39:34 +0000 |
| parents | 0a4d0ed65e17 |
| children | c3579d03a0c1 |
comparison
equal
deleted
inserted
replaced
| 1012:7e8dcc609b30 | 1013:966845e5ad29 |
|---|---|
| 140 | 140 |
| 141 void serv_get_info(char *name) | 141 void serv_get_info(char *name) |
| 142 { | 142 { |
| 143 /* FIXME: getting someone's info? how do you decide something like that? I think that | 143 /* FIXME: getting someone's info? how do you decide something like that? I think that |
| 144 * the buddy list/UI needs to be really changed before this gets fixed*/ | 144 * the buddy list/UI needs to be really changed before this gets fixed*/ |
| 145 struct gaim_connection *g = connections->data; | 145 struct gaim_connection *g; |
| 146 if (!connections) return; | |
| 147 g = connections->data; | |
| 146 | 148 |
| 147 if (g && g->prpl && g->prpl->get_info) | 149 if (g && g->prpl && g->prpl->get_info) |
| 148 (*g->prpl->get_info)(g, name); | 150 (*g->prpl->get_info)(g, name); |
| 149 } | 151 } |
| 150 | 152 |
| 151 void serv_get_away_msg(char *name) | 153 void serv_get_away_msg(char *name) |
| 152 { | 154 { |
| 153 /* FIXME: see the serv_get_info comment above :-P */ | 155 /* FIXME: see the serv_get_info comment above :-P */ |
| 154 struct gaim_connection *g = connections->data; | 156 struct gaim_connection *g; |
| 157 if (!connections) return; | |
| 158 g = connections->data; | |
| 155 | 159 |
| 156 if (g && g->prpl && g->prpl->get_info) | 160 if (g && g->prpl && g->prpl->get_info) |
| 157 (*g->prpl->get_away_msg)(g, name); | 161 (*g->prpl->get_away_msg)(g, name); |
| 158 } | 162 } |
| 159 | 163 |
| 160 void serv_get_dir(char *name) | 164 void serv_get_dir(char *name) |
| 161 { | 165 { |
| 162 /* FIXME: see the serv_get_info comment above :-P */ | 166 /* FIXME: see the serv_get_info comment above :-P */ |
| 163 struct gaim_connection *g = connections->data; | 167 struct gaim_connection *g; |
| 168 if (!connections) return; | |
| 169 g = connections->data; | |
| 164 | 170 |
| 165 if (g && g->prpl && g->prpl->get_dir) | 171 if (g && g->prpl && g->prpl->get_dir) |
| 166 (*g->prpl->get_dir)(g, name); | 172 (*g->prpl->get_dir)(g, name); |
| 167 } | 173 } |
| 168 | 174 |
| 169 void serv_set_dir(char *first, char *middle, char *last, char *maiden, | 175 void serv_set_dir(char *first, char *middle, char *last, char *maiden, |
| 170 char *city, char *state, char *country, int web) | 176 char *city, char *state, char *country, int web) |
| 171 { | 177 { |
| 172 /* FIXME */ | 178 /* FIXME */ |
| 173 struct gaim_connection *g = connections->data; | 179 struct gaim_connection *g; |
| 180 if (!connections) return; | |
| 181 g = connections->data; | |
| 174 | 182 |
| 175 if (g && g->prpl && g->prpl->set_dir) | 183 if (g && g->prpl && g->prpl->set_dir) |
| 176 (*g->prpl->set_dir)(g, first, middle, last, maiden, city, state, country, web); | 184 (*g->prpl->set_dir)(g, first, middle, last, maiden, city, state, country, web); |
| 177 } | 185 } |
| 178 | 186 |
| 179 void serv_dir_search(char *first, char *middle, char *last, char *maiden, | 187 void serv_dir_search(char *first, char *middle, char *last, char *maiden, |
| 180 char *city, char *state, char *country, char *email) | 188 char *city, char *state, char *country, char *email) |
| 181 { | 189 { |
| 182 /* FIXME */ | 190 /* FIXME */ |
| 183 struct gaim_connection *g = connections->data; | 191 struct gaim_connection *g; |
| 192 if (!connections) return; | |
| 193 g = connections->data; | |
| 184 | 194 |
| 185 if (g && g->prpl && g->prpl->dir_search) | 195 if (g && g->prpl && g->prpl->dir_search) |
| 186 (*g->prpl->dir_search)(g, first, middle, last, maiden, city, state, country, email); | 196 (*g->prpl->dir_search)(g, first, middle, last, maiden, city, state, country, email); |
| 187 } | 197 } |
| 188 | 198 |
| 274 | 284 |
| 275 | 285 |
| 276 void serv_set_permit_deny() | 286 void serv_set_permit_deny() |
| 277 { | 287 { |
| 278 /* FIXME */ | 288 /* FIXME */ |
| 279 struct gaim_connection *g = connections->data; | 289 struct gaim_connection *g; |
| 290 if (!connections) return; | |
| 291 g = connections->data; | |
| 280 if (g && g->protocol == PROTO_TOC) { | 292 if (g && g->protocol == PROTO_TOC) { |
| 281 char buf[MSG_LEN]; | 293 char buf[MSG_LEN]; |
| 282 int at; | 294 int at; |
| 283 GList *list; | 295 GList *list; |
| 284 | 296 |
| 389 | 401 |
| 390 | 402 |
| 391 void serv_save_config() | 403 void serv_save_config() |
| 392 { | 404 { |
| 393 /* FIXME */ | 405 /* FIXME */ |
| 394 struct gaim_connection *g = connections->data; | 406 struct gaim_connection *g; |
| 407 if (!connections) return; | |
| 408 g = connections->data; | |
| 395 if (g && g->protocol == PROTO_TOC) { | 409 if (g && g->protocol == PROTO_TOC) { |
| 396 char *buf = g_malloc(BUF_LONG); | 410 char *buf = g_malloc(BUF_LONG); |
| 397 char *buf2 = g_malloc(MSG_LEN); | 411 char *buf2 = g_malloc(MSG_LEN); |
| 398 serv_build_config(buf, BUF_LONG / 2, FALSE); | 412 serv_build_config(buf, BUF_LONG / 2, FALSE); |
| 399 g_snprintf(buf2, MSG_LEN, "toc_set_config {%s}", buf); | 413 g_snprintf(buf2, MSG_LEN, "toc_set_config {%s}", buf); |
