GIT.Harvie.CZ
/
mirrors
/
libpurple-core-answerscripts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
2b2d156
)
Merge pull request #13 from AkselMeola/master
author
Tomas Mudrunka
<tomas@mudrunka.cz>
Sun, 11 Sep 2016 00:06:58 +0000
(
02:06
+0200)
committer
GitHub
<noreply@github.com>
Sun, 11 Sep 2016 00:06:58 +0000
(
02:06
+0200)
Reliable way to not respond to own messages
answerscripts.c
patch
|
blob
|
blame
|
history
diff --git
a/answerscripts.c
b/answerscripts.c
index 4e3e881bfb497f6849740e8bea913da11fd39080..60568519d334a4ee26a4b7a980067af9d37c6a7e 100755
(executable)
--- 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;
This page took
0.097035 seconds
and
4
git commands to generate.