mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 04:13:32 +02:00
Fixed DCC stuff. Added DCCMSGS level for DCC chat messages.
Actions match now either MSGS or PUBLIC level as well as the ACTIONS level always. Added DCCMSGS level to default highlight levels. Highlighting works with other than public messages now even if -nick option is used. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@463 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
1b736a68a7
commit
796d51afe4
10 changed files with 54 additions and 35 deletions
|
|
@ -32,7 +32,8 @@
|
|||
#include "hilight-text.h"
|
||||
|
||||
#define DEFAULT_HILIGHT_LEVEL \
|
||||
(MSGLEVEL_PUBLIC | MSGLEVEL_MSGS | MSGLEVEL_NOTICES | MSGLEVEL_ACTIONS)
|
||||
(MSGLEVEL_PUBLIC | MSGLEVEL_MSGS | MSGLEVEL_NOTICES | \
|
||||
MSGLEVEL_ACTIONS | MSGLEVEL_DCCMSGS)
|
||||
|
||||
static int hilight_next;
|
||||
GSList *hilights;
|
||||
|
|
@ -201,8 +202,7 @@ char *hilight_match(const char *channel, const char *nickmask, int level, const
|
|||
|
||||
if ((level & (rec->level > 0 ? rec->level : DEFAULT_HILIGHT_LEVEL)) == 0)
|
||||
continue;
|
||||
if ((rec->nick && nickmask == NULL) ||
|
||||
(!rec->nick && nickmask != NULL))
|
||||
if (!rec->nick && nickmask != NULL)
|
||||
continue;
|
||||
if (rec->channels != NULL && (channel == NULL || strarray_find(rec->channels, channel) == -1))
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue