Mercurial > hg
changeset 892:94bb9e40e40b
Set the pending message flag on the status buffer when using /help
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Wed, 31 May 2006 23:16:55 +0200 |
parents | 78f4971578dd |
children | 92aaf2af786b |
files | mcabber/src/help.c |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mcabber/src/help.c Wed May 31 23:12:56 2006 +0200 +++ b/mcabber/src/help.c Wed May 31 23:16:55 2006 +0200 @@ -28,6 +28,7 @@ #include "settings.h" #include "logprint.h" #include "utils.h" +#include "screen.h" #define DEFAULT_LANG "en" @@ -63,6 +64,7 @@ char *helpfiles_dir, *filename; char *data; const int datasize = 4096; + int linecount = 0; char *p; // Check string is ok @@ -104,10 +106,16 @@ *p = '\0'; // Displaty the help line scr_LogPrint(LPRINT_NORMAL, "%s", data); + linecount++; } fclose(fp); g_free(data); + if (linecount) { + scr_setmsgflag_if_needed(SPECIAL_BUFFER_STATUS_ID, TRUE); + update_roster = TRUE; + } + return 0; #endif /* DATA_DIR */ }