mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05:00
If message was for you (your nick at start of line), print it with
MSGLEVEL_HILIGHT, instead of the previous _NOHILIGHT.. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@432 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
0a86cf7e37
commit
19643089f1
@ -34,6 +34,7 @@
|
|||||||
#include "nicklist.h"
|
#include "nicklist.h"
|
||||||
#include "ignore.h"
|
#include "ignore.h"
|
||||||
#include "netsplit.h"
|
#include "netsplit.h"
|
||||||
|
#include "fe-netjoin.h"
|
||||||
|
|
||||||
#include "fe-query.h"
|
#include "fe-query.h"
|
||||||
#include "irc-hilight-text.h"
|
#include "irc-hilight-text.h"
|
||||||
@ -75,20 +76,20 @@ static void print_channel_msg(IRC_SERVER_REC *server, const char *msg,
|
|||||||
/* message to active channel in window */
|
/* message to active channel in window */
|
||||||
if (color != NULL) {
|
if (color != NULL) {
|
||||||
/* highlighted nick */
|
/* highlighted nick */
|
||||||
printformat(server, target, MSGLEVEL_PUBLIC | MSGLEVEL_NOHILIGHT,
|
printformat(server, target, MSGLEVEL_PUBLIC | MSGLEVEL_HILIGHT,
|
||||||
IRCTXT_PUBMSG_HILIGHT, color, nick, msg, nickmode);
|
IRCTXT_PUBMSG_HILIGHT, color, nick, msg, nickmode);
|
||||||
} else {
|
} else {
|
||||||
printformat(server, target, MSGLEVEL_PUBLIC | (for_me ? MSGLEVEL_NOHILIGHT : 0),
|
printformat(server, target, MSGLEVEL_PUBLIC | (for_me ? MSGLEVEL_HILIGHT : 0),
|
||||||
for_me ? IRCTXT_PUBMSG_ME : IRCTXT_PUBMSG, nick, msg, nickmode);
|
for_me ? IRCTXT_PUBMSG_ME : IRCTXT_PUBMSG, nick, msg, nickmode);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
/* message to not existing/active channel */
|
/* message to not existing/active channel */
|
||||||
if (color != NULL) {
|
if (color != NULL) {
|
||||||
/* highlighted nick */
|
/* highlighted nick */
|
||||||
printformat(server, target, MSGLEVEL_PUBLIC | MSGLEVEL_NOHILIGHT,
|
printformat(server, target, MSGLEVEL_PUBLIC | MSGLEVEL_HILIGHT,
|
||||||
IRCTXT_PUBMSG_HILIGHT_CHANNEL, color, nick, target, msg, nickmode);
|
IRCTXT_PUBMSG_HILIGHT_CHANNEL, color, nick, target, msg, nickmode);
|
||||||
} else {
|
} else {
|
||||||
printformat(server, target, MSGLEVEL_PUBLIC | (for_me ? MSGLEVEL_NOHILIGHT : 0),
|
printformat(server, target, MSGLEVEL_PUBLIC | (for_me ? MSGLEVEL_HILIGHT : 0),
|
||||||
for_me ? IRCTXT_PUBMSG_ME_CHANNEL : IRCTXT_PUBMSG_CHANNEL,
|
for_me ? IRCTXT_PUBMSG_ME_CHANNEL : IRCTXT_PUBMSG_CHANNEL,
|
||||||
nick, target, msg, nickmode);
|
nick, target, msg, nickmode);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user