X-Git-Url: http://git.harvie.cz/?p=mirrors%2Flibpurple-core-answerscripts.git;a=blobdiff_plain;f=answerscripts.c;h=60568519d334a4ee26a4b7a980067af9d37c6a7e;hp=4e3e881bfb497f6849740e8bea913da11fd39080;hb=25fb4d265d46d9d2b7c6d33a73dc5a0f0a3f93f8;hpb=2b2d15640ff2593ee8942c6a210ab4c6009b4720 diff --git a/answerscripts.c b/answerscripts.c index 4e3e881..6056851 100755 --- a/answerscripts.c +++ b/answerscripts.c @@ -110,7 +110,7 @@ static char received_msg_cb(PurpleAccount *account, char *who, char *buffer, Pur if(local_alias == NULL) local_alias = local_name; //Do not respond to messages sent by myself - if(strcmp(local_name, who) == 0) return 0; + if (flags & PURPLE_MESSAGE_SEND) return 0; //Was my nick said? char *highlighted;