Mercurial > ~mikael > mcabber > hg
diff 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 |
line wrap: on
line diff
--- a/mcabber/src/otr.c Sat Nov 03 16:52:25 2007 +0100 +++ b/mcabber/src/otr.c Tue Nov 06 17:12:04 2007 +0100 @@ -608,7 +608,8 @@ const char *message) { char * id = g_strdup("otrinject"); - jb_send_msg(recipient, message, ROSTER_TYPE_USER, "", id, NULL, NULL); + if (roster_gettype(recipient) == ROSTER_TYPE_USER) + jb_send_msg(recipient, message, ROSTER_TYPE_USER, "", id, NULL, NULL); g_free(id); }