--- a/mcabber/src/jabglue.c Sat Nov 03 16:52:25 2007 +0100
+++ b/mcabber/src/jabglue.c Tue Nov 06 17:12:04 2007 +0100
@@ -606,7 +606,7 @@
#ifdef HAVE_LIBOTR
if (msgid && strcmp(msgid, "otrinject") == 0)
msgid = NULL;
- else {
+ else if (type == ROSTER_TYPE_USER) {
otr_msg = otr_send((char **)&text, barejid);
if (!text) {
g_free(barejid);
--- 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);
}