Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/commands.c @ 1165:d5b26a0a9771
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.
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sat, 17 Feb 2007 11:38:07 +0100 |
parents | 2913310a7be6 |
children | 03a38b7ad2e0 |
comparison
equal
deleted
inserted
replaced
1164:683d64f2c055 | 1165:d5b26a0a9771 |
---|---|
877 if (buddy_getinsideroom(BUDDATA(current_buddy))) { | 877 if (buddy_getinsideroom(BUDDATA(current_buddy))) { |
878 scr_LogPrint(LPRINT_NORMAL, "You haven't left this room!"); | 878 scr_LogPrint(LPRINT_NORMAL, "You haven't left this room!"); |
879 return; | 879 return; |
880 } | 880 } |
881 } | 881 } |
882 | |
883 // Close the buffer | |
884 scr_BufferPurge(1); | |
882 | 885 |
883 scr_LogPrint(LPRINT_LOGNORM, "Removing <%s>...", bjid); | 886 scr_LogPrint(LPRINT_LOGNORM, "Removing <%s>...", bjid); |
884 jb_delbuddy(bjid); | 887 jb_delbuddy(bjid); |
885 scr_UpdateBuddyWindow(); | 888 scr_UpdateBuddyWindow(); |
886 } | 889 } |