diff mcabber/src/commands.c @ 652:b243d3b3ff1b

We do not need buddy_isresource() anymore
author Mikael Berthe <mikael@lilotux.net>
date Sat, 07 Jan 2006 10:56:46 +0100
parents c2d50b97ced4
children d5db5be78eb0
line wrap: on
line diff
--- a/mcabber/src/commands.c	Sat Jan 07 10:32:55 2006 +0100
+++ b/mcabber/src/commands.c	Sat Jan 07 10:56:46 2006 +0100
@@ -598,7 +598,7 @@
   if (buddy_gettype(BUDDATA(current_buddy)) & ROSTER_TYPE_ROOM) {
     // This is a chatroom
     // If there are resources, we haven't left
-    if (buddy_isresource(BUDDATA(current_buddy))) {
+    if (buddy_getinsideroom(BUDDATA(current_buddy))) {
       scr_LogPrint(LPRINT_NORMAL, "You haven't left this room!");
       return;
     }
@@ -1541,7 +1541,7 @@
   }
 
   // Quick check: if there are resources, we haven't left
-  if (buddy_isresource(bud)) {
+  if (buddy_getinsideroom(bud)) {
     scr_LogPrint(LPRINT_NORMAL, "You haven't left this room!");
     return;
   }