Only tabTouch nick if not self

master
Curtis McEnroe 2018-08-09 15:50:30 -04:00
parent a64f1a4ea2
commit 05fe4ece20
No known key found for this signature in database
GPG Key ID: CEA2F97ADCFCD77C
1 changed files with 2 additions and 2 deletions

View File

@ -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, " ");