Mercurial > pidgin
diff src/prpl.c @ 11257:90be432e8385
[gaim-migrate @ 13432]
Removed warning from core.
I think you should be able to see others' warning levels in the tooltip,
but I haven't managed to warn myself from any client.
Being able to warn others will be dependent on protocol-specific convo
menus.
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Sun, 14 Aug 2005 03:50:35 +0000 |
parents | b75ce371c812 |
children | e1e47878d0ed |
line wrap: on
line diff
--- a/src/prpl.c Sat Aug 13 22:09:34 2005 +0000 +++ b/src/prpl.c Sun Aug 14 03:50:35 2005 +0000 @@ -185,43 +185,6 @@ } void -gaim_prpl_got_account_warning_level(GaimAccount *account, const char *username, - unsigned int level) -{ - GaimPresence *presence; - unsigned int old_level; - gchar *buf; - - g_return_if_fail(account != NULL); - - presence = gaim_account_get_presence(account); - - gaim_signal_emit(gaim_accounts_get_handle(), "account-warned", - account, username, level); - - old_level = gaim_presence_get_warning_level(presence); - gaim_presence_set_warning_level(presence, level); - - if (old_level >= level) - return; - - if (username == NULL) - buf = g_strdup_printf(_("%s has just been warned by an anonymous " - "person.\nYour new warning level is %d%%"), - gaim_account_get_username(account), - level); - else - buf = g_strdup_printf(_("%s has just been warned by %s.\n" - "Your new warning level is %d%%"), - gaim_account_get_username(account), - username, level); - - gaim_notify_info(NULL, NULL, buf, NULL); - - g_free(buf); -} - -void gaim_prpl_got_user_idle(GaimAccount *account, const char *name, gboolean idle, time_t idle_time) { @@ -316,28 +279,6 @@ } void -gaim_prpl_got_user_warning_level(GaimAccount *account, const char *name, - unsigned int level) -{ - GSList *l; - - g_return_if_fail(account != NULL); - g_return_if_fail(name != NULL); - - for (l = gaim_find_buddies(account, name); l != NULL; l = l->next) - { - GaimBuddy *buddy; - GaimPresence *presence; - - buddy = (GaimBuddy *)l->data; - - presence = gaim_buddy_get_presence(buddy); - - gaim_presence_set_warning_level(presence, level); - } -} - -void gaim_prpl_change_account_status(GaimAccount *account, GaimStatus *old_status, GaimStatus *new_status) {