src/protocols/oscar/oscar.c

changeset 10152
96aa54c82206
parent 10130
7256fb884aaf
child 10157
650fd69090cd
--- a/src/protocols/oscar/oscar.c	Sat Oct 30 02:28:50 2004 +0000
+++ b/src/protocols/oscar/oscar.c	Tue Nov 02 03:17:06 2004 +0000
@@ -4707,6 +4707,7 @@
 static int gaim_selfinfo(aim_session_t *sess, aim_frame_t *fr, ...) {
 	GaimConnection *gc = sess->aux_data;
 	GaimAccount *account = gaim_connection_get_account(gc);
+	GaimPresence *presence = gaim_account_get_presence(account);
 	int warning_level;
 	va_list ap;
 	aim_userinfo_t *info;
@@ -4717,12 +4718,7 @@
 
 	warning_level = info->warnlevel/10.0 + 0.5;
 
-	/*
-	 * XXX - Calling this is probably not good.  We just want to set the
-	 * warning level for our account, not tell the user that we were just
-	 * warned.
-	 */
-	gaim_prpl_got_account_warning_level(account, NULL, warning_level);
+	gaim_presence_set_warning_level(presence, warning_level);
 
 	return 1;
 }

mercurial