Mercurial > pidgin.yaz
comparison libpurple/protocols/irc/irc.h @ 28184:f9cf1e14838b
irc: Handle a buddy appearing in multiple groups properly.
Handle multiple PurpleBuddy's corresponding to the same buddy with a reference
count in struct irc_buddy and fix a string corruption that would be caused
by using g_hash_table_insert instead of replace (the wrong string is freed).
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Thu, 06 Aug 2009 04:59:12 +0000 |
parents | 24aa97dd601f |
children | e023b0378887 |
comparison
equal
deleted
inserted
replaced
28183:0e516784bbae | 28184:f9cf1e14838b |
---|---|
95 | 95 |
96 struct irc_buddy { | 96 struct irc_buddy { |
97 char *name; | 97 char *name; |
98 gboolean online; | 98 gboolean online; |
99 gboolean flag; | 99 gboolean flag; |
100 int ref; | |
100 }; | 101 }; |
101 | 102 |
102 typedef int (*IRCCmdCallback) (struct irc_conn *irc, const char *cmd, const char *target, const char **args); | 103 typedef int (*IRCCmdCallback) (struct irc_conn *irc, const char *cmd, const char *target, const char **args); |
103 | 104 |
104 int irc_send(struct irc_conn *irc, const char *buf); | 105 int irc_send(struct irc_conn *irc, const char *buf); |