comparison mcabber/src/screen.c @ 1485:0121b6f3047c

New command: /buffer save
author Mikael Berthe <mikael@lilotux.net>
date Sun, 20 Apr 2008 16:06:37 +0200
parents 7b36b91a4388
children f83a51eaa5ed
comparison
equal deleted inserted replaced
1484:7b36b91a4388 1485:0121b6f3047c
2701 2701
2702 // Finished :) 2702 // Finished :)
2703 update_panels(); 2703 update_panels();
2704 } 2704 }
2705 2705
2706 void scr_BufferDump(const char *file)
2707 {
2708 char *extfname;
2709
2710 if (!currentWindow) {
2711 scr_LogPrint(LPRINT_NORMAL, "No current buffer!");
2712 return;
2713 }
2714
2715 if (!file || !*file) {
2716 scr_LogPrint(LPRINT_NORMAL, "Missing parameter (file name)!");
2717 return;
2718 }
2719
2720 extfname = expand_filename(file);
2721 hbuf_dump_to_file(currentWindow->bd->hbuf, extfname);
2722 g_free(extfname);
2723 }
2724
2706 // buffer_list() 2725 // buffer_list()
2707 // key: winId/jid 2726 // key: winId/jid
2708 // value: winbuf structure 2727 // value: winbuf structure
2709 // data: none. 2728 // data: none.
2710 static void buffer_list(gpointer key, gpointer value, gpointer data) 2729 static void buffer_list(gpointer key, gpointer value, gpointer data)