From: Luke S. <lsc...@us...> - 2004-09-17 03:16:43
|
Update of /cvsroot/gaim/gaim/src/protocols/msn In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7038/src/protocols/msn Modified Files: Tag: oldstatus cmdproc.c table.c Log Message: shx's previous patch needed fixing Index: cmdproc.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/protocols/msn/cmdproc.c,v retrieving revision 1.7 retrieving revision 1.7.2.1 diff -u -d -p -r1.7 -r1.7.2.1 --- cmdproc.c 26 Aug 2004 02:03:27 -0000 1.7 +++ cmdproc.c 17 Sep 2004 03:16:31 -0000 1.7.2.1 @@ -288,6 +288,9 @@ msn_cmdproc_process_cmd(MsnCmdProc *cmdp cb = g_hash_table_lookup(trans->callbacks, cmd->command); } + if (cb == NULL && cmdproc->cbs_table->fallback != NULL) + cb = g_hash_table_lookup(cmdproc->cbs_table->fallback, cmd->command); + if (cb != NULL) { cb(cmdproc, cmd); Index: table.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/protocols/msn/table.c,v retrieving revision 1.2.2.1 retrieving revision 1.2.2.2 diff -u -d -p -r1.2.2.1 -r1.2.2.2 --- table.c 16 Sep 2004 23:01:28 -0000 1.2.2.1 +++ table.c 17 Sep 2004 03:16:33 -0000 1.2.2.2 @@ -46,6 +46,7 @@ msn_table_new() table->errors = g_hash_table_new_full(g_str_hash, g_str_equal, NULL, NULL); table->async = g_hash_table_new_full(g_str_hash, g_str_equal, NULL, NULL); + table->fallback = g_hash_table_new_full(g_str_hash, g_str_equal, NULL, NULL); return table; } @@ -60,6 +61,7 @@ msn_table_destroy(MsnTable *table) g_hash_table_destroy(table->errors); g_hash_table_destroy(table->async); + g_hash_table_destroy(table->fallback); g_free(table); } |