Mercurial > pidgin
comparison src/server.c @ 2167:edf8c5a70e5b
[gaim-migrate @ 2177]
limiting chat message lengths
committer: Tailor Script <tailor@pidgin.im>
| author | Eric Warmenhoven <eric@warmenhoven.org> |
|---|---|
| date | Sun, 26 Aug 2001 20:21:45 +0000 |
| parents | acc11216ec5d |
| children | cff4fbe01c7b |
comparison
equal
deleted
inserted
replaced
| 2166:dbd74f49dabb | 2167:edf8c5a70e5b |
|---|---|
| 325 { | 325 { |
| 326 if (g->prpl && g->prpl->chat_set_topic) | 326 if (g->prpl && g->prpl->chat_set_topic) |
| 327 (*g->prpl->chat_set_topic)(g, id, topic); | 327 (*g->prpl->chat_set_topic)(g, id, topic); |
| 328 } | 328 } |
| 329 | 329 |
| 330 void serv_chat_send(struct gaim_connection *g, int id, char *message) | 330 int serv_chat_send(struct gaim_connection *g, int id, char *message) |
| 331 { | 331 { |
| 332 int val = -EINVAL; | |
| 332 if (g->prpl && g->prpl->chat_send) | 333 if (g->prpl && g->prpl->chat_send) |
| 333 (*g->prpl->chat_send)(g, id, message); | 334 val = (*g->prpl->chat_send)(g, id, message); |
| 334 serv_touch_idle(g); | 335 serv_touch_idle(g); |
| 336 return val; | |
| 335 } | 337 } |
| 336 | 338 |
| 337 int find_queue_row_by_name(char *name) | 339 int find_queue_row_by_name(char *name) |
| 338 { | 340 { |
| 339 GSList *templist; | 341 GSList *templist; |
