# HG changeset patch # User Mikael Berthe # Date 1214327846 -7200 # Node ID 6f5754f86fbb2e7117503666178c70e1cc7179aa # Parent ff0ed873ec1935d60d72de65d671faa30e1cd7e6 Fix JID case issue with OTR, v2 (franky) diff -r ff0ed873ec19 -r 6f5754f86fbb mcabber/src/otr.c --- a/mcabber/src/otr.c Mon May 05 01:22:19 2008 +0200 +++ b/mcabber/src/otr.c Tue Jun 24 19:17:26 2008 +0200 @@ -197,8 +197,14 @@ static ConnContext * otr_get_context(const char *buddy) { int null = 0; - return otrl_context_find(userstate, buddy, account, "jabber", 1, &null, - NULL, NULL); + ConnContext * ctx; + char * lowcasebuddy = g_strdup(buddy); + + mc_strtolower(lowcasebuddy); + ctx = otrl_context_find(userstate, lowcasebuddy, account, "jabber", 1, &null, + NULL, NULL); + g_free(lowcasebuddy); + return ctx; } static void otr_message_disconnect(ConnContext *ctx)