From 1ca6974b64ab83ac14f709945318a27b2ca633bc Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Mon, 13 Aug 2018 19:54:26 -0400 Subject: [PATCH] Don't ping self --- handle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handle.c b/handle.c index 22a4723..16a416c 100644 --- a/handle.c +++ b/handle.c @@ -308,7 +308,7 @@ static void handlePrivmsg(char *prefix, char *params) { if (!isSelf(nick, user)) tabTouch(tag, nick); urlScan(tag, mesg); bool self = isSelf(nick, user); - bool ping = isPing(mesg); + bool ping = !self && isPing(mesg); uiFmt( tag, "%c\3%d%c%s%c\17 %s", ping["\17\26"], color(user), self["<("], nick, self[">)"], mesg