Only tabTouch nick if not self
parent
a64f1a4ea2
commit
05fe4ece20
4
handle.c
4
handle.c
|
@ -223,10 +223,10 @@ static void handlePrivmsg(char *prefix, char *params) {
|
||||||
char *user = prift(&prefix);
|
char *user = prift(&prefix);
|
||||||
shift(¶ms);
|
shift(¶ms);
|
||||||
char *mesg = shift(¶ms);
|
char *mesg = shift(¶ms);
|
||||||
tabTouch(nick);
|
|
||||||
urlScan(mesg);
|
|
||||||
bool self = !strcmp(user, chat.user);
|
bool self = !strcmp(user, chat.user);
|
||||||
bool ping = !strncasecmp(mesg, chat.nick, strlen(chat.nick));
|
bool ping = !strncasecmp(mesg, chat.nick, strlen(chat.nick));
|
||||||
|
if (!self) tabTouch(nick);
|
||||||
|
urlScan(mesg);
|
||||||
if (ping) uiBeep();
|
if (ping) uiBeep();
|
||||||
if (mesg[0] == '\1') {
|
if (mesg[0] == '\1') {
|
||||||
strsep(&mesg, " ");
|
strsep(&mesg, " ");
|
||||||
|
|
Loading…
Reference in New Issue