From 05fe4ece20a8333d91850b812a6d8bdc45726ae4 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Thu, 9 Aug 2018 15:50:30 -0400 Subject: Only tabTouch nick if not self --- handle.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/handle.c b/handle.c index f6b3e5d..4389ff8 100644 --- a/handle.c +++ b/handle.c @@ -223,10 +223,10 @@ static void handlePrivmsg(char *prefix, char *params) { char *user = prift(&prefix); shift(¶ms); char *mesg = shift(¶ms); - tabTouch(nick); - urlScan(mesg); bool self = !strcmp(user, chat.user); bool ping = !strncasecmp(mesg, chat.nick, strlen(chat.nick)); + if (!self) tabTouch(nick); + urlScan(mesg); if (ping) uiBeep(); if (mesg[0] == '\1') { strsep(&mesg, " "); -- cgit 1.4.1-2-gfad0