Mercurial > pidgin
comparison src/protocols/irc/irc.c @ 6059:d8cd876e613e
[gaim-migrate @ 6509]
I made a lot of server.c functions use const chat * instead of const *
Made the alias entry have focus in the alias buddy dialog.
Fixed a typo thanks to J. Silvestri
committer: Tailor Script <tailor@pidgin.im>
| author | Mark Doliner <mark@kingant.net> |
|---|---|
| date | Tue, 08 Jul 2003 03:36:41 +0000 |
| parents | 8c44020a958e |
| children | 2cd7c409d71d |
comparison
equal
deleted
inserted
replaced
| 6058:d5f4ae4f9a02 | 6059:d8cd876e613e |
|---|---|
| 1247 } | 1247 } |
| 1248 g_free(data); | 1248 g_free(data); |
| 1249 } | 1249 } |
| 1250 | 1250 |
| 1251 static void | 1251 static void |
| 1252 irc_convo_closed(GaimConnection *gc, char *who) | 1252 irc_convo_closed(GaimConnection *gc, const char *who) |
| 1253 { | 1253 { |
| 1254 struct dcc_chat *dchat = find_dcc_chat(gc, who); | 1254 struct dcc_chat *dchat = find_dcc_chat(gc, who); |
| 1255 if (!dchat) | 1255 if (!dchat) |
| 1256 return; | 1256 return; |
| 1257 | 1257 |
| 2458 | 2458 |
| 2459 /* IRC doesn't have a buddy list, but we can still figure out who's online with ISON */ | 2459 /* IRC doesn't have a buddy list, but we can still figure out who's online with ISON */ |
| 2460 static void | 2460 static void |
| 2461 irc_add_buddy(GaimConnection *gc, const char *who) {} | 2461 irc_add_buddy(GaimConnection *gc, const char *who) {} |
| 2462 static void | 2462 static void |
| 2463 irc_remove_buddy(GaimConnection *gc, char *who, char *group) {} | 2463 irc_remove_buddy(GaimConnection *gc, const char *who, const char *group) {} |
| 2464 | 2464 |
| 2465 static GList * | 2465 static GList * |
| 2466 irc_chat_info(GaimConnection *gc) | 2466 irc_chat_info(GaimConnection *gc) |
| 2467 { | 2467 { |
| 2468 GList *m = NULL; | 2468 GList *m = NULL; |
| 2513 g_snprintf(buf, sizeof(buf), "PART %s\r\n", c->name); | 2513 g_snprintf(buf, sizeof(buf), "PART %s\r\n", c->name); |
| 2514 irc_write(idata->fd, buf, strlen(buf)); | 2514 irc_write(idata->fd, buf, strlen(buf)); |
| 2515 } | 2515 } |
| 2516 | 2516 |
| 2517 static int | 2517 static int |
| 2518 irc_chat_send(GaimConnection *gc, int id, char *what) | 2518 irc_chat_send(GaimConnection *gc, int id, const char *what) |
| 2519 { | 2519 { |
| 2520 GaimConversation *c = gaim_find_chat(gc, id); | 2520 GaimConversation *c = gaim_find_chat(gc, id); |
| 2521 if (!c) | 2521 if (!c) |
| 2522 return -EINVAL; | 2522 return -EINVAL; |
| 2523 if (send_msg(gc, c->name, what) > 0) | 2523 if (send_msg(gc, c->name, what) > 0) |
| 2524 serv_got_chat_in(gc, gaim_chat_get_id(GAIM_CHAT(c)), | 2524 serv_got_chat_in(gc, gaim_chat_get_id(GAIM_CHAT(c)), |
| 2525 (char *)gaim_connection_get_display_name(gc), 0, what, time(NULL)); | 2525 gaim_connection_get_display_name(gc), 0, what, time(NULL)); |
| 2526 return 0; | 2526 return 0; |
| 2527 } | 2527 } |
| 2528 | 2528 |
| 2529 static GList * | 2529 static GList * |
| 2530 irc_away_states(GaimConnection *gc) | 2530 irc_away_states(GaimConnection *gc) |
| 2531 { | 2531 { |
| 2532 return g_list_append(NULL, GAIM_AWAY_CUSTOM); | 2532 return g_list_append(NULL, GAIM_AWAY_CUSTOM); |
| 2533 } | 2533 } |
| 2534 | 2534 |
| 2535 static void | 2535 static void |
| 2536 irc_set_away(GaimConnection *gc, char *state, char *msg) | 2536 irc_set_away(GaimConnection *gc, const char *state, const char *msg) |
| 2537 { | 2537 { |
| 2538 struct irc_data *idata = gc->proto_data; | 2538 struct irc_data *idata = gc->proto_data; |
| 2539 char buf[IRC_BUF_LEN]; | 2539 char buf[IRC_BUF_LEN]; |
| 2540 | 2540 |
| 2541 if (gc->away) { | 2541 if (gc->away) { |
