Mercurial > pidgin
comparison src/server.c @ 1401:bf041349b11e
[gaim-migrate @ 1411]
abliity to set accounts away independent of each other. also allows for all the other states (like in yahoo and icq). probably breaks MSN, so don't use it until rob fixes it.
committer: Tailor Script <tailor@pidgin.im>
| author | Eric Warmenhoven <eric@warmenhoven.org> |
|---|---|
| date | Wed, 10 Jan 2001 22:15:24 +0000 |
| parents | 730a1a19b4cc |
| children | 96e93119268d |
comparison
equal
deleted
inserted
replaced
| 1400:476b24cdfa32 | 1401:bf041349b11e |
|---|---|
| 156 if (g && g->prpl && g->prpl->dir_search) | 156 if (g && g->prpl && g->prpl->dir_search) |
| 157 (*g->prpl->dir_search)(g, first, middle, last, maiden, city, state, country, email); | 157 (*g->prpl->dir_search)(g, first, middle, last, maiden, city, state, country, email); |
| 158 } | 158 } |
| 159 | 159 |
| 160 | 160 |
| 161 void serv_set_away(char *message) | 161 void serv_set_away(struct gaim_connection *gc, char *state, char *message) |
| 162 { | |
| 163 if (gc && gc->prpl && gc->prpl->set_away) | |
| 164 (*gc->prpl->set_away)(gc, state, message); | |
| 165 } | |
| 166 | |
| 167 void serv_set_away_all(char *message) | |
| 162 { | 168 { |
| 163 GSList *c = connections; | 169 GSList *c = connections; |
| 164 struct gaim_connection *g; | 170 struct gaim_connection *g; |
| 165 | 171 |
| 166 while (c) { | 172 while (c) { |
| 167 g = (struct gaim_connection *)c->data; | 173 g = (struct gaim_connection *)c->data; |
| 168 if (g->prpl && g->prpl->set_away) | 174 if (g->prpl && g->prpl->set_away) |
| 169 (*g->prpl->set_away)(g, message); | 175 (*g->prpl->set_away)(g, GAIM_AWAY_CUSTOM, message); |
| 170 c = c->next; | 176 c = c->next; |
| 171 } | 177 } |
| 172 } | 178 } |
| 173 | 179 |
| 174 void serv_set_info(struct gaim_connection *g, char *info) | 180 void serv_set_info(struct gaim_connection *g, char *info) |
