Mercurial > pidgin
comparison src/protocols/oscar/oscar.c @ 11049:c716cc44bfaa
[gaim-migrate @ 12983]
Enabled sending files to ICQ users
committer: Tailor Script <tailor@pidgin.im>
author | Jonathan Clark <ardentlygnarly> |
---|---|
date | Sat, 02 Jul 2005 16:44:01 +0000 |
parents | 50224ac8184d |
children | 3fc99df46dae |
comparison
equal
deleted
inserted
replaced
11048:3f04018e1308 | 11049:c716cc44bfaa |
---|---|
3 * | 3 * |
4 * Some code copyright (C) 1998-1999, Mark Spencer <markster@marko.net> | 4 * Some code copyright (C) 1998-1999, Mark Spencer <markster@marko.net> |
5 * Some code copyright (C) 1999-2001, Eric Warmenhoven | 5 * Some code copyright (C) 1999-2001, Eric Warmenhoven |
6 * Some code copyright (C) 2001-2003, Sean Egan | 6 * Some code copyright (C) 2001-2003, Sean Egan |
7 * Some code copyright (C) 2001-2004, Mark Doliner <thekingant@users.sourceforge.net> | 7 * Some code copyright (C) 2001-2004, Mark Doliner <thekingant@users.sourceforge.net> |
8 * Some code copyright (C) 2005, Jonathan Clark <ardentlygnarly@users.sourceforge.net> | |
8 * | 9 * |
9 * Most libfaim code copyright (C) 1998-2001 Adam Fritzler <afritz@auk.cx> | 10 * Most libfaim code copyright (C) 1998-2001 Adam Fritzler <afritz@auk.cx> |
10 * Some libfaim code copyright (C) 2001-2004 Mark Doliner <thekingant@users.sourceforge.net> | 11 * Some libfaim code copyright (C) 2001-2004 Mark Doliner <thekingant@users.sourceforge.net> |
11 * | 12 * |
12 * This program is free software; you can redistribute it and/or modify | 13 * This program is free software; you can redistribute it and/or modify |
2157 | 2158 |
2158 static gboolean oscar_can_receive_file(GaimConnection *gc, const char *who) { | 2159 static gboolean oscar_can_receive_file(GaimConnection *gc, const char *who) { |
2159 gboolean can_receive = FALSE; | 2160 gboolean can_receive = FALSE; |
2160 OscarData *od = gc->proto_data; | 2161 OscarData *od = gc->proto_data; |
2161 | 2162 |
2162 if (od != NULL && !od->icq) { | 2163 if (od != NULL) { |
2163 aim_userinfo_t *userinfo; | 2164 aim_userinfo_t *userinfo; |
2164 userinfo = aim_locate_finduserinfo(od->sess, who); | 2165 userinfo = aim_locate_finduserinfo(od->sess, who); |
2165 if (userinfo && userinfo->capabilities & AIM_CAPS_SENDFILE) | 2166 if (userinfo && userinfo->capabilities & AIM_CAPS_SENDFILE) |
2166 can_receive = TRUE; | 2167 can_receive = TRUE; |
2167 } | 2168 } |