summary refs log tree commit diff
diff options
context:
space:
mode:
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, " ");