src/protocols/irc/irc.c

changeset 4916
11b8fd3f8ffc
parent 4834
80bc171a5236
child 4966
8c3e1d30d62b
equal deleted inserted replaced
4915:9e39899447b8 4916:11b8fd3f8ffc
2431 irc_list_icon(struct gaim_account *a, struct buddy *b) 2431 irc_list_icon(struct gaim_account *a, struct buddy *b)
2432 { 2432 {
2433 return "irc"; 2433 return "irc";
2434 } 2434 }
2435 2435
2436 static void irc_list_emblems(struct buddy *b, char **se, char **sw, char **nw, char **ne)
2437 {
2438 if (b->present == 0)
2439 *se = "offline";
2440 }
2441
2436 static int 2442 static int
2437 getlocalip(char *ip) /* Thanks, libfaim */ 2443 getlocalip(char *ip) /* Thanks, libfaim */
2438 { 2444 {
2439 struct hostent *hptr; 2445 struct hostent *hptr;
2440 char localhost[129]; 2446 char localhost[129];
2810 struct proto_user_opt *puo; 2816 struct proto_user_opt *puo;
2811 ret->protocol = PROTO_IRC; 2817 ret->protocol = PROTO_IRC;
2812 ret->options = OPT_PROTO_CHAT_TOPIC | OPT_PROTO_PASSWORD_OPTIONAL; 2818 ret->options = OPT_PROTO_CHAT_TOPIC | OPT_PROTO_PASSWORD_OPTIONAL;
2813 ret->name = g_strdup("IRC"); 2819 ret->name = g_strdup("IRC");
2814 ret->list_icon = irc_list_icon; 2820 ret->list_icon = irc_list_icon;
2821 ret->list_emblems = irc_list_emblems;
2815 ret->login = irc_login; 2822 ret->login = irc_login;
2816 ret->close = irc_close; 2823 ret->close = irc_close;
2817 ret->send_im = irc_send_im; 2824 ret->send_im = irc_send_im;
2818 ret->add_buddy = irc_add_buddy; 2825 ret->add_buddy = irc_add_buddy;
2819 ret->remove_buddy = irc_remove_buddy; 2826 ret->remove_buddy = irc_remove_buddy;

mercurial