equal
deleted
inserted
replaced
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. */ |