comparison mcabber/src/commands.c @ 539:ffdfddd351b8

Fix some memory leaks
author Mikael Berthe <mikael@lilotux.net>
date Fri, 25 Nov 2005 23:44:47 +0100
parents 2f714bd701a1
children 887c1bd37617
comparison
equal deleted inserted replaced
538:6310b928d04a 539:ffdfddd351b8
1259 if (!(buddy_gettype(bud) & ROSTER_TYPE_ROOM)) { 1259 if (!(buddy_gettype(bud) & ROSTER_TYPE_ROOM)) {
1260 scr_LogPrint(LPRINT_NORMAL, "This isn't a chatroom"); 1260 scr_LogPrint(LPRINT_NORMAL, "This isn't a chatroom");
1261 return; 1261 return;
1262 } 1262 }
1263 // Quick check: if there are resources, we haven't left 1263 // Quick check: if there are resources, we haven't left
1264 if (buddy_getresources(bud)) { 1264 if (buddy_isresource(bud)) {
1265 scr_LogPrint(LPRINT_NORMAL, "You haven't left this room!"); 1265 scr_LogPrint(LPRINT_NORMAL, "You haven't left this room!");
1266 return; 1266 return;
1267 } 1267 }
1268 // Delete the room 1268 // Delete the room
1269 roster_del_user(buddy_getjid(bud)); 1269 roster_del_user(buddy_getjid(bud));