Mercurial > pidgin.yaz
diff finch/plugins/gnthistory.c @ 17977:f71bd7e56389
propagate from branch 'im.pidgin.pidgin' (head b438ea0760758dc547f95d62892455f50ee4c4f1)
to branch 'im.pidgin.soc.2007.remotelogging' (head 7e683fd40634aa3eb22dcf25cbd25c8959d76662)
author | Michael Shkutkov <mshkutkov@soc.pidgin.im> |
---|---|
date | Sat, 09 Jun 2007 12:01:29 +0000 |
parents | 30829e806dae |
children | 44b4e8bd759b |
line wrap: on
line diff
--- a/finch/plugins/gnthistory.c Sun Apr 22 11:11:49 2007 +0000 +++ b/finch/plugins/gnthistory.c Sat Jun 09 12:01:29 2007 +0000 @@ -57,7 +57,7 @@ /* If we're not logging, don't show anything. * Otherwise, we might show a very old log. */ - if (!purple_prefs_get_bool("/core/logging/log_ims")) + if (!purple_prefs_get_bool("/purple/logging/log_ims")) return; /* Find buddies for this conversation. */ @@ -101,7 +101,7 @@ { /* If we're not logging, don't show anything. * Otherwise, we might show a very old log. */ - if (!purple_prefs_get_bool("/core/logging/log_chats")) + if (!purple_prefs_get_bool("/purple/logging/log_chats")) return; logs = purple_log_get_logs(PURPLE_LOG_CHAT, name, account); @@ -132,8 +132,8 @@ static void history_prefs_check(PurplePlugin *plugin) { - if (!purple_prefs_get_bool("/core/logging/log_ims") && - !purple_prefs_get_bool("/core/logging/log_chats")) + if (!purple_prefs_get_bool("/purple/logging/log_ims") && + !purple_prefs_get_bool("/purple/logging/log_chats")) { purple_notify_warning(plugin, NULL, _("History Plugin Requires Logging"), _("Logging can be enabled from Tools -> Preferences -> Logging.\n\n" @@ -155,9 +155,9 @@ "conversation-created", plugin, PURPLE_CALLBACK(historize), NULL); - purple_prefs_connect_callback(plugin, "/core/logging/log_ims", + purple_prefs_connect_callback(plugin, "/purple/logging/log_ims", history_prefs_cb, plugin); - purple_prefs_connect_callback(plugin, "/core/logging/log_chats", + purple_prefs_connect_callback(plugin, "/purple/logging/log_chats", history_prefs_cb, plugin); history_prefs_check(plugin); @@ -190,6 +190,12 @@ NULL, NULL, NULL, + NULL, + + /* padding */ + NULL, + NULL, + NULL, NULL };