aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/indic8.h2
-rw-r--r--src/irc.c5
2 files changed, 6 insertions, 1 deletions
diff --git a/src/indic8.h b/src/indic8.h
index 5b29740..5524bb7 100644
--- a/src/indic8.h
+++ b/src/indic8.h
@@ -7,6 +7,7 @@
#define P_CHR 0x50 /* COLOR1 P */
#define Q_CHR 0x51 /* COLOR1 Q */
#define M_CHR 0x4d /* COLOR1 M */
+#define N_CHR 0x4e /* COLOR1 N */
#define CHAN_CHR 0x63 /* COLOR1 # */
void ind_act(char c);
@@ -17,6 +18,7 @@ void ind_net_down(void);
void ind_net_idle(void);
#define ind_act_pm() ind_act(M_CHR)
+#define ind_act_notice() ind_act(N_CHR)
#define ind_act_chantext() ind_act(CHAN_CHR)
#define ind_act_join() ind_act(J_CHR)
#define ind_act_part() ind_act(P_CHR)
diff --git a/src/irc.c b/src/irc.c
index d0e0595..fb3b979 100644
--- a/src/irc.c
+++ b/src/irc.c
@@ -249,7 +249,10 @@ static void do_privmsg(void) {
ind_act_chantext();
} else {
do_priv_nick();
- ind_act_pm();
+ if(*msg_cmd == 'N')
+ ind_act_notice();
+ else
+ ind_act_pm();
}
scr_print_active(msg_text);