You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(5) |
Aug
(1) |
Sep
(3) |
Oct
|
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(63) |
Feb
(32) |
Mar
(20) |
Apr
(1) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
(2) |
2006 |
Jan
(1) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Dario Z. <ev...@us...> - 2005-03-02 22:39:58
|
Update of /cvsroot/gaim-bnet/gaim-bnet/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19304/src Modified Files: bnet.h buddy.c buddy.h conn.c conn.h proto.c Log Message: Polling and better buddy events code. See the changelog for details. Index: conn.h =================================================================== RCS file: /cvsroot/gaim-bnet/gaim-bnet/src/conn.h,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** conn.h 18 Feb 2005 09:46:46 -0000 1.9 --- conn.h 2 Mar 2005 22:39:47 -0000 1.10 *************** *** 75,78 **** --- 75,79 ---- gboolean welcome; + guint timer; gboolean fl_listing; gchar *vw_nick; // verbose where - nick Index: conn.c =================================================================== RCS file: /cvsroot/gaim-bnet/gaim-bnet/src/conn.c,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** conn.c 13 Feb 2005 00:19:49 -0000 1.12 --- conn.c 2 Mar 2005 22:39:47 -0000 1.13 *************** *** 349,352 **** --- 349,354 ---- if (conn->flood_timer) gaim_timeout_remove(conn->flood_timer); + if (conn->timer) + gaim_timeout_remove(conn->timer); g_list_foreach(conn->out_queue, bnet_list_destroy_all, NULL); g_list_free(conn->out_queue); Index: bnet.h =================================================================== RCS file: /cvsroot/gaim-bnet/gaim-bnet/src/bnet.h,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** bnet.h 7 Feb 2005 15:35:11 -0000 1.11 --- bnet.h 2 Mar 2005 22:39:47 -0000 1.12 *************** *** 33,36 **** --- 33,38 ---- #define BNET_INITIAL_BUFSIZE 1024 + #define BNET_FRIENDLIST_TIMEOUT 45000 + #include <glib.h> #include <string.h> Index: proto.c =================================================================== RCS file: /cvsroot/gaim-bnet/gaim-bnet/src/proto.c,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** proto.c 18 Feb 2005 09:46:46 -0000 1.24 --- proto.c 2 Mar 2005 22:39:47 -0000 1.25 *************** *** 45,71 **** } ! static void ! bnet_hash_check_buddy(gpointer key, gpointer value, gpointer user_data) { ! BNetConn *conn = BNET_CONN(user_data); ! BNetBuddy *buddy = BNET_BUDDY(value); ! if (buddy->fl_position == -1) { ! if (!buddy->new_entry) { ! /* Consider server list authoritative... if buddy was added by ! * local list and don't exist on server, then delete it ! */ ! GaimBuddy *gb = gaim_find_buddy(conn->account, buddy->name); ! g_return_if_fail(gb); ! gaim_blist_remove_buddy(gb); ! g_hash_table_remove(conn->buddies, buddy->name); ! } else { ! /* Buddy is added manually now... then we should add it to ! * the server list too ! */ ! bnet_conn_send(conn, "/friends add %s\n", buddy->name); ! bnet_conn_send(conn, "/where %s\n", buddy->name); ! } ! } } --- 45,55 ---- } ! static gboolean ! bnet_timeout_get_friendlist(gpointer arg) { ! BNetConn *conn = BNET_CONN(arg); ! bnet_conn_request_friends_list(conn); ! return TRUE; } *************** *** 201,205 **** room = w->data; ! b = bnet_buddy_hard_lookup(conn, nick); g_return_if_fail(b); --- 185,189 ---- room = w->data; ! b = bnet_buddy_lookup(conn, nick); g_return_if_fail(b); *************** *** 233,256 **** conn->welcome = TRUE; } static void ! bnet_proto_info_fl_online(BNetConn *conn, GList *args) { GaimConnection *gc; BNetBuddy *b; - GList *w = args; ! gchar *n, *nick; ! gchar *using, *chan; ! ! gaim_debug_info("bnet", "bnet_proto_info_fl_online\n"); ! n = w->data; ! w = g_list_next(w); ! nick = w->data; ! w = g_list_next(w); ! using = w->data; ! w = g_list_next(w); ! chan = w->data; b = bnet_buddy_hard_lookup(conn, nick); --- 217,237 ---- conn->welcome = TRUE; + + if (!conn->timer) + conn->timer = gaim_timeout_add(BNET_FRIENDLIST_TIMEOUT, + bnet_timeout_get_friendlist, conn); } static void ! bnet_proto_info_fl(BNetConn *conn, gboolean online, gchar *const *info) { GaimConnection *gc; BNetBuddy *b; ! const gchar *n = info[0]; ! const gchar *nick = info[1]; ! const gchar *prod = online ? info[2] : NULL; ! const gchar *location = online ? info[3] : NULL; ! gaim_debug_info("bnet", "bnet_proto_info_fl\n"); b = bnet_buddy_hard_lookup(conn, nick); *************** *** 258,279 **** sscanf(n, "%u", &b->fl_position); ! bnet_buddy_set_info(b, using, chan); gc = gaim_account_get_connection(conn->account); ! serv_got_update(gc, nick, TRUE, 0, 0, 0, 0); } static void ! bnet_proto_info_fl_offline(BNetConn *conn, GList *args) { ! GaimConnection *gc; ! BNetBuddy *b; GList *w = args; ! gchar *n, *nick; gaim_debug_info("bnet", "bnet_proto_info_fl_offline\n"); ! n = w->data; w = g_list_next(w); nick = w->data; --- 239,289 ---- sscanf(n, "%u", &b->fl_position); ! bnet_buddy_set_info(b, prod, location); gc = gaim_account_get_connection(conn->account); ! serv_got_update(gc, nick, online, 0, 0, 0, 0); } static void ! bnet_proto_info_fl_online(BNetConn *conn, GList *args) { GList *w = args; + gchar *info[4]; ! gaim_debug_info("bnet", "bnet_proto_info_fl_online\n"); ! ! info[0] = w->data; ! w = g_list_next(w); ! info[1] = w->data; ! w = g_list_next(w); ! info[2] = w->data; ! w = g_list_next(w); ! info[3] = w->data; ! ! bnet_proto_info_fl(conn, TRUE, info); ! } ! ! static void ! bnet_proto_info_fl_offline(BNetConn *conn, GList *args) { ! GList *w = args; ! gchar *info[2]; gaim_debug_info("bnet", "bnet_proto_info_fl_offline\n"); ! info[0] = w->data; w = g_list_next(w); + info[1] = w->data; + + bnet_proto_info_fl(conn, FALSE, info); + } + + static void + bnet_proto_info_fl_added(BNetConn *conn, GList *args) { + GList *w = args; + BNetBuddy *b; + + gchar *nick; + + gaim_debug_info("bnet", "bnet_proto_info_fl_added(%s)\n", w->data); + nick = w->data; *************** *** 281,288 **** g_return_if_fail(b); ! sscanf(n, "%u", &b->fl_position); ! gc = gaim_account_get_connection(conn->account); ! serv_got_update(gc, nick, FALSE, 0, 0, 0, 0); } --- 291,312 ---- g_return_if_fail(b); ! bnet_conn_send(conn, "/where %s\n", nick); ! } ! static void ! bnet_proto_info_fl_removed(BNetConn *conn, GList *args) { ! GList *w = args; ! BNetBuddy *b; ! ! gchar *nick; ! ! gaim_debug_info("bnet", "bnet_proto_info_fl_removed(%s)\n", w->data); ! ! nick = w->data; ! ! b = bnet_buddy_lookup(conn, nick); ! g_return_if_fail(b); ! ! bnet_buddies_remove(conn->buddies, b); } *************** *** 352,361 **** } - /* We receive all the server friend list! - * We must compare our buddy list with it and, if those differ, update - * the server one. - */ - g_hash_table_foreach(conn->buddies, bnet_hash_check_buddy, conn); - conn->fl_listing = FALSE; } --- 376,379 ---- *************** *** 437,440 **** --- 455,460 ---- { "$x: $x, using $x in the game $x.", bnet_proto_info_fl_online }, { "$x: $x, offline", bnet_proto_info_fl_offline }, + { "Added $x to your friends list.", bnet_proto_info_fl_added }, + { "Removed $x from your friends list.", bnet_proto_info_fl_removed }, { "$x is using $x in a private channel.", bnet_proto_info_where }, { "$x is using $x in the channel $x.", bnet_proto_info_where }, Index: buddy.c =================================================================== RCS file: /cvsroot/gaim-bnet/gaim-bnet/src/buddy.c,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** buddy.c 7 Feb 2005 19:51:46 -0000 1.17 --- buddy.c 2 Mar 2005 22:39:47 -0000 1.18 *************** *** 42,45 **** --- 42,54 ---- } + static void + bnet_hash_buddy_removed(gpointer key, gpointer value, gpointer user_data) { + BNetBuddy *buddy = BNET_BUDDY(value); + guint *pos = user_data; + + if (buddy->fl_position > *pos) + buddy->fl_position -= 1; + } + /****************************************************************************** * User API *************** *** 154,158 **** bnet_buddy_add(GaimConnection *gc, GaimBuddy *buddy, GaimGroup *group) { BNetConn *conn = BNET_CONN(gc->proto_data); - BNetBuddy *b; const gchar *norm; --- 163,166 ---- *************** *** 162,175 **** if (!g_hash_table_lookup(conn->buddies, norm)) { ! b = bnet_buddy_new(norm, buddy->name); ! if (conn->welcome) ! b->new_entry = TRUE; ! g_hash_table_insert(conn->buddies, b->norm, b); ! } else { ! /* Buddy already exists in local list, remove it */ gaim_blist_remove_buddy(buddy); } ! bnet_conn_request_friends_list(conn); } --- 170,192 ---- if (!g_hash_table_lookup(conn->buddies, norm)) { ! if (conn->welcome) { ! /* Manually added */ ! bnet_conn_send(conn, "/friends add %s\n", buddy->name); ! } } else { ! /* Buddy already exists, remove it */ gaim_blist_remove_buddy(buddy); } ! } ! ! BNetBuddy * ! bnet_buddy_lookup(BNetConn *conn, const gchar *name) { ! const gchar *norm; ! ! g_return_val_if_fail(conn, NULL); ! g_return_val_if_fail(name, NULL); ! ! norm = gaim_normalize(conn->account, name); ! return g_hash_table_lookup(conn->buddies, norm); } *************** *** 181,186 **** const gchar *norm; - gaim_debug_info("bnet", "bnet_buddy_hard_lookup\n"); - g_return_val_if_fail(conn, NULL); g_return_val_if_fail(name, NULL); --- 198,201 ---- *************** *** 189,205 **** if (!(b = g_hash_table_lookup(conn->buddies, norm))) { ! buddy = gaim_buddy_new(conn->account, name, NULL); ! group = gaim_find_group(BNET_DEFAULT_GROUP_NAME); ! if (!group) { ! group = gaim_group_new(BNET_DEFAULT_GROUP_NAME); ! gaim_blist_add_group(group, NULL); ! } ! gaim_blist_add_buddy(buddy, NULL, group, NULL); ! b = bnet_buddy_new(norm, name); ! b->new_entry = TRUE; ! g_hash_table_insert(conn->buddies, b->norm, b); } --- 204,221 ---- if (!(b = g_hash_table_lookup(conn->buddies, norm))) { ! b = bnet_buddy_new(norm, name); ! bnet_buddies_add(conn->buddies, b); ! if (!(buddy = gaim_find_buddy(conn->account, name))) { ! buddy = gaim_buddy_new(conn->account, name, NULL); ! group = gaim_find_group(BNET_DEFAULT_GROUP_NAME); ! if (!group) { ! group = gaim_group_new(BNET_DEFAULT_GROUP_NAME); ! gaim_blist_add_group(group, NULL); ! } ! gaim_blist_add_buddy(buddy, NULL, group, NULL); ! } } *************** *** 213,218 **** gaim_debug_info("bnet", "bnet_buddy_remove\n"); - g_hash_table_remove(conn->buddies, buddy->name); - bnet_conn_send(conn, "/friends remove %s\n", buddy->name); } --- 229,232 ---- *************** *** 220,225 **** void bnet_buddy_emblems(GaimBuddy *b, char **se, char **sw, char **nw, char **ne) { ! if(b->present == GAIM_BUDDY_OFFLINE) ! *se = "offline"; } --- 234,260 ---- void bnet_buddy_emblems(GaimBuddy *b, char **se, char **sw, char **nw, char **ne) { ! BNetConn *conn; ! BNetBuddy *bb; ! ! gchar *emblems[4] = { NULL, NULL, NULL, NULL }; ! guint i = 0; ! ! conn = BNET_CONN(b->account->gc->proto_data); ! bb = bnet_buddy_lookup(conn, b->name); ! ! if (!bb) { ! emblems[i++] = "notauthorized"; ! } else { ! if (b->present == GAIM_BUDDY_OFFLINE) { ! emblems[i++] = "offline"; ! } else { ! // TODO: check for away and others ! } ! } ! ! *se = emblems[0]; ! *sw = emblems[1]; ! *nw = emblems[2]; ! *ne = emblems[3]; } *************** *** 237,246 **** switch (b->present) { case GAIM_BUDDY_SIGNING_OFF: break; case GAIM_BUDDY_OFFLINE: g_string_append_printf(ret, ! "\n<b>%s:</b> Offline", _("Status")); break; case GAIM_BUDDY_ONLINE: if (bb->game) g_string_append_printf(ret, --- 272,289 ---- switch (b->present) { case GAIM_BUDDY_SIGNING_OFF: + g_string_append_printf(ret, + "\n<b>%s</b>: %s", _("Status"), _("Signing Offline")); break; + case GAIM_BUDDY_OFFLINE: g_string_append_printf(ret, ! "\n<b>%s</b>: %s", _("Status"), _("Offline")); break; + + case GAIM_BUDDY_SIGNING_ON: case GAIM_BUDDY_ONLINE: + g_string_append_printf(ret, + "\n<b>%s</b>: %s", _("Status"), _("Online")); + if (bb->game) g_string_append_printf(ret, *************** *** 250,256 **** "\n<b>%s:</b> %s", _("Location"), bb->location); break; - case GAIM_BUDDY_SIGNING_ON: - break; } } --- 293,300 ---- "\n<b>%s:</b> %s", _("Location"), bb->location); break; } + } else { + g_string_append_printf(ret, + "\n<b>%s</b>: %s", _("Status"), _("Not present on server")); } *************** *** 285,286 **** --- 329,344 ---- } + void + bnet_buddies_add(GHashTable *buddies, BNetBuddy *buddy) { + g_hash_table_insert(buddies, buddy->norm, buddy); + } + + void + bnet_buddies_remove(GHashTable *buddies, BNetBuddy *buddy) { + guint pos = buddy->fl_position; + + g_hash_table_remove(buddies, buddy->norm); + + if (pos != -1) + g_hash_table_foreach(buddies, bnet_hash_buddy_removed, &pos); + } Index: buddy.h =================================================================== RCS file: /cvsroot/gaim-bnet/gaim-bnet/src/buddy.h,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** buddy.h 4 Feb 2005 20:31:34 -0000 1.10 --- buddy.h 2 Mar 2005 22:39:47 -0000 1.11 *************** *** 66,69 **** --- 66,70 ---- void bnet_buddy_free(BNetBuddy *buddy); void bnet_buddy_add(GaimConnection *gc, GaimBuddy *buddy, GaimGroup *group); + BNetBuddy *bnet_buddy_lookup(BNetConn *conn, const gchar *name); BNetBuddy *bnet_buddy_hard_lookup(BNetConn *conn, const gchar *name); void bnet_buddy_remove(GaimConnection *gc, GaimBuddy *buddy, GaimGroup *group); *************** *** 74,77 **** --- 75,80 ---- /* Buddies API */ GHashTable *bnet_buddies_new(); + void bnet_buddies_add(GHashTable *buddies, BNetBuddy *buddy); + void bnet_buddies_remove(GHashTable *buddies, BNetBuddy *buddy); #ifdef __cplusplus |
From: Dario Z. <ev...@us...> - 2005-03-02 22:39:56
|
Update of /cvsroot/gaim-bnet/gaim-bnet In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19304 Modified Files: ChangeLog Log Message: Polling and better buddy events code. See the changelog for details. Index: ChangeLog =================================================================== RCS file: /cvsroot/gaim-bnet/gaim-bnet/ChangeLog,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** ChangeLog 18 Feb 2005 16:40:16 -0000 1.6 --- ChangeLog 2 Mar 2005 22:39:47 -0000 1.7 *************** *** 5,8 **** --- 5,12 ---- Bug Fixes: + * Added polling request of friends list to reach updates also from + not-mutual users (or users who send whisp messages in a language + different from english). (evew) + * Rewrited code about buddy add/remove/update events. (evew) * Fixed a bug about chat windows, where the old ones weren't handled properly. (evew) |
From: Don S. <ri...@us...> - 2005-02-18 16:40:25
|
Update of /cvsroot/gaim-bnet/gaim-bnet In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16228 Modified Files: ChangeLog VERSION configure.ac Log Message: Noting upcoming patch version and ChangeLogging evew's fixes Index: configure.ac =================================================================== RCS file: /cvsroot/gaim-bnet/gaim-bnet/configure.ac,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** configure.ac 10 Feb 2005 16:53:02 -0000 1.6 --- configure.ac 18 Feb 2005 16:40:16 -0000 1.7 *************** *** 4,8 **** # ! AC_INIT([gaim-bnet], [0.1.0], [gai...@li...]) AC_CANONICAL_SYSTEM AM_CONFIG_HEADER(pre_config.h) --- 4,8 ---- # ! AC_INIT([gaim-bnet], [0.1.1cvs], [gai...@li...]) AC_CANONICAL_SYSTEM AM_CONFIG_HEADER(pre_config.h) Index: VERSION =================================================================== RCS file: /cvsroot/gaim-bnet/gaim-bnet/VERSION,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** VERSION 10 Feb 2005 16:53:02 -0000 1.2 --- VERSION 18 Feb 2005 16:40:16 -0000 1.3 *************** *** 1 **** ! 0.1.0 --- 1 ---- ! 0.1.1cvs Index: ChangeLog =================================================================== RCS file: /cvsroot/gaim-bnet/gaim-bnet/ChangeLog,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** ChangeLog 10 Feb 2005 16:53:02 -0000 1.5 --- ChangeLog 18 Feb 2005 16:40:16 -0000 1.6 *************** *** 2,5 **** --- 2,12 ---- $Id$ + *gaim-bnet-0.1.1cvs + + Bug Fixes: + * Fixed a bug about chat windows, where the old ones weren't handled + properly. (evew) + * Fixed bug #1120540 - Disconnect Error (evew) + *gaim-bnet-0.1.0 (10 Feb 2005) |
From: Dario Z. <ev...@us...> - 2005-02-18 09:46:55
|
Update of /cvsroot/gaim-bnet/gaim-bnet/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28111 Modified Files: bnet.c chat.c conn.h proto.c Log Message: Fixed a bug about chat windows, where the old ones weren't handled properly. Index: bnet.c =================================================================== RCS file: /cvsroot/gaim-bnet/gaim-bnet/src/bnet.c,v retrieving revision 1.37 retrieving revision 1.38 diff -C2 -d -r1.37 -r1.38 *** bnet.c 10 Feb 2005 16:52:23 -0000 1.37 --- bnet.c 18 Feb 2005 09:46:46 -0000 1.38 *************** *** 264,268 **** NULL, /* roomlist_get_list */ NULL, /* roomlist_cancel */ ! NULL, /* roomlist_expand_catagory */ NULL, /* can_receive_file */ NULL /* send_file */ --- 264,268 ---- NULL, /* roomlist_get_list */ NULL, /* roomlist_cancel */ ! NULL, /* roomlist_expand_category */ NULL, /* can_receive_file */ NULL /* send_file */ Index: proto.c =================================================================== RCS file: /cvsroot/gaim-bnet/gaim-bnet/src/proto.c,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 *** proto.c 9 Feb 2005 18:49:12 -0000 1.23 --- proto.c 18 Feb 2005 09:46:46 -0000 1.24 *************** *** 591,594 **** --- 591,595 ---- const gchar* chan; GaimConnection *gc; + GaimConversation *convo; gc = gaim_account_get_connection(conn->account); *************** *** 597,601 **** if (conn->chan) g_free(conn->chan); - conn->chan = g_strdup(chan); --- 598,601 ---- *************** *** 603,607 **** g_hash_table_foreach_remove(conn->users, bnet_hash_destroy_all, NULL); ! serv_got_joined_chat(gc, ++conn->chan_id, chan); } --- 603,618 ---- g_hash_table_foreach_remove(conn->users, bnet_hash_destroy_all, NULL); ! convo = gaim_find_conversation_with_account(chan, conn->account); ! if (convo) { ! /* Use the old window */ ! GaimConvChat *chat = GAIM_CONV_CHAT(convo); ! conn->chan_id = gaim_conv_chat_get_id(chat); ! gaim_conv_chat_clear_users(chat); ! gaim_conv_chat_write(chat, "", _("Joined channel."), ! GAIM_MESSAGE_SYSTEM, time(0)); ! } else { ! conn->chan_id = conn->chan_id_unique += 1; ! serv_got_joined_chat(gc, conn->chan_id, conn->chan); ! } } Index: chat.c =================================================================== RCS file: /cvsroot/gaim-bnet/gaim-bnet/src/chat.c,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** chat.c 3 Feb 2005 15:12:48 -0000 1.5 --- chat.c 18 Feb 2005 09:46:46 -0000 1.6 *************** *** 81,85 **** conn = BNET_CONN(gc->proto_data); chan = g_hash_table_lookup(data, "channel"); - convo = gaim_find_conversation_with_account(conn->chan, conn->account); if (!strcmp(conn->chan, chan)) { --- 81,84 ---- Index: conn.h =================================================================== RCS file: /cvsroot/gaim-bnet/gaim-bnet/src/conn.h,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** conn.h 3 Feb 2005 15:12:48 -0000 1.8 --- conn.h 18 Feb 2005 09:46:46 -0000 1.9 *************** *** 64,67 **** --- 64,68 ---- gchar *chan; guint chan_id; + guint chan_id_unique; GHashTable *users; |
From: Dario Z. <ev...@us...> - 2005-02-13 00:19:58
|
Update of /cvsroot/gaim-bnet/gaim-bnet/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4936 Modified Files: conn.c Log Message: Fixed bug #1120540 - Disconnect Error Index: conn.c =================================================================== RCS file: /cvsroot/gaim-bnet/gaim-bnet/src/conn.c,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** conn.c 8 Feb 2005 03:42:35 -0000 1.11 --- conn.c 13 Feb 2005 00:19:49 -0000 1.12 *************** *** 291,294 **** --- 291,295 ---- conn = g_new0(BNetConn, 1); + conn->fd = -1; gc = gaim_account_get_connection(account); *************** *** 329,332 **** --- 330,336 ---- g_return_if_fail(conn); + if (conn->fd != -1) + close(conn->fd); + g_free(conn->inbuf); |
From: Don S. <ri...@us...> - 2005-02-10 16:53:10
|
Update of /cvsroot/gaim-bnet/gaim-bnet In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11950 Modified Files: ChangeLog VERSION bnet_config.h.mingw configure.ac Log Message: Let's have a release today. I need to make sure I got it in all places Index: bnet_config.h.mingw =================================================================== RCS file: /cvsroot/gaim-bnet/gaim-bnet/bnet_config.h.mingw,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** bnet_config.h.mingw 7 Feb 2005 15:35:10 -0000 1.1 --- bnet_config.h.mingw 10 Feb 2005 16:53:02 -0000 1.2 *************** *** 245,249 **** /* Define to the full name and version of this package. */ ! /* #undef BNET_PACKAGE_STRING "gaim-bnet 0.1.0cvs" */ /* Define to the one symbol short name of this package. */ --- 245,249 ---- /* Define to the full name and version of this package. */ ! /* #undef BNET_PACKAGE_STRING "gaim-bnet 0.1.0" */ /* Define to the one symbol short name of this package. */ *************** *** 251,255 **** /* Define to the version of this package. */ ! /* #undef BNET_PACKAGE_VERSION "0.1.0cvs" */ /* Define if <inttypes.h> exists and defines unusable PRI* macros. */ --- 251,255 ---- /* Define to the version of this package. */ ! /* #undef BNET_PACKAGE_VERSION "0.1.0" */ /* Define if <inttypes.h> exists and defines unusable PRI* macros. */ *************** *** 272,276 **** /* Version number of package */ ! /* #undef VERSION "0.1.0cvs" */ /* Define to empty if `const' does not conform to ANSI C. */ --- 272,276 ---- /* Version number of package */ ! /* #undef VERSION "0.1.0" */ /* Define to empty if `const' does not conform to ANSI C. */ Index: configure.ac =================================================================== RCS file: /cvsroot/gaim-bnet/gaim-bnet/configure.ac,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** configure.ac 7 Feb 2005 21:59:00 -0000 1.5 --- configure.ac 10 Feb 2005 16:53:02 -0000 1.6 *************** *** 4,8 **** # ! AC_INIT([gaim-bnet], [0.1.0cvs], [gai...@li...]) AC_CANONICAL_SYSTEM AM_CONFIG_HEADER(pre_config.h) --- 4,8 ---- # ! AC_INIT([gaim-bnet], [0.1.0], [gai...@li...]) AC_CANONICAL_SYSTEM AM_CONFIG_HEADER(pre_config.h) Index: VERSION =================================================================== RCS file: /cvsroot/gaim-bnet/gaim-bnet/VERSION,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** VERSION 28 Jul 2004 03:08:20 -0000 1.1.1.1 --- VERSION 10 Feb 2005 16:53:02 -0000 1.2 *************** *** 1 **** ! 0.1.0cvs --- 1 ---- ! 0.1.0 Index: ChangeLog =================================================================== RCS file: /cvsroot/gaim-bnet/gaim-bnet/ChangeLog,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** ChangeLog 7 Feb 2005 21:31:13 -0000 1.4 --- ChangeLog 10 Feb 2005 16:53:02 -0000 1.5 *************** *** 2,6 **** $Id$ ! *gaim-bnet-0.1.0cvs: New Features: * Logging into Battle.net --- 2,7 ---- $Id$ ! *gaim-bnet-0.1.0 (10 Feb 2005) ! New Features: * Logging into Battle.net |
From: Don S. <ri...@us...> - 2005-02-10 16:52:32
|
Update of /cvsroot/gaim-bnet/gaim-bnet/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11627/src Modified Files: bnet.c Log Message: Adding Daniel Index: bnet.c =================================================================== RCS file: /cvsroot/gaim-bnet/gaim-bnet/src/bnet.c,v retrieving revision 1.36 retrieving revision 1.37 diff -C2 -d -r1.36 -r1.37 *** bnet.c 7 Feb 2005 15:35:11 -0000 1.36 --- bnet.c 10 Feb 2005 16:52:23 -0000 1.37 *************** *** 287,291 **** NULL, /* summary */ NULL, /* description */ ! "Gary Kramlich, Don Seiler, Dario Zilocchi", /* author */ BNET_WEBSITE, /* homepage */ NULL, /* load */ --- 287,291 ---- NULL, /* summary */ NULL, /* description */ ! "Gary Kramlich, Don Seiler, Dario Zilocchi, Daniel Atallah", /* author */ BNET_WEBSITE, /* homepage */ NULL, /* load */ |
From: Don S. <ri...@us...> - 2005-02-09 18:51:46
|
Update of /cvsroot/gaim-bnet/gaim-bnet In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20549 Modified Files: README Log Message: Touch-up Index: README =================================================================== RCS file: /cvsroot/gaim-bnet/gaim-bnet/README,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** README 28 Jul 2004 03:08:20 -0000 1.1.1.1 --- README 9 Feb 2005 18:51:36 -0000 1.2 *************** *** 1,14 **** gaim-bnet: ! Protocol Plugin (prpl) for Gaim to send messages via Battle.Net chat protocol. ! ! About ! ===== ! Foo. INSTALL ======= ! Please see the INSTALL file. LICENSE ======= ! This software is licensed under the GPL v2. See COPYING for full text of license. --- 1,12 ---- gaim-bnet: ! Protocol Plugin (prpl) for Gaim to send messages via Battle.Net chat ! protocol. INSTALL ======= ! Please see the INSTALL file for build and installation instructions. LICENSE ======= ! This software is licensed under the GPL v2. See COPYING for full ! text of license. |
From: Don S. <ri...@us...> - 2005-02-09 18:49:21
|
Update of /cvsroot/gaim-bnet/gaim-bnet/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19535 Modified Files: proto.c Log Message: Patch #1119481 from evew Index: proto.c =================================================================== RCS file: /cvsroot/gaim-bnet/gaim-bnet/src/proto.c,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** proto.c 7 Feb 2005 15:35:11 -0000 1.22 --- proto.c 9 Feb 2005 18:49:12 -0000 1.23 *************** *** 92,96 **** GList *al = NULL; ! gboolean err = FALSE; for (w = msg, k = model; !err && *w && *k; w++, k++) { --- 92,96 ---- GList *al = NULL; ! gboolean err = FALSE, last = FALSE; for (w = msg, k = model; !err && *w && *k; w++, k++) { *************** *** 117,122 **** case 'x': ! if (!(p = strchr(k, '$'))) tt = strlen(k+1); else tt = p-k - 1; --- 117,124 ---- case 'x': ! if (!(p = strchr(k, '$'))) { tt = strlen(k+1); + last = TRUE; + } else tt = p-k - 1; *************** *** 125,134 **** p = (gchar *)(w + strlen(w)); else { ! char cmp_str[tt + 1]; ! strncpy(cmp_str, k+1, tt); ! cmp_str[tt] = '\0'; ! if (!(p = strstr(w, cmp_str))) { ! err = TRUE; ! break; } } --- 127,144 ---- p = (gchar *)(w + strlen(w)); else { ! if (last) { ! p = (gchar*)(w+strlen(w)-tt); ! if (memcmp(p, k+1, tt)) { ! err = TRUE; ! break; ! } ! } else { ! char cmp_str[tt + 1]; ! strncpy(cmp_str, k+1, tt); ! cmp_str[tt] = '\0'; ! if (!(p = strstr(w, cmp_str))) { ! err = TRUE; ! break; ! } } } |
From: Don S. <ri...@us...> - 2005-02-08 16:44:30
|
Update of /cvsroot/gaim-bnet/htdocs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24809 Modified Files: faq.php Log Message: Added note about unblocking Index: faq.php =================================================================== RCS file: /cvsroot/gaim-bnet/htdocs/faq.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** faq.php 3 Feb 2005 18:24:09 -0000 1.5 --- faq.php 8 Feb 2005 16:44:20 -0000 1.6 *************** *** 7,10 **** --- 7,12 ---- <h2>Frequently Asked Questions</h2> + <p>This page is intended to answer what could be some frequently asked questions about gaim-bnet. We highly recommend reading it before contacting us with any questions. You should also read the <a href="http://gaim.sourceforge.net/faq.php">Gaim FAQ</a>, as some questions might deal with general Gaim usage rather than gaim-bnet.</p? + <p> <b>Contact</b> *************** *** 22,25 **** --- 24,34 ---- </p> + <p> + <b>Privacy</b> + <ul> + <li><a href="#q4">How do I unblock/unsquelch/unignore a battle.net user/friend?</a></li> + </ul> + </p> + <hr noshade="noshade" size="1" /> *************** *** 57,60 **** --- 66,79 ---- </p> + <p> + <a name="Privacy"><b>Privacy</b></a> + <dl> + <dt id="q4"><b>How do I unblock/unsquelch/unignore a battle.net user/friend?</b/></dt> + <dd> + <p>This in the <a href="http://gaim.sourceforge.net/faq.php#q25">Gaim FAQ</a>.</p> + </dd> + </dl> + </p> + <?php require_once("footer.php") ?> |
From: Daniel A. <dat...@us...> - 2005-02-08 15:03:35
|
Update of /cvsroot/gaim-bnet/gaim-bnet In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16280 Modified Files: Makefile.mingw Log Message: Fix installer target Index: Makefile.mingw =================================================================== RCS file: /cvsroot/gaim-bnet/gaim-bnet/Makefile.mingw,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Makefile.mingw 7 Feb 2005 15:35:10 -0000 1.1 --- Makefile.mingw 8 Feb 2005 15:03:25 -0000 1.2 *************** *** 32,37 **** ! #installer: all ! # makensis.exe /DGAIM-BNET_VERSION="$(GF_VERSION)" /DGAIM_VERSION="$(GAIM_VERSION)" gaim-bnet-installer.nsi clean: --- 32,37 ---- ! installer: all ! makensis.exe /DBNET_VERSION="$(BN_VERSION)" /DGAIM_VERSION="$(GAIM_VERSION)" gaim-bnet-installer.nsi clean: |
From: Daniel A. <dat...@us...> - 2005-02-08 03:42:44
|
Update of /cvsroot/gaim-bnet/gaim-bnet/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21955/src Modified Files: conn.c Log Message: This should prevent crashing on win32 and any other platforms that don't like NULL var args. Index: conn.c =================================================================== RCS file: /cvsroot/gaim-bnet/gaim-bnet/src/conn.c,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** conn.c 27 Jan 2005 21:26:41 -0000 1.10 --- conn.c 8 Feb 2005 03:42:35 -0000 1.11 *************** *** 50,54 **** bnet_conn_send(BNetConn *conn, const gchar *fmt, ...) { va_list args; ! gchar *buf; g_return_if_fail(conn); --- 50,54 ---- bnet_conn_send(BNetConn *conn, const gchar *fmt, ...) { va_list args; ! gchar *buf = NULL; g_return_if_fail(conn); *************** *** 56,60 **** va_start(args, fmt); ! buf = g_strdup_vprintf(fmt, args); va_end(args); --- 56,62 ---- va_start(args, fmt); ! if (args) { ! buf = g_strdup_vprintf(fmt, args); ! } va_end(args); |
From: Don S. <ri...@us...> - 2005-02-07 22:39:52
|
Update of /cvsroot/gaim-bnet/gaim-bnet In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3094 Modified Files: AUTHORS Log Message: Welcome Daniel Index: AUTHORS =================================================================== RCS file: /cvsroot/gaim-bnet/gaim-bnet/AUTHORS,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** AUTHORS 8 Jan 2005 18:33:25 -0000 1.4 --- AUTHORS 7 Feb 2005 22:39:26 -0000 1.5 *************** *** 1,9 **** gaim-bnet - Battle.net protocol plugin for Gaim ! IRC: #gaim-bnet on irc.freenode.net ! ! Developers ! ---------- Gary 'grim' Kramlich ! Don 'rizzo' Seiler <do...@NO...> Dario 'evew' Zilocchi --- 1,14 ---- gaim-bnet - Battle.net protocol plugin for Gaim ! Developers (in alphabetical order): ! ----------------------------------- ! Daniel 'datallah' Atallah Gary 'grim' Kramlich ! Don 'rizzo' Seiler Dario 'evew' Zilocchi + + Contact information: + -------------------- + IRC: #gaim-bnet on irc.freenode.net + Email: gai...@li... + WWW: http://gaim-bnet.sourceforge.net |
From: Gary K. <amc...@us...> - 2005-02-07 22:01:48
|
Update of /cvsroot/gaim-bnet/gaim-bnet/nsis/translations In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26922/nsis/translations Added Files: .cvsignore Makefile.am Log Message: ok, helps if I add the new files.. --- NEW FILE: .cvsignore --- Makefile Makefile.in --- NEW FILE: Makefile.am --- EXTRA_DIST = \ english.nsh |
From: Gary K. <amc...@us...> - 2005-02-07 22:01:47
|
Update of /cvsroot/gaim-bnet/gaim-bnet/nsis In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26922/nsis Added Files: .cvsignore Makefile.am Log Message: ok, helps if I add the new files.. --- NEW FILE: .cvsignore --- Makefile Makefile.in --- NEW FILE: Makefile.am --- SUBDIRS = translations EXTRA_DIST = \ header.bmp \ install.ico |
From: Gary K. <amc...@us...> - 2005-02-07 21:59:12
|
Update of /cvsroot/gaim-bnet/gaim-bnet In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26098 Modified Files: Makefile.am configure.ac Log Message: this should work nicely.. Index: configure.ac =================================================================== RCS file: /cvsroot/gaim-bnet/gaim-bnet/configure.ac,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** configure.ac 8 Jan 2005 10:55:35 -0000 1.4 --- configure.ac 7 Feb 2005 21:59:00 -0000 1.5 *************** *** 128,131 **** --- 128,133 ---- doc/Makefile intl/Makefile + nsis/Makefile + nsis/translations/Makefile pixmaps/Makefile po/Makefile.in Index: Makefile.am =================================================================== RCS file: /cvsroot/gaim-bnet/gaim-bnet/Makefile.am,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** Makefile.am 7 Feb 2005 21:53:27 -0000 1.5 --- Makefile.am 7 Feb 2005 21:59:00 -0000 1.6 *************** *** 8,14 **** gaim-bnet-installer.nsi \ bnet_config.h.mingw \ ! po/ChangeLog ! SUBDIRS = doc intl pixmaps po src BUILT_SOURCES = bnet_config.h --- 8,15 ---- gaim-bnet-installer.nsi \ bnet_config.h.mingw \ ! po/ChangeLog \ ! po/Makefile.mingw ! SUBDIRS = doc intl nsis pixmaps po src BUILT_SOURCES = bnet_config.h |
From: Don S. <ri...@us...> - 2005-02-07 21:53:38
|
Update of /cvsroot/gaim-bnet/gaim-bnet In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24681 Modified Files: Makefile.am Log Message: Take PROTOCOL out of Makefile.am, added NSIS files Index: Makefile.am =================================================================== RCS file: /cvsroot/gaim-bnet/gaim-bnet/Makefile.am,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Makefile.am 8 Jan 2005 12:37:21 -0000 1.4 --- Makefile.am 7 Feb 2005 21:53:27 -0000 1.5 *************** *** 4,10 **** INSTALL \ NEWS \ - PROTOCOL \ README \ VERSION \ po/ChangeLog --- 4,11 ---- INSTALL \ NEWS \ README \ VERSION \ + gaim-bnet-installer.nsi \ + bnet_config.h.mingw \ po/ChangeLog |
From: Don S. <ri...@us...> - 2005-02-07 21:31:22
|
Update of /cvsroot/gaim-bnet/gaim-bnet In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19761 Modified Files: ChangeLog Log Message: Adding more features to list Index: ChangeLog =================================================================== RCS file: /cvsroot/gaim-bnet/gaim-bnet/ChangeLog,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** ChangeLog 18 Jan 2005 21:48:26 -0000 1.3 --- ChangeLog 7 Feb 2005 21:31:13 -0000 1.4 *************** *** 7,10 **** * Chat public chat rooms * Private (whisper) chat with users ! * Adding friends to buddy list ! * Checking buddy stats via buddy node menu --- 7,12 ---- * Chat public chat rooms * Private (whisper) chat with users ! * Adding/removing friends and chat rooms to/from buddy list ! * Checking buddy game stats via buddy node menu ! * Use gaim's privacy tools for squelch/unsquelch annoying users ! * MinGW setup from datallah for win32 building |
From: Don S. <ri...@us...> - 2005-02-07 19:52:05
|
Update of /cvsroot/gaim-bnet/gaim-bnet/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1206/src Modified Files: buddy.c Log Message: Don't need to deal with conn->vw_nick. Thanks to Dario for pointing out this folly. Index: buddy.c =================================================================== RCS file: /cvsroot/gaim-bnet/gaim-bnet/src/buddy.c,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** buddy.c 4 Feb 2005 20:31:34 -0000 1.16 --- buddy.c 7 Feb 2005 19:51:46 -0000 1.17 *************** *** 94,101 **** BNetConn *conn = BNET_CONN(gc->proto_data); - if (conn->vw_nick) - g_free(conn->vw_nick); - conn->vw_nick = g_strdup(gaim_normalize(conn->account, who)); - gaim_debug_info("bnet", "/squelch %s\n", who); bnet_conn_send(conn, "/squelch %s\n", who); --- 94,97 ---- *************** *** 105,112 **** BNetConn *conn = BNET_CONN(gc->proto_data); - if (conn->vw_nick) - g_free(conn->vw_nick); - conn->vw_nick = g_strdup(gaim_normalize(conn->account, who)); - gaim_debug_info("bnet", "/unsquelch %s\n", who); bnet_conn_send(conn, "/unsquelch %s\n", who); --- 101,104 ---- |
From: Don S. <ri...@us...> - 2005-02-07 15:50:36
|
Update of /cvsroot/gaim-bnet/gaim-bnet/nsis/translations In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12443/nsis/translations Added Files: english.nsh Log Message: Adding NSIS installer files, based on what datallah did for SNPP. Need to be tested. --- NEW FILE: english.nsh --- ;; ;; english.nsh ;; ;; Default language strings for the Windows gaim-bnet NSIS installer. ;; Windows Code page: 1252 ;; ; Startup Gaim check LangString GAIM_NEEDED ${LANG_ENGLISH} "Gaim-BNet requires that Gaim be installed. You must install Gaim before installing Gaim-BNet." LangString BNET_TITLE ${LANG_ENGLISH} "Gaim-BNet plugin for Gaim" LangString NO_GAIM_VERSION ${LANG_ENGLISH} "Unable to determine installed Gaim version." LangString BAD_GAIM_VERSION_1 ${LANG_ENGLISH} "Incompatible version.$\r$\n$\r$\nThis version of the Gaim-BNet plugin was built for Gaim version ${GAIM_VERSION}. It appears that you have Gaim version" LangString BAD_GAIM_VERSION_2 ${LANG_ENGLISH} "installed.$\r$\n$\r$\nSee http://gaim-bnet.sourceforge.net for more information." ; Overrides for default text in windows: LangString WELCOME_TITLE ${LANG_ENGLISH} "Gaim-BNet v${BNET_VERSION} Installer" LangString WELCOME_TEXT ${LANG_ENGLISH} "Note: This version of the plugin is designed for Gaim ${GAIM_VERSION}, and will not install or function with other versions of Gaim.\r\n\r\nWhen you upgrade your version of Gaim, you must uninstall or upgrade this plugin as well.\r\n\r\n" LangString DIR_SUBTITLE ${LANG_ENGLISH} "Please locate the directory where Gaim is installed" LangString DIR_INNERTEXT ${LANG_ENGLISH} "Install in this Gaim folder:" LangString FINISH_TITLE ${LANG_ENGLISH} "Gaim-BNet v${BNET_VERSION} Install Complete" LangString FINISH_TEXT ${LANG_ENGLISH} "You will need to restart Gaim for the plugin to be loaded." ; during install uninstaller LangString BNET_PROMPT_WIPEOUT ${LANG_ENGLISH} "The libbnet.dll plugin is about to be deleted from your Gaim/plugins directory. Continue?" ; for windows uninstall LangString BNET_UNINSTALL_DESC ${LANG_ENGLISH} "Gaim-BNet Plugin (remove only)" LangString un.BNET_UNINSTALL_ERROR_1 ${LANG_ENGLISH} "The uninstaller could not find registry entries for Gaim-BNET.$\rIt is likely that another user installed the plugin." LangString un.BNET_UNINSTALL_ERROR_2 ${LANG_ENGLISH} "You do not have the permissions necessary to uninstall the plugin." |
From: Don S. <ri...@us...> - 2005-02-07 15:50:36
|
Update of /cvsroot/gaim-bnet/gaim-bnet/nsis In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12443/nsis Added Files: header.bmp install.ico Log Message: Adding NSIS installer files, based on what datallah did for SNPP. Need to be tested. --- NEW FILE: header.bmp --- (This appears to be a binary file; contents omitted.) --- NEW FILE: install.ico --- (This appears to be a binary file; contents omitted.) |
From: Don S. <ri...@us...> - 2005-02-07 15:50:36
|
Update of /cvsroot/gaim-bnet/gaim-bnet In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12443 Added Files: gaim-bnet-installer.nsi Log Message: Adding NSIS installer files, based on what datallah did for SNPP. Need to be tested. --- NEW FILE: gaim-bnet-installer.nsi --- ; NSIS Script For Gaim-BNet Plugin ; Author Don Seiler ; Based on the Gaim-BNET installer by Daniel Atallah ; Uses NSIS v2.0 Name "Gaim-BNET ${BNET_VERSION}" ; Registry keys: !define BNET_REG_KEY "SOFTWARE\gaim-BNET" !define BNET_UNINSTALL_KEY "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\gaim-BNET" !define BNET_UNINST_EXE "gaim-BNET-uninst.exe" !define BNET_DLL "libBNET.dll" !define BNET_UNINSTALL_LNK "Gaim-BNET Uninstall.lnk" !include "MUI.nsh" ;Do A CRC Check CRCCheck On ;Output File Name OutFile "gaim-BNET-${BNET_VERSION}.exe" ShowInstDetails show ShowUnInstDetails show SetCompressor lzma ; Translations !include "nsis\translations\english.nsh" ; Modern UI Configuration !define MUI_ICON .\nsis\install.ico !define MUI_UNICON .\nsis\install.ico !define MUI_HEADERIMAGE !define MUI_HEADERIMAGE_BITMAP "nsis\header.bmp" ; Pages !define MUI_WELCOMEPAGE_TITLE $(WELCOME_TITLE) !define MUI_WELCOMEPAGE_TEXT $(WELCOME_TEXT) !insertmacro MUI_PAGE_WELCOME !insertmacro MUI_PAGE_LICENSE ".\COPYING" !define MUI_DIRECTORYPAGE_TEXT_TOP $(DIR_SUBTITLE) !define MUI_DIRECTORYPAGE_TEXT_DESTINATION $(DIR_INNERTEXT) !insertmacro MUI_PAGE_DIRECTORY !insertmacro MUI_PAGE_INSTFILES !define MUI_FINISHPAGE_TITLE $(FINISH_TITLE) !define MUI_FINISHPAGE_TEXT $(FINISH_TEXT) !insertmacro MUI_PAGE_FINISH ; MUI Config !define MUI_CUSTOMFUNCTION_GUIINIT checkGaimVersion !define MUI_ABORTWARNING !define MUI_UNINSTALLER !define MUI_PROGRESSBAR smooth !define MUI_INSTALLCOLORS /windows !insertmacro MUI_LANGUAGE "English" !define MUI_LICENSEPAGE_RADIOBUTTONS ;The Default Installation Directory InstallDir "$PROGRAMFILES\gaim" InstallDirRegKey HKLM SOFTWARE\gaim "" Section -SecUninstallOldPlugin ; Check install rights.. Call CheckUserInstallRights Pop $R0 StrCmp $R0 "HKLM" rights_hklm StrCmp $R0 "HKCU" rights_hkcu done rights_hkcu: ReadRegStr $R1 HKCU "${BNET_REG_KEY}" "" ReadRegStr $R2 HKCU "${BNET_REG_KEY}" "Version" ReadRegStr $R3 HKCU "${BNET_UNINSTALL_KEY}" "UninstallString" Goto try_uninstall rights_hklm: ReadRegStr $R1 HKLM "${BNET_REG_KEY}" "" ReadRegStr $R2 HKLM "${BNET_REG_KEY}" "Version" ReadRegStr $R3 HKLM "${BNET_UNINSTALL_KEY}" "UninstallString" ; If previous version exists .. remove try_uninstall: StrCmp $R1 "" done StrCmp $R2 "" uninstall_problem IfFileExists $R3 0 uninstall_problem ; Have uninstall string.. go ahead and uninstall. SetOverwrite on ; Need to copy uninstaller outside of the install dir ClearErrors CopyFiles /SILENT $R3 "$TEMP\${BNET_UNINST_EXE}" SetOverwrite off IfErrors uninstall_problem ; Ready to uninstall.. ClearErrors ExecWait '"$TEMP\${BNET_UNINST_EXE}" /S _?=$R1' IfErrors exec_error Delete "$TEMP\${BNET_UNINST_EXE}" Goto done exec_error: Delete "$TEMP\${BNET_UNINST_EXE}" Goto uninstall_problem uninstall_problem: ; Just delete the plugin and uninstaller, and remove Registry key MessageBox MB_YESNO $(BNET_PROMPT_WIPEOUT) IDYES do_wipeout IDNO cancel_install cancel_install: Quit do_wipeout: StrCmp $R0 "HKLM" del_lm_reg del_cu_reg del_cu_reg: DeleteRegKey HKCU ${BNET_REG_KEY} Goto uninstall_prob_cont del_lm_reg: DeleteRegKey HKLM ${BNET_REG_KEY} uninstall_prob_cont: ; plugin DLL Delete "$R1\plugins\${BNET_DLL}" ; pixmaps Delete "$R1\pixmaps\gaim\status\default\BNET.png" Delete "$R3" done: SectionEnd Section "Install" Call CheckUserInstallRights Pop $R0 StrCmp $R0 "NONE" instrights_none StrCmp $R0 "HKLM" instrights_hklm instrights_hkcu instrights_hklm: ; Write the version registry keys: WriteRegStr HKLM ${BNET_REG_KEY} "" "$INSTDIR" WriteRegStr HKLM ${BNET_REG_KEY} "Version" "${BNET_VERSION}" ; Write the uninstall keys for Windows WriteRegStr HKLM ${BNET_UNINSTALL_KEY} "DisplayName" "$(BNET_UNINSTALL_DESC)" WriteRegStr HKLM ${BNET_UNINSTALL_KEY} "UninstallString" "$INSTDIR\${BNET_UNINST_EXE}" SetShellVarContext "all" Goto install_files instrights_hkcu: ; Write the version registry keys: WriteRegStr HKCU ${BNET_REG_KEY} "" "$INSTDIR" WriteRegStr HKCU ${BNET_REG_KEY} "Version" "${BNET_VERSION}" ; Write the uninstall keys for Windows WriteRegStr HKCU ${BNET_UNINSTALL_KEY} "DisplayName" "$(BNET_UNINSTALL_DESC)" WriteRegStr HKCU ${BNET_UNINSTALL_KEY} "UninstallString" "$INSTDIR\${BNET_UNINST_EXE}" Goto install_files instrights_none: ; No registry keys for us... install_files: SetOutPath "$INSTDIR\plugins" SetCompress Auto SetOverwrite on File "src\${BNET_DLL}" SetOutPath "$INSTDIR\pixmaps\gaim\status\default" File "pixmaps\BNET.png" StrCmp $R0 "NONE" done CreateShortCut "$SMPROGRAMS\Gaim\${BNET_UNINSTALL_LNK}" "$INSTDIR\${BNET_UNINST_EXE}" WriteUninstaller "$INSTDIR\${BNET_UNINST_EXE}" SetOverWrite off done: SectionEnd Section Uninstall Call un.CheckUserInstallRights Pop $R0 StrCmp $R0 "NONE" no_rights StrCmp $R0 "HKCU" try_hkcu try_hklm try_hkcu: ReadRegStr $R0 HKCU "${BNET_REG_KEY}" "" StrCmp $R0 $INSTDIR 0 cant_uninstall ; HKCU install path matches our INSTDIR.. so uninstall DeleteRegKey HKCU "${BNET_REG_KEY}" DeleteRegKey HKCU "${BNET_UNINSTALL_KEY}" Goto cont_uninstall try_hklm: ReadRegStr $R0 HKLM "${BNET_REG_KEY}" "" StrCmp $R0 $INSTDIR 0 try_hkcu ; HKLM install path matches our INSTDIR.. so uninstall DeleteRegKey HKLM "${BNET_REG_KEY}" DeleteRegKey HKLM "${BNET_UNINSTALL_KEY}" ; Sets start menu and desktop scope to all users.. SetShellVarContext "all" cont_uninstall: ; plugin Delete "$INSTDIR\plugins\${BNET_DLL}" ; pixmaps Delete "$INSTDIR\pixmaps\gaim\status\default\BNET.png" ; uninstaller Delete "$INSTDIR\${BNET_UNINST_EXE}" ; uninstaller shortcut Delete "$SMPROGRAMS\Gaim\${BNET_UNINSTALL_LNK}" ; try to delete the Gaim directories, in case it has already uninstalled RMDir "$INSTDIR\plugins" RMDir "$INSTDIR" RMDir "$SMPROGRAMS\Gaim" Goto done cant_uninstall: MessageBox MB_OK $(un.BNET_UNINSTALL_ERROR_1) IDOK Quit no_rights: MessageBox MB_OK $(un.BNET_UNINSTALL_ERROR_2) IDOK Quit done: SectionEnd Function .onVerifyInstDir IfFileExists $INSTDIR\gaim.exe Good1 Abort Good1: FunctionEnd Function checkGaimVersion Push $R0 Push $R1 Push $R2 ClearErrors ReadRegStr $R0 HKLM "SOFTWARE\gaim" "version" IfErrors readHKCUGaimVersion compareVersion readHKCUGaimVersion: ReadRegStr $R0 HKCU "SOFTWARE\gaim" "version" IfErrors noGaimInstallFound compareVersion noGaimInstallFound: MessageBox MB_OK|MB_ICONSTOP "$(NO_GAIM_VERSION)" Quit compareVersion: StrCmp $R0 ${GAIM_VERSION} GaimVersionOK ; Versions are in the form of X.Y.Z ; If X is different, then we shouldn't install Push $R0 Call GetMajorVersion IfErrors BadVersion Pop $R2 Push ${GAIM_VERSION} Call GetMajorVersion IfErrors noGaimInstallFound Pop $R1 ;Check that both version's X is the same IntCmp $R1 $R2 GaimVersionOK BadVersion: MessageBox MB_OK|MB_ICONSTOP "$(BAD_GAIM_VERSION_1) $R0 $(BAD_GAIM_VERSION_2)" Quit GaimVersionOK: Pop $R2 Pop $R1 Pop $R0 FunctionEnd ; Extract the part of a string prior to "." (or the whole string if there is no ".") ; If no "." was found, the ErrorFlag will be set Function GetMajorVersion ClearErrors Pop $0 StrCpy $1 "0" startGetMajorVersionLoop: ;avoid an infinite loop, if we have gotten the whole initial string, exit the loop and set the error flag StrCmp $2 $0 GetMajorVersionSetErrorFlag IntOp $1 $1 + 1 ;Append the next character in $0 to $2 StrCpy $2 $0 $1 ;store the next character in $3 StrCpy $3 $0 1 $1 ;if the next character is ".", $2 will contain the string prior to "." StrCmp $3 "." endGetMajorVersion startGetMajorVersionLoop GetMajorVersionSetErrorFlag: SetErrors endGetMajorVersion: Push $2 FunctionEnd Function CheckUserInstallRights ClearErrors UserInfo::GetName IfErrors Win9x Pop $0 UserInfo::GetAccountType Pop $1 StrCmp $1 "Admin" 0 +3 StrCpy $1 "HKLM" Goto done StrCmp $1 "Power" 0 +3 StrCpy $1 "HKLM" Goto done StrCmp $1 "User" 0 +3 StrCpy $1 "HKCU" Goto done StrCmp $1 "Guest" 0 +3 StrCpy $1 "NONE" Goto done ; Unknown error StrCpy $1 "NONE" Goto done Win9x: StrCpy $1 "HKLM" done: Push $1 FunctionEnd Function un.CheckUserInstallRights ClearErrors UserInfo::GetName IfErrors Win9x Pop $0 UserInfo::GetAccountType Pop $1 StrCmp $1 "Admin" 0 +3 StrCpy $1 "HKLM" Goto done StrCmp $1 "Power" 0 +3 StrCpy $1 "HKLM" Goto done StrCmp $1 "User" 0 +3 StrCpy $1 "HKCU" Goto done StrCmp $1 "Guest" 0 +3 StrCpy $1 "NONE" Goto done ; Unknown error StrCpy $1 "NONE" Goto done Win9x: StrCpy $1 "HKLM" done: Push $1 FunctionEnd |
From: Don S. <ri...@us...> - 2005-02-07 15:49:42
|
Update of /cvsroot/gaim-bnet/gaim-bnet/nsis/translations In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12243/translations Log Message: Directory /cvsroot/gaim-bnet/gaim-bnet/nsis/translations added to the repository |
From: Don S. <ri...@us...> - 2005-02-07 15:49:18
|
Update of /cvsroot/gaim-bnet/gaim-bnet/nsis In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12186/nsis Log Message: Directory /cvsroot/gaim-bnet/gaim-bnet/nsis added to the repository |
From: Don S. <ri...@us...> - 2005-02-07 15:35:44
|
Update of /cvsroot/gaim-bnet/gaim-bnet/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9655/src Modified Files: bnet.c bnet.h proto.c Added Files: Makefile.mingw Log Message: Committing patch #1117931 for win32 build support from Daniel Atallah Index: bnet.c =================================================================== RCS file: /cvsroot/gaim-bnet/gaim-bnet/src/bnet.c,v retrieving revision 1.35 retrieving revision 1.36 diff -C2 -d -r1.35 -r1.36 *** bnet.c 4 Feb 2005 20:31:34 -0000 1.35 --- bnet.c 7 Feb 2005 15:35:11 -0000 1.36 *************** *** 280,284 **** --- 280,288 ---- "prpl-bnet", /* id */ NULL, /* name */ + #ifdef _WIN32 + BN_VERSION, /* version */ + #else VERSION, /* version */ + #endif NULL, /* summary */ NULL, /* description */ Index: bnet.h =================================================================== RCS file: /cvsroot/gaim-bnet/gaim-bnet/src/bnet.h,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** bnet.h 27 Jan 2005 21:26:41 -0000 1.10 --- bnet.h 7 Feb 2005 15:35:11 -0000 1.11 *************** *** 35,38 **** --- 35,44 ---- #include <glib.h> #include <string.h> + #ifndef _WIN32 + #include <sys/socket.h> + #else + #include <libc_interface.h> + #endif + #include <sys/types.h> #include <unistd.h> Index: proto.c =================================================================== RCS file: /cvsroot/gaim-bnet/gaim-bnet/src/proto.c,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** proto.c 3 Feb 2005 20:29:48 -0000 1.21 --- proto.c 7 Feb 2005 15:35:11 -0000 1.22 *************** *** 125,129 **** p = (gchar *)(w + strlen(w)); else { ! if (!(p = memmem(w, strlen(w), k+1, tt))) { err = TRUE; break; --- 125,132 ---- p = (gchar *)(w + strlen(w)); else { ! char cmp_str[tt + 1]; ! strncpy(cmp_str, k+1, tt); ! cmp_str[tt] = '\0'; ! if (!(p = strstr(w, cmp_str))) { err = TRUE; break; --- NEW FILE: Makefile.mingw --- # # Makefile.mingw # # Description: Makefile for gaim-bnet plugin. # # # PATHS # BN_TOP := ../ GTK_TOP := ../../../../win32-dev/gtk_2_0 GAIM_TOP := ../../.. GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir DLL_INSTALL_DIR := $(GAIM_INSTALL_DIR)/plugins BN_VERSION := $(shell cat ${BN_TOP}/VERSION) ## ## VARIABLE DEFINITIONS ## BN = libbnet # Compiler Options CFLAGS = DEFINES = -DBN_VERSION=\"$(BN_VERSION)\" -DLOCALEDIR=\"$(GAIM_INSTALL_DIR)/locale\" LDFLAGS = #-mwindows ## ## INCLUDE MAKEFILES ## include $(GAIM_TOP)/src/win32/global.mak ## ## INCLUDE PATHS ## INCLUDE_PATHS += -I. \ -I$(GTK_TOP)/include \ -I$(GTK_TOP)/include/glib-2.0 \ -I$(GTK_TOP)/lib/glib-2.0/include \ -I$(GAIM_TOP)/src/win32 \ -I$(GAIM_TOP)/src \ -I$(BN_TOP) \ -I$(GAIM_TOP) LIB_PATHS = \ -L$(GTK_TOP)/lib \ -L$(GAIM_TOP)/src ## ## SOURCES, OBJECTS ## BN_SRC = \ bnet.c \ buddy.c \ chat.c \ conn.c \ proto.c BN_OBJ = $(BN_SRC:%.c=%.o) ## ## LIBRARIES ## PLUGIN_LIBS = \ -lglib-2.0 \ -lgmodule-2.0 \ -lgobject-2.0 \ -lws2_32 \ -lintl \ -lgaim ## ## RULES ## # How to make a C file %.o: %.c $(CC) $(CFLAGS) $(INCLUDE_PATHS) $(DEFINES) -c $< -o $@ ## ## TARGET DEFINITIONS ## .PHONY: all clean install all: $(BN).dll install: all cp $(BN).dll $(DLL_INSTALL_DIR) ## ## BUILD Dependencies ## $(GAIM_TOP)/src/gaim.lib: $(MAKE) -C $(GAIM_TOP)/src -f Makefile.mingw gaim.lib ## ## BUILD DLL ## $(BN).dll: $(BN_OBJ) $(GAIM_TOP)/src/gaim.lib $(CC) -shared $(BN_OBJ) $(LIB_PATHS) $(PLUGIN_LIBS) $(DLL_LD_FLAGS) -o $(BN).dll ## ## CLEAN RULES ## clean: rm -rf *.o rm -rf $(BN).dll |