comparison src/protocols/oscar/oscar.c @ 10152:3cec08c6179c

[gaim-migrate @ 11229] If it's "probably" not good, then it's "probably" not a good idea to do it. So don't. committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Tue, 02 Nov 2004 03:17:06 +0000
parents 096197a628bf
children 0de7eee583e6
comparison
equal deleted inserted replaced
10151:d83e6f2125b1 10152:3cec08c6179c
4705 } 4705 }
4706 4706
4707 static int gaim_selfinfo(aim_session_t *sess, aim_frame_t *fr, ...) { 4707 static int gaim_selfinfo(aim_session_t *sess, aim_frame_t *fr, ...) {
4708 GaimConnection *gc = sess->aux_data; 4708 GaimConnection *gc = sess->aux_data;
4709 GaimAccount *account = gaim_connection_get_account(gc); 4709 GaimAccount *account = gaim_connection_get_account(gc);
4710 GaimPresence *presence = gaim_account_get_presence(account);
4710 int warning_level; 4711 int warning_level;
4711 va_list ap; 4712 va_list ap;
4712 aim_userinfo_t *info; 4713 aim_userinfo_t *info;
4713 4714
4714 va_start(ap, fr); 4715 va_start(ap, fr);
4715 info = va_arg(ap, aim_userinfo_t *); 4716 info = va_arg(ap, aim_userinfo_t *);
4716 va_end(ap); 4717 va_end(ap);
4717 4718
4718 warning_level = info->warnlevel/10.0 + 0.5; 4719 warning_level = info->warnlevel/10.0 + 0.5;
4719 4720
4720 /* 4721 gaim_presence_set_warning_level(presence, warning_level);
4721 * XXX - Calling this is probably not good. We just want to set the
4722 * warning level for our account, not tell the user that we were just
4723 * warned.
4724 */
4725 gaim_prpl_got_account_warning_level(account, NULL, warning_level);
4726 4722
4727 return 1; 4723 return 1;
4728 } 4724 }
4729 4725
4730 static int gaim_connerr(aim_session_t *sess, aim_frame_t *fr, ...) { 4726 static int gaim_connerr(aim_session_t *sess, aim_frame_t *fr, ...) {