Mercurial > pidgin
comparison plugins/psychic.c @ 13683:59a86d70825b
[gaim-migrate @ 16086]
If we're going to support crappy stalker-enablement plugins, we should
at least make an effort to ensure that they don't require C99.
This removes a variadic macro (DEBUG_INFO) from psychic.c by:
%s/DEBUG_INFO(/gaim_debug_info("psychic", /
There were only three occurrences of the DEBUG_INFO macro, so this
isn't a big deal.
committer: Tailor Script <tailor@pidgin.im>
author | Ethan Blanton <elb@pidgin.im> |
---|---|
date | Sun, 23 Apr 2006 22:05:14 +0000 |
parents | 465c368366f8 |
children | 85267a333422 |
comparison
equal
deleted
inserted
replaced
13682:48c261f76657 | 13683:59a86d70825b |
---|---|
11 #include "version.h" | 11 #include "version.h" |
12 | 12 |
13 #include "plugin.h" | 13 #include "plugin.h" |
14 #include "pluginpref.h" | 14 #include "pluginpref.h" |
15 #include "prefs.h" | 15 #include "prefs.h" |
16 | |
17 | |
18 #define DEBUG_INFO(a...) gaim_debug_info("psychic", a) | |
19 | 16 |
20 | 17 |
21 #define PLUGIN_ID "core-psychic" | 18 #define PLUGIN_ID "core-psychic" |
22 #define PLUGIN_NAME N_("Psychic Mode") | 19 #define PLUGIN_NAME N_("Psychic Mode") |
23 #define PLUGIN_SUMMARY N_("Psychic mode for incoming conversation") | 20 #define PLUGIN_SUMMARY N_("Psychic mode for incoming conversation") |
37 buddy_typing_cb(GaimAccount *acct, const char *name, void *data) { | 34 buddy_typing_cb(GaimAccount *acct, const char *name, void *data) { |
38 GaimConversation *gconv; | 35 GaimConversation *gconv; |
39 | 36 |
40 if(gaim_prefs_get_bool(PREF_STATUS) && | 37 if(gaim_prefs_get_bool(PREF_STATUS) && |
41 ! gaim_status_is_available(gaim_account_get_active_status(acct))) { | 38 ! gaim_status_is_available(gaim_account_get_active_status(acct))) { |
42 DEBUG_INFO("not available, doing nothing\n"); | 39 gaim_debug_info("psychic", "not available, doing nothing\n"); |
43 return; | 40 return; |
44 } | 41 } |
45 | 42 |
46 if(gaim_prefs_get_bool(PREF_BUDDIES) && | 43 if(gaim_prefs_get_bool(PREF_BUDDIES) && |
47 ! gaim_find_buddy(acct, name)) { | 44 ! gaim_find_buddy(acct, name)) { |
48 DEBUG_INFO("not in blist, doing nothing\n"); | 45 gaim_debug_info("psychic", "not in blist, doing nothing\n"); |
49 return; | 46 return; |
50 } | 47 } |
51 | 48 |
52 gconv = gaim_find_conversation_with_account(GAIM_CONV_TYPE_IM, name, acct); | 49 gconv = gaim_find_conversation_with_account(GAIM_CONV_TYPE_IM, name, acct); |
53 if(! gconv) { | 50 if(! gconv) { |
54 DEBUG_INFO("no previous conversation exists\n"); | 51 gaim_debug_info("psychic", "no previous conversation exists\n"); |
55 gconv = gaim_conversation_new(GAIM_CONV_TYPE_IM, acct, name); | 52 gconv = gaim_conversation_new(GAIM_CONV_TYPE_IM, acct, name); |
56 gaim_conversation_present(gconv); | 53 gaim_conversation_present(gconv); |
57 | 54 |
58 if(gaim_prefs_get_bool(PREF_NOTICE)) { | 55 if(gaim_prefs_get_bool(PREF_NOTICE)) { |
59 gaim_conversation_write(gconv, NULL, | 56 gaim_conversation_write(gconv, NULL, |