Update of /cvsroot/gaim/gaim/src/protocols/trepia
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25868/src/protocols/trepia
Modified Files:
trepia.c
Log Message:
" 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
Index: trepia.c
===================================================================
RCS file: /cvsroot/gaim/gaim/src/protocols/trepia/trepia.c,v
retrieving revision 1.63
retrieving revision 1.64
diff -u -d -p -r1.63 -r1.64
--- trepia.c 31 Aug 2004 01:45:11 -0000 1.63
+++ trepia.c 1 Sep 2004 01:07:42 -0000 1.64
@@ -842,7 +842,7 @@ _parse_data(TrepiaSession *session, char
g_hash_table_insert(session->user_profiles, int_p, profile);
serv_got_update(session->gc,
- username, 1, 0,
+ username, TRUE, 0,
trepia_profile_get_login_time(profile), 0, 0);
/* Buddy Icon */
@@ -857,7 +857,7 @@ _parse_data(TrepiaSession *session, char
g_free(icon);
- serv_got_update(session->gc, username, 1, 0, 0, 0, 0);
+ serv_got_update(session->gc, username, TRUE, 0, 0, 0, 0);
}
/*
@@ -892,7 +892,7 @@ _parse_data(TrepiaSession *session, char
if (b != NULL)
serv_got_update(session->gc,
trepia_profile_get_login(profile),
- 0, 0, 0, 0, 0);
+ FALSE, 0, 0, 0, 0);
gaim_blist_remove_buddy(b);
|