# HG changeset patch # User Thomas Butter # Date 1139428194 0 # Node ID ee7ac8a41ec48935c28964df2e5c5607fe1d3d89 # Parent fbed36c27bca5758cedb6d62ca6f57d9021d3828 [gaim-migrate @ 15547] datallah noticed that sip: isn't added to a buddies name if the buddies->send message menu entry is used. diff -r fbed36c27bca -r ee7ac8a41ec4 src/protocols/simple/simple.c --- a/src/protocols/simple/simple.c Wed Feb 08 19:14:16 2006 +0000 +++ b/src/protocols/simple/simple.c Wed Feb 08 19:49:54 2006 +0000 @@ -757,13 +757,20 @@ static void simple_send_message(struct simple_account_data *sip, char *to, char *msg, char *type) { gchar *hdr; + gchar *fullto; + if(strncmp("sip:",to,4)) { + fullto = g_strdup_printf("sip:%s",to); + } else { + fullto = g_strdup(to); + } if(type) { hdr = g_strdup_printf("Content-Type: %s\r\n",type); } else { hdr = g_strdup("Content-Type: text/plain\r\n"); } - send_sip_request(sip->gc, "MESSAGE", to, to, hdr, msg, NULL, NULL); + send_sip_request(sip->gc, "MESSAGE", fullto, fullto, hdr, msg, NULL, NULL); g_free(hdr); + g_free(fullto); } static int simple_im_send(GaimConnection *gc, const char *who, const char *what, GaimMessageFlags flags) {