comparison mcabber/src/jabglue.c @ 1577:e1a642472f4e

Use otr context where possible, saves one mc_strtolower() per received message
author franky
date Sun, 12 Apr 2009 20:20:56 +0200
parents 3df441efb7c2
children 5bb4b580f229
comparison
equal deleted inserted replaced
1576:72fef01d9061 1577:e1a642472f4e
1809 #endif 1809 #endif
1810 1810
1811 #ifdef HAVE_LIBOTR 1811 #ifdef HAVE_LIBOTR
1812 if (otr_enabled()) { 1812 if (otr_enabled()) {
1813 decrypted_otr = (char*)body; 1813 decrypted_otr = (char*)body;
1814 mc_strtolower(bjid);
1815 otr_msg = otr_receive(&decrypted_otr, bjid, &free_msg); 1814 otr_msg = otr_receive(&decrypted_otr, bjid, &free_msg);
1816 if (!decrypted_otr) { 1815 if (!decrypted_otr) {
1817 goto gotmessage_return; 1816 goto gotmessage_return;
1818 } 1817 }
1819 body = decrypted_otr; 1818 body = decrypted_otr;