comparison libpurple/protocols/msn/table.c @ 19843:60bc06498746

Committing khc's msnp14 changes from Trac Ticket #148. --rlaager committer: Richard Laager <rlaager@wiktel.com>
author Ka-Hing Cheung <khc@hxbc.us>
date Sun, 15 Apr 2007 04:12:27 +0000
parents 32c366eeeb99
children 5048651671e1
comparison
equal deleted inserted replaced
16121:6167ee79ecd0 19843:60bc06498746
75 g_return_if_fail(table != NULL); 75 g_return_if_fail(table != NULL);
76 g_return_if_fail(answer != NULL); 76 g_return_if_fail(answer != NULL);
77 77
78 cbs = NULL; 78 cbs = NULL;
79 79
80 if (command == NULL) 80 if (command == NULL){
81 {
82 cbs = table->async; 81 cbs = table->async;
83 } 82 }else if (strcmp(command, "fallback") == 0) {
84 else if (strcmp(command, "fallback") == 0)
85 {
86 cbs = table->fallback; 83 cbs = table->fallback;
87 } 84 }else{
88 else
89 {
90 cbs = g_hash_table_lookup(table->cmds, command); 85 cbs = g_hash_table_lookup(table->cmds, command);
91 86
92 if (cbs == NULL) 87 if (cbs == NULL){
93 {
94 cbs = g_hash_table_new_full(g_str_hash, g_str_equal, NULL, NULL); 88 cbs = g_hash_table_new_full(g_str_hash, g_str_equal, NULL, NULL);
95 g_hash_table_insert(table->cmds, command, cbs); 89 g_hash_table_insert(table->cmds, command, cbs);
96 } 90 }
97 } 91 }
98 92