Mercurial > pidgin.yaz
comparison src/protocols/oscar/oscar.c @ 2673:81d658e6ac1e
[gaim-migrate @ 2686]
my back hurts.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Mon, 05 Nov 2001 08:25:10 +0000 |
parents | c41030cfed76 |
children | de99ce38ad1f |
comparison
equal
deleted
inserted
replaced
2672:c41030cfed76 | 2673:81d658e6ac1e |
---|---|
1334 file = fopen(gc->user->iconfile, "r"); | 1334 file = fopen(gc->user->iconfile, "r"); |
1335 if (file) { | 1335 if (file) { |
1336 int len = fread(buf, 1, st.st_size, file); | 1336 int len = fread(buf, 1, st.st_size, file); |
1337 debug_printf("Sending buddy icon to %s (%d bytes, %d reported)\n", | 1337 debug_printf("Sending buddy icon to %s (%d bytes, %d reported)\n", |
1338 userinfo->sn, len, st.st_size); | 1338 userinfo->sn, len, st.st_size); |
1339 aim_send_icon(sess, conn, userinfo->sn, buf, st.st_size, | 1339 aim_send_icon(sess, userinfo->sn, buf, st.st_size, |
1340 st.st_mtime, aim_iconsum(buf, st.st_size)); | 1340 st.st_mtime, aim_iconsum(buf, st.st_size)); |
1341 fclose(file); | 1341 fclose(file); |
1342 } else | 1342 } else |
1343 debug_printf("Can't open buddy icon file!\n"); | 1343 debug_printf("Can't open buddy icon file!\n"); |
1344 g_free(buf); | 1344 g_free(buf); |
1947 if (bud_list_cache_exists(gc)) | 1947 if (bud_list_cache_exists(gc)) |
1948 do_import(gc, NULL); | 1948 do_import(gc, NULL); |
1949 | 1949 |
1950 debug_printf("buddy list loaded\n"); | 1950 debug_printf("buddy list loaded\n"); |
1951 | 1951 |
1952 aim_reqicbmparams(sess, fr->conn); | 1952 aim_reqicbmparams(sess); |
1953 | 1953 |
1954 aim_bos_reqrights(sess, fr->conn); | 1954 aim_bos_reqrights(sess, fr->conn); |
1955 aim_bos_setgroupperm(sess, fr->conn, AIM_FLAG_ALLUSERS); | 1955 aim_bos_setgroupperm(sess, fr->conn, AIM_FLAG_ALLUSERS); |
1956 aim_bos_setprivacyflags(sess, fr->conn, AIM_PRIVFLAGS_ALLOWIDLE | | 1956 aim_bos_setprivacyflags(sess, fr->conn, AIM_PRIVFLAGS_ALLOWIDLE | |
1957 AIM_PRIVFLAGS_ALLOWMEMBERSINCE); | 1957 AIM_PRIVFLAGS_ALLOWMEMBERSINCE); |
2006 | 2006 |
2007 /* Maybe senderwarn and recverwarn should be user preferences... */ | 2007 /* Maybe senderwarn and recverwarn should be user preferences... */ |
2008 params->maxmsglen = 8000; | 2008 params->maxmsglen = 8000; |
2009 params->minmsginterval = 0; | 2009 params->minmsginterval = 0; |
2010 | 2010 |
2011 aim_seticbmparam(sess, fr->conn, params); | 2011 aim_seticbmparam(sess, params); |
2012 | 2012 |
2013 return 1; | 2013 return 1; |
2014 } | 2014 } |
2015 | 2015 |
2016 /* XXX this is frivelous... do you really want to know this info? */ | 2016 /* XXX this is frivelous... do you really want to know this info? */ |
2149 int ret = 0; | 2149 int ret = 0; |
2150 if (dim) { | 2150 if (dim) { |
2151 ret = aim_send_im_direct(odata->sess, dim->conn, message); | 2151 ret = aim_send_im_direct(odata->sess, dim->conn, message); |
2152 } else { | 2152 } else { |
2153 if (imflags & IM_FLAG_AWAY) | 2153 if (imflags & IM_FLAG_AWAY) |
2154 ret = aim_send_im(odata->sess, odata->conn, name, AIM_IMFLAGS_AWAY, message); | 2154 ret = aim_send_im(odata->sess, name, AIM_IMFLAGS_AWAY, message); |
2155 else { | 2155 else { |
2156 struct aim_sendimext_args args; | 2156 struct aim_sendimext_args args; |
2157 GSList *h = odata->hasicons; | 2157 GSList *h = odata->hasicons; |
2158 struct icon_req *ir = NULL; | 2158 struct icon_req *ir = NULL; |
2159 char *who = normalize(name); | 2159 char *who = normalize(name); |
2196 | 2196 |
2197 args.destsn = name; | 2197 args.destsn = name; |
2198 args.msg = message; | 2198 args.msg = message; |
2199 args.msglen = strlen(message); | 2199 args.msglen = strlen(message); |
2200 | 2200 |
2201 ret = aim_send_im_ext(odata->sess, odata->conn, &args); | 2201 ret = aim_send_im_ext(odata->sess, &args); |
2202 } | 2202 } |
2203 } | 2203 } |
2204 if (ret >= 0) | 2204 if (ret >= 0) |
2205 return 1; | 2205 return 1; |
2206 return ret; | 2206 return ret; |