# HG changeset patch # User Mikael Berthe # Date 1149110215 -7200 # Node ID 94bb9e40e40bd1f6263c6a85042085af796324c0 # Parent 78f4971578dd2c58fc687b488ffa5dba95221c91 Set the pending message flag on the status buffer when using /help diff -r 78f4971578dd -r 94bb9e40e40b mcabber/src/help.c --- 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 */ }