diff options
author | Timo Sirainen <cras@irssi.org> | 2000-07-15 20:04:44 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-07-15 20:04:44 +0000 |
commit | 02d9f0f4e173607350ac7a0080d09d6f4e8cc421 (patch) | |
tree | 2c3308518384c9e26de537fdf1b09177dfbf83e2 | |
parent | f47156a7ca06f2c47a5210b796492d55ed7f2c18 (diff) | |
download | irssi-02d9f0f4e173607350ac7a0080d09d6f4e8cc421.zip |
Don't print the -!- DCCMSGS level.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@469 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r-- | src/fe-common/core/printtext.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/fe-common/core/printtext.c b/src/fe-common/core/printtext.c index 812a2607..0bc4dd60 100644 --- a/src/fe-common/core/printtext.c +++ b/src/fe-common/core/printtext.c @@ -467,13 +467,21 @@ void printformat_module_window(const char *module, WINDOW_REC *window, int level va_end(va); } +#define LINE_START_IRSSI_LEVEL \ + (MSGLEVEL_CLIENTERROR | MSGLEVEL_CLIENTNOTICE) + +#define NOT_LINE_START_LEVEL \ + (MSGLEVEL_NEVER | MSGLEVEL_DCC | MSGLEVEL_CLIENTCRAP | \ + MSGLEVEL_MSGS | MSGLEVEL_PUBLIC | MSGLEVEL_DCCMSGS | \ + MSGLEVEL_ACTIONS | MSGLEVEL_NOTICES | MSGLEVEL_SNOTES | MSGLEVEL_CTCPS) + /* return the "-!- " text at the start of the line */ static char *get_line_start_text(TEXT_DEST_REC *dest) { - if ((dest->level & (MSGLEVEL_CLIENTERROR|MSGLEVEL_CLIENTNOTICE)) != 0) + if (dest->level & LINE_START_IRSSI_LEVEL) return output_format_text(dest, IRCTXT_LINE_START_IRSSI); - if ((dest->level & (MSGLEVEL_MSGS|MSGLEVEL_PUBLIC|MSGLEVEL_NOTICES|MSGLEVEL_SNOTES|MSGLEVEL_CTCPS|MSGLEVEL_ACTIONS|MSGLEVEL_DCC|MSGLEVEL_CLIENTCRAP)) == 0 && dest->level != MSGLEVEL_NEVER) + if ((dest->level & NOT_LINE_START_LEVEL) == 0) return output_format_text(dest, IRCTXT_LINE_START); return NULL; |