Close a buffer when using /del
authorMikael Berthe <mikael@lilotux.net>
Sat, 17 Feb 2007 11:38:07 +0100
changeset 1165 d5b26a0a9771
parent 1164 683d64f2c055
child 1166 c4da23bf8958
Close a buffer when using /del Note: In some cases the bufer might be opened again, if we receive a network message from the buddy we're trying to delete.
mcabber/src/commands.c
--- a/mcabber/src/commands.c	Sat Feb 17 11:32:26 2007 +0100
+++ b/mcabber/src/commands.c	Sat Feb 17 11:38:07 2007 +0100
@@ -880,6 +880,9 @@
     }
   }
 
+  // Close the buffer
+  scr_BufferPurge(1);
+
   scr_LogPrint(LPRINT_LOGNORM, "Removing <%s>...", bjid);
   jb_delbuddy(bjid);
   scr_UpdateBuddyWindow();