mcabber/src/otr.c
changeset 1343 8a05feb23c5a
parent 1335 ab1b7f7a682e
child 1346 e36b21e11760
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. */