diff options
author | Curtis McEnroe | 2018-08-09 15:50:30 -0400 |
---|---|---|
committer | Curtis McEnroe | 2018-08-09 15:50:30 -0400 |
commit | 05fe4ece20a8333d91850b812a6d8bdc45726ae4 (patch) | |
tree | 4204e95d545a5e28dd4d852968f8653aed17e0f7 | |
parent | a64f1a4ea2962e534673e27d85d92703c64201b0 (diff) |
Only tabTouch nick if not self
-rw-r--r-- | handle.c | 4 |
1 files 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, " "); |