Mercurial > pidgin
comparison libgaim/protocols/qq/group.c @ 14629:6b8bc59414f0
[gaim-migrate @ 17375]
Get rid of these useless checks.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Huetsch <markhuetsch> |
---|---|
date | Tue, 26 Sep 2006 22:54:24 +0000 |
parents | 8ff8f1c897b5 |
children | c039c920e11c |
comparison
equal
deleted
inserted
replaced
14628:58202142e9ad | 14629:6b8bc59414f0 |
---|---|
35 | 35 |
36 static void _qq_group_search_callback(GaimConnection *gc, const gchar *input) | 36 static void _qq_group_search_callback(GaimConnection *gc, const gchar *input) |
37 { | 37 { |
38 guint32 external_group_id; | 38 guint32 external_group_id; |
39 | 39 |
40 g_return_if_fail(gc != NULL && input != NULL); | 40 g_return_if_fail(input != NULL); |
41 external_group_id = qq_string_to_dec_value(input); | 41 external_group_id = qq_string_to_dec_value(input); |
42 /* 0x00000000 means search for demo group */ | 42 /* 0x00000000 means search for demo group */ |
43 qq_send_cmd_group_search_group(gc, external_group_id); | 43 qq_send_cmd_group_search_group(gc, external_group_id); |
44 } | 44 } |
45 | 45 |
46 static void _qq_group_search_cancel_callback(GaimConnection *gc, const gchar *input) | 46 static void _qq_group_search_cancel_callback(GaimConnection *gc, const gchar *input) |
47 { | 47 { |
48 qq_data *qd; | 48 qq_data *qd; |
49 g_return_if_fail(gc != NULL && gc->proto_data != NULL); | |
50 | 49 |
51 qd = (qq_data *) gc->proto_data; | 50 qd = (qq_data *) gc->proto_data; |
52 gaim_roomlist_set_in_progress(qd->roomlist, FALSE); | 51 gaim_roomlist_set_in_progress(qd->roomlist, FALSE); |
53 } | 52 } |
54 | 53 |
86 GList *fields; | 85 GList *fields; |
87 qq_data *qd; | 86 qq_data *qd; |
88 GaimRoomlist *rl; | 87 GaimRoomlist *rl; |
89 GaimRoomlistField *f; | 88 GaimRoomlistField *f; |
90 | 89 |
91 g_return_val_if_fail(gc != NULL && gc->proto_data != NULL, NULL); | |
92 qd = (qq_data *) gc->proto_data; | 90 qd = (qq_data *) gc->proto_data; |
93 | 91 |
94 fields = NULL; | 92 fields = NULL; |
95 rl = gaim_roomlist_new(gaim_connection_get_account(gc)); | 93 rl = gaim_roomlist_new(gaim_connection_get_account(gc)); |
96 qd->roomlist = rl; | 94 qd->roomlist = rl; |
134 GaimConnection *gc; | 132 GaimConnection *gc; |
135 | 133 |
136 g_return_if_fail(list != NULL); | 134 g_return_if_fail(list != NULL); |
137 gc = gaim_account_get_connection(list->account); | 135 gc = gaim_account_get_connection(list->account); |
138 | 136 |
139 g_return_if_fail(gc != NULL && gc->proto_data != NULL); | |
140 qd = (qq_data *) gc->proto_data; | 137 qd = (qq_data *) gc->proto_data; |
141 | |
142 gaim_roomlist_set_in_progress(list, FALSE); | 138 gaim_roomlist_set_in_progress(list, FALSE); |
143 gaim_roomlist_unref(list); | 139 gaim_roomlist_unref(list); |
144 } | 140 } |
145 | 141 |
146 /* this should be called upon signin, even when we did not open group chat window */ | 142 /* this should be called upon signin, even when we did not open group chat window */ |
151 GaimChat *chat; | 147 GaimChat *chat; |
152 GaimGroup *gaim_group; | 148 GaimGroup *gaim_group; |
153 GaimBlistNode *node; | 149 GaimBlistNode *node; |
154 qq_group *group; | 150 qq_group *group; |
155 | 151 |
156 g_return_if_fail(gc != NULL); | |
157 account = gaim_connection_get_account(gc); | 152 account = gaim_connection_get_account(gc); |
158 | |
159 | 153 |
160 gaim_group = gaim_find_group(GAIM_GROUP_QQ_QUN); | 154 gaim_group = gaim_find_group(GAIM_GROUP_QQ_QUN); |
161 if (gaim_group == NULL) { | 155 if (gaim_group == NULL) { |
162 gaim_debug(GAIM_DEBUG_INFO, "QQ", "We have no QQ Qun\n"); | 156 gaim_debug(GAIM_DEBUG_INFO, "QQ", "We have no QQ Qun\n"); |
163 return; | 157 return; |