about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-08-09 15:50:30 -0400
committerJune McEnroe <june@causal.agency>2018-08-09 15:50:30 -0400
commit05fe4ece20a8333d91850b812a6d8bdc45726ae4 (patch)
tree4204e95d545a5e28dd4d852968f8653aed17e0f7
parentAdd URL detection, listing and opening (diff)
downloadcatgirl-05fe4ece20a8333d91850b812a6d8bdc45726ae4.tar.gz
catgirl-05fe4ece20a8333d91850b812a6d8bdc45726ae4.zip
Only tabTouch nick if not self
Diffstat (limited to '')
-rw-r--r--handle.c4
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(&params);
 	char *mesg = shift(&params);
-	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, " ");