diff options
author | dequis <dx@dxzone.com.ar> | 2015-11-23 18:20:34 -0300 |
---|---|---|
committer | dequis <dx@dxzone.com.ar> | 2015-11-23 18:20:34 -0300 |
commit | ad9ac5dccf8d27700850c02946ad3242a45d6fa9 (patch) | |
tree | b3596ac049c06c614644f9e4e592df94bbc6aae0 /protocols/nogaim.h | |
parent | 9c8dbc75d416c8867be20ccf3732303163e620ce (diff) |
Show a nicer message when a protocol is disabled in account add
This adds the disabled protocols' prpl structs to a different linked
list, only used for this lookup. They were previously marked as leaking
by valgrind, so, whatever. I can't free them, since some protocols
memdup() it after attempting to register.
I think disabling the protocols from bitlbee.conf is just stupid and
provides no real benefits, but someone will complain if i get rid of it.
So this just improves the error message to make it less confusing when
someone accidentally uncomments that crap.
Diffstat (limited to 'protocols/nogaim.h')
-rw-r--r-- | protocols/nogaim.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/protocols/nogaim.h b/protocols/nogaim.h index 668216b3..60f2898e 100644 --- a/protocols/nogaim.h +++ b/protocols/nogaim.h @@ -274,6 +274,7 @@ struct prpl { void nogaim_init(); G_MODULE_EXPORT GSList *get_connections(); G_MODULE_EXPORT struct prpl *find_protocol(const char *name); +G_MODULE_EXPORT gboolean is_protocol_disabled(const char *name); /* When registering a new protocol, you should allocate space for a new prpl * struct, initialize it (set the function pointers to point to your * functions), finally call this function. */ |