comparison src/protocols/oscar/ft.c @ 9826:6f2a90c36ee2

[gaim-migrate @ 10697] Kevin pointed out that the error message for AIM when you couldn't send a message to someone could be better. So I made it better. Also renamed AIM_IMCHARSET_bleh to AIM_CHARSET_bleh, since they're used in direct connect stuff, too. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 22 Aug 2004 17:59:17 +0000
parents 30a812571a6b
children 9cafe038c95e
comparison
equal deleted inserted replaced
9825:c00def44d76a 9826:6f2a90c36ee2
320 * 320 *
321 * @param sess The session. 321 * @param sess The session.
322 * @param conn The already-connected ODC connection. 322 * @param conn The already-connected ODC connection.
323 * @param msg Null-terminated string to send. 323 * @param msg Null-terminated string to send.
324 * @param len The length of the message to send, including binary data. 324 * @param len The length of the message to send, including binary data.
325 * @param encoding 0 for ascii, 2 for Unicode, 3 for ISO 8859-1. 325 * @param encoding See the AIM_CHARSET_* defines in aim.h
326 * @param isawaymsg 0 if this is not an auto-response, 1 if it is. 326 * @param isawaymsg 0 if this is not an auto-response, 1 if it is.
327 * @return Return 0 if no errors, otherwise return the error number. 327 * @return Return 0 if no errors, otherwise return the error number.
328 */ 328 */
329 faim_export int aim_odc_send_im(aim_session_t *sess, aim_conn_t *conn, const char *msg, int len, int encoding, int isawaymsg) 329 faim_export int aim_odc_send_im(aim_session_t *sess, aim_conn_t *conn, const char *msg, int len, int encoding, int isawaymsg)
330 { 330 {
874 * SNACs. 874 * SNACs.
875 */ 875 */
876 fh->lnameoffset = 0x1a; 876 fh->lnameoffset = 0x1a;
877 fh->lsizeoffset = 0x10; 877 fh->lsizeoffset = 0x10;
878 878
879 /* apparently 0 is ASCII, 2 is UCS-2 */ 879 /* These should be the same as charset and charsubset in ICBMs */
880 /* it is likely that 3 is ISO 8859-1 */
881 /* I think "nlanguage" might be the same thing as "subenc" in im.c */
882 fh->nencode = 0x0000; 880 fh->nencode = 0x0000;
883 fh->nlanguage = 0x0000; 881 fh->nlanguage = 0x0000;
884 #endif 882 #endif
885 883
886 aim_oft_dirconvert_tostupid(oft_info->fh.name); 884 aim_oft_dirconvert_tostupid(oft_info->fh.name);