Mercurial > pidgin
diff src/protocols/napster/napster.c @ 9927:fb08a0973b3e
[gaim-migrate @ 10819]
" Currently, the "loggedin" parameter of
serv_got_update() is of type int and used as a boolean.
I updated it and all references to be gboolean.
I also noticed that "presence" in
gaim_blist_update_buddy_presence() is also a really
boolean. of whether or not the buddy is currently
online. There seemed to be some confusion,
particularly in the silc plugin which tried to use a
GaimBuddyPresenceState (coincidentally (or perhaps not)
GAIM_BUDDY_OFFLINE and GAIM_BUDDY_ONLINE work as FALSE
and TRUE respectively). The value passed to
gaim_blist_update_buddy_presence() doesn't directly
become the buddy presence state and this patch helps
avoid confusion in this respect." --Daniel Atallah
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Wed, 01 Sep 2004 01:07:42 +0000 |
parents | e74eb0d11f86 |
children | f8e395a054e2 |
line wrap: on
line diff
--- a/src/protocols/napster/napster.c Wed Sep 01 00:48:38 2004 +0000 +++ b/src/protocols/napster/napster.c Wed Sep 01 01:07:42 2004 +0000 @@ -282,12 +282,12 @@ case 201: /* MSG_SERVER_SEARCH_RESULT */ res = g_strsplit(buf, " ", 0); - serv_got_update(gc, res[0], 1, 0, 0, 0, 0); + serv_got_update(gc, res[0], TRUE, 0, 0, 0, 0); g_strfreev(res); break; case 202: /* MSG_SERVER_SEARCH_END */ - serv_got_update(gc, buf, 0, 0, 0, 0, 0); + serv_got_update(gc, buf, FALSE, 0, 0, 0, 0); break; case 205: /* MSG_CLIENT_PRIVMSG */ @@ -301,14 +301,14 @@ case 209: /* MSG_SERVER_USER_SIGNON */ /* USERNAME SPEED */ res = g_strsplit(buf, " ", 2); - serv_got_update(gc, res[0], 1, 0, 0, 0, 0); + serv_got_update(gc, res[0], TRUE, 0, 0, 0, 0); g_strfreev(res); break; case 210: /* MSG_SERVER_USER_SIGNOFF */ /* USERNAME SPEED */ res = g_strsplit(buf, " ", 2); - serv_got_update(gc, res[0], 0, 0, 0, 0, 0); + serv_got_update(gc, res[0], FALSE, 0, 0, 0, 0); g_strfreev(res); break;