1
0
mirror of https://github.com/irssi/irssi.git synced 2024-08-04 03:34:18 -04:00

Don't print the -!- DCCMSGS level.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@469 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-07-15 20:04:44 +00:00 committed by cras
parent f47156a7ca
commit 02d9f0f4e1

View File

@ -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;