comparison libpurple/protocols/msn/msn.c @ 20488:64c322c3b1b0

Some more cleanups
author Carlos Silva <typ0@pidgin.im>
date Mon, 03 Sep 2007 06:15:55 +0000
parents ff4ae9dde291
children b5a2938b4549
comparison
equal deleted inserted replaced
20487:9812222e89d4 20488:64c322c3b1b0
1160 1160
1161 session = gc->proto_data; 1161 session = gc->proto_data;
1162 userlist = session->userlist; 1162 userlist = session->userlist;
1163 user = msn_userlist_find_user(userlist, who); 1163 user = msn_userlist_find_user(userlist, who);
1164 1164
1165 purple_debug_info("MSN", "msn_add_permit()\n");
1166
1167 if (!session->logged_in) 1165 if (!session->logged_in)
1168 return; 1166 return;
1169 1167
1170 if (user != NULL && user->list_op & MSN_LIST_BL_OP) { 1168 if (user != NULL && user->list_op & MSN_LIST_BL_OP) {
1171 msn_userlist_rem_buddy_from_list(userlist, who, MSN_LIST_BL); 1169 msn_userlist_rem_buddy_from_list(userlist, who, MSN_LIST_BL);
1190 1188
1191 session = gc->proto_data; 1189 session = gc->proto_data;
1192 userlist = session->userlist; 1190 userlist = session->userlist;
1193 user = msn_userlist_find_user(userlist, who); 1191 user = msn_userlist_find_user(userlist, who);
1194 1192
1195 purple_debug_info("MSN", "msn_add_deny()\n");
1196
1197 if (!session->logged_in) 1193 if (!session->logged_in)
1198 return; 1194 return;
1199 1195
1200 if (user != NULL && user->list_op & MSN_LIST_AL_OP) { 1196 if (user != NULL && user->list_op & MSN_LIST_AL_OP) {
1201 msn_userlist_rem_buddy_from_list(userlist, who, MSN_LIST_AL); 1197 msn_userlist_rem_buddy_from_list(userlist, who, MSN_LIST_AL);
1218 MsnUser *user; 1214 MsnUser *user;
1219 1215
1220 session = gc->proto_data; 1216 session = gc->proto_data;
1221 userlist = session->userlist; 1217 userlist = session->userlist;
1222 1218
1223 purple_debug_info("MSN", "msn_rem_permit()\n");
1224
1225 if (!session->logged_in) 1219 if (!session->logged_in)
1226 return; 1220 return;
1227 1221
1228 user = msn_userlist_find_user(userlist, who); 1222 user = msn_userlist_find_user(userlist, who);
1229 1223
1242 MsnUserList *userlist; 1236 MsnUserList *userlist;
1243 MsnUser *user; 1237 MsnUser *user;
1244 1238
1245 session = gc->proto_data; 1239 session = gc->proto_data;
1246 userlist = session->userlist; 1240 userlist = session->userlist;
1247
1248 purple_debug_info("MSN", "msn_rem_deny()\n");
1249 1241
1250 if (!session->logged_in) 1242 if (!session->logged_in)
1251 return; 1243 return;
1252 1244
1253 user = msn_userlist_find_user(userlist, who); 1245 user = msn_userlist_find_user(userlist, who);