| 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; |