comparison src/protocols/irc/irc.c @ 6695:0c5637b5462e

[gaim-migrate @ 7221] This is contact support. Really. It has a few bugs left in it, like sorting not working, and stuff like that, but it's pretty solid for the most part. I'm not in the mood to do a whole lot of typing, so just use and enjoy. committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Tue, 02 Sep 2003 03:41:10 +0000
parents a4622f1fb5a1
children 90fd056e755d
comparison
equal deleted inserted replaced
6694:2d2f04c5c7d2 6695:0c5637b5462e
34 #include "util.h" 34 #include "util.h"
35 #include "irc.h" 35 #include "irc.h"
36 36
37 static void irc_buddy_append(char *name, struct irc_buddy *ib, GString *string); 37 static void irc_buddy_append(char *name, struct irc_buddy *ib, GString *string);
38 38
39 static const char *irc_blist_icon(GaimAccount *a, struct buddy *b); 39 static const char *irc_blist_icon(GaimAccount *a, GaimBuddy *b);
40 static void irc_blist_emblems(struct buddy *b, char **se, char **sw, char **nw, char **ne); 40 static void irc_blist_emblems(GaimBuddy *b, char **se, char **sw, char **nw, char **ne);
41 static GList *irc_away_states(GaimConnection *gc); 41 static GList *irc_away_states(GaimConnection *gc);
42 /* static GList *irc_chat_info(GaimConnection *gc); */ 42 /* static GList *irc_chat_info(GaimConnection *gc); */
43 static void irc_login(GaimAccount *account); 43 static void irc_login(GaimAccount *account);
44 static void irc_login_cb(gpointer data, gint source, GaimInputCondition cond); 44 static void irc_login_cb(gpointer data, gint source, GaimInputCondition cond);
45 static void irc_close(GaimConnection *gc); 45 static void irc_close(GaimConnection *gc);
89 { 89 {
90 ib->flag = FALSE; 90 ib->flag = FALSE;
91 g_string_append_printf(string, "%s ", name); 91 g_string_append_printf(string, "%s ", name);
92 } 92 }
93 93
94 static const char *irc_blist_icon(GaimAccount *a, struct buddy *b) 94 static const char *irc_blist_icon(GaimAccount *a, GaimBuddy *b)
95 { 95 {
96 return "irc"; 96 return "irc";
97 } 97 }
98 98
99 static void irc_blist_emblems(struct buddy *b, char **se, char **sw, char **nw, char **ne) 99 static void irc_blist_emblems(GaimBuddy *b, char **se, char **sw, char **nw, char **ne)
100 { 100 {
101 if (b->present == GAIM_BUDDY_OFFLINE) 101 if (b->present == GAIM_BUDDY_OFFLINE)
102 *se = "offline"; 102 *se = "offline";
103 } 103 }
104 104