Mercurial > pidgin
comparison src/server.c @ 1006:0a4d0ed65e17
[gaim-migrate @ 1016]
wow, configurable sounds. this should be neat. too bad the UI isn't done yet. but at least you can have them configured. oh yeah, this means we don't need gaim.soundlist anymore, since i removed the option to go through gnome for sounds. (there were only two advantages to having them go through gnome, and making them configurable was the primary one). anyway, i also changed some of the installation script stuff so that now everything (including the panel) should go through the $(whateverdir) makefile variables, so it should be easier to make packages in chrooted environments
committer: Tailor Script <tailor@pidgin.im>
| author | Eric Warmenhoven <eric@warmenhoven.org> |
|---|---|
| date | Thu, 19 Oct 2000 10:42:46 +0000 |
| parents | 1d8f05ea6bdf |
| children | 966845e5ad29 |
comparison
equal
deleted
inserted
replaced
| 1005:b1572ac4246c | 1006:0a4d0ed65e17 |
|---|---|
| 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 = connections->data; |
| 146 | 146 |
| 147 if (g->prpl && g->prpl->get_info) | 147 if (g && g->prpl && g->prpl->get_info) |
| 148 (*g->prpl->get_info)(g, name); | 148 (*g->prpl->get_info)(g, name); |
| 149 } | 149 } |
| 150 | 150 |
| 151 void serv_get_away_msg(char *name) | 151 void serv_get_away_msg(char *name) |
| 152 { | 152 { |
| 153 /* FIXME: see the serv_get_info comment above :-P */ | 153 /* FIXME: see the serv_get_info comment above :-P */ |
| 154 struct gaim_connection *g = connections->data; | 154 struct gaim_connection *g = connections->data; |
| 155 | 155 |
| 156 if (g->prpl && g->prpl->get_info) | 156 if (g && g->prpl && g->prpl->get_info) |
| 157 (*g->prpl->get_away_msg)(g, name); | 157 (*g->prpl->get_away_msg)(g, name); |
| 158 } | 158 } |
| 159 | 159 |
| 160 void serv_get_dir(char *name) | 160 void serv_get_dir(char *name) |
| 161 { | 161 { |
| 162 /* FIXME: see the serv_get_info comment above :-P */ | 162 /* FIXME: see the serv_get_info comment above :-P */ |
| 163 struct gaim_connection *g = connections->data; | 163 struct gaim_connection *g = connections->data; |
| 164 | 164 |
| 165 if (g->prpl && g->prpl->get_dir) | 165 if (g && g->prpl && g->prpl->get_dir) |
| 166 (*g->prpl->get_dir)(g, name); | 166 (*g->prpl->get_dir)(g, name); |
| 167 } | 167 } |
| 168 | 168 |
| 169 void serv_set_dir(char *first, char *middle, char *last, char *maiden, | 169 void serv_set_dir(char *first, char *middle, char *last, char *maiden, |
| 170 char *city, char *state, char *country, int web) | 170 char *city, char *state, char *country, int web) |
| 171 { | 171 { |
| 172 /* FIXME */ | 172 /* FIXME */ |
| 173 struct gaim_connection *g = connections->data; | 173 struct gaim_connection *g = connections->data; |
| 174 | 174 |
| 175 if (g->prpl && g->prpl->set_dir) | 175 if (g && g->prpl && g->prpl->set_dir) |
| 176 (*g->prpl->set_dir)(g, first, middle, last, maiden, city, state, country, web); | 176 (*g->prpl->set_dir)(g, first, middle, last, maiden, city, state, country, web); |
| 177 } | 177 } |
| 178 | 178 |
| 179 void serv_dir_search(char *first, char *middle, char *last, char *maiden, | 179 void serv_dir_search(char *first, char *middle, char *last, char *maiden, |
| 180 char *city, char *state, char *country, char *email) | 180 char *city, char *state, char *country, char *email) |
| 181 { | 181 { |
| 182 /* FIXME */ | 182 /* FIXME */ |
| 183 struct gaim_connection *g = connections->data; | 183 struct gaim_connection *g = connections->data; |
| 184 | 184 |
| 185 if (g->prpl && g->prpl->dir_search) | 185 if (g && g->prpl && g->prpl->dir_search) |
| 186 (*g->prpl->dir_search)(g, first, middle, last, maiden, city, state, country, email); | 186 (*g->prpl->dir_search)(g, first, middle, last, maiden, city, state, country, email); |
| 187 } | 187 } |
| 188 | 188 |
| 189 | 189 |
| 190 void serv_set_away(char *message) | 190 void serv_set_away(char *message) |
| 275 | 275 |
| 276 void serv_set_permit_deny() | 276 void serv_set_permit_deny() |
| 277 { | 277 { |
| 278 /* FIXME */ | 278 /* FIXME */ |
| 279 struct gaim_connection *g = connections->data; | 279 struct gaim_connection *g = connections->data; |
| 280 if (g->protocol == PROTO_TOC) { | 280 if (g && g->protocol == PROTO_TOC) { |
| 281 char buf[MSG_LEN]; | 281 char buf[MSG_LEN]; |
| 282 int at; | 282 int at; |
| 283 GList *list; | 283 GList *list; |
| 284 | 284 |
| 285 switch (permdeny) { | 285 switch (permdeny) { |
| 390 | 390 |
| 391 void serv_save_config() | 391 void serv_save_config() |
| 392 { | 392 { |
| 393 /* FIXME */ | 393 /* FIXME */ |
| 394 struct gaim_connection *g = connections->data; | 394 struct gaim_connection *g = connections->data; |
| 395 if (g->protocol == PROTO_TOC) { | 395 if (g && g->protocol == PROTO_TOC) { |
| 396 char *buf = g_malloc(BUF_LONG); | 396 char *buf = g_malloc(BUF_LONG); |
| 397 char *buf2 = g_malloc(MSG_LEN); | 397 char *buf2 = g_malloc(MSG_LEN); |
| 398 serv_build_config(buf, BUF_LONG / 2, FALSE); | 398 serv_build_config(buf, BUF_LONG / 2, FALSE); |
| 399 g_snprintf(buf2, MSG_LEN, "toc_set_config {%s}", buf); | 399 g_snprintf(buf2, MSG_LEN, "toc_set_config {%s}", buf); |
| 400 sflap_send(g, buf2, -1, TYPE_DATA); | 400 sflap_send(g, buf2, -1, TYPE_DATA); |
| 484 cnv = new_conversation(name); | 484 cnv = new_conversation(name); |
| 485 } | 485 } |
| 486 } | 486 } |
| 487 if (cnv != NULL) { | 487 if (cnv != NULL) { |
| 488 if (sound_options & OPT_SOUND_WHEN_AWAY) | 488 if (sound_options & OPT_SOUND_WHEN_AWAY) |
| 489 play_sound(AWAY); | 489 play_sound(RECEIVE); |
| 490 write_to_conv(cnv, message, away | WFLAG_RECV, NULL); | 490 write_to_conv(cnv, message, away | WFLAG_RECV, NULL); |
| 491 } | 491 } |
| 492 | 492 |
| 493 } else { | 493 } else { |
| 494 if (cnv == NULL) { | 494 if (cnv == NULL) { |
