Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/otr.c @ 1343:8a05feb23c5a
Only use OTR encryption on other users
author | franky@veqlargh.fs |
---|---|
date | Tue, 06 Nov 2007 17:12:04 +0100 |
parents | ab1b7f7a682e |
children | e36b21e11760 |
comparison
equal
deleted
inserted
replaced
1342:06441b6cc23a | 1343:8a05feb23c5a |
---|---|
606 static void cb_inject_message(void *opdata, const char *accountname, | 606 static void cb_inject_message(void *opdata, const char *accountname, |
607 const char *protocol, const char *recipient, | 607 const char *protocol, const char *recipient, |
608 const char *message) | 608 const char *message) |
609 { | 609 { |
610 char * id = g_strdup("otrinject"); | 610 char * id = g_strdup("otrinject"); |
611 jb_send_msg(recipient, message, ROSTER_TYPE_USER, "", id, NULL, NULL); | 611 if (roster_gettype(recipient) == ROSTER_TYPE_USER) |
612 jb_send_msg(recipient, message, ROSTER_TYPE_USER, "", id, NULL, NULL); | |
612 g_free(id); | 613 g_free(id); |
613 } | 614 } |
614 | 615 |
615 /* Display a notification message for a particular | 616 /* Display a notification message for a particular |
616 * accountname / protocol / username conversation. */ | 617 * accountname / protocol / username conversation. */ |