Changeset ad9ac5d for protocols/nogaim.h


Ignore:
Timestamp:
2015-11-23T21:20:34Z (5 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
1e2094e, 5b01e1a
Parents:
9c8dbc7
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/nogaim.h

    r9c8dbc7 rad9ac5d  
    275275G_MODULE_EXPORT GSList *get_connections();
    276276G_MODULE_EXPORT struct prpl *find_protocol(const char *name);
     277G_MODULE_EXPORT gboolean is_protocol_disabled(const char *name);
    277278/* When registering a new protocol, you should allocate space for a new prpl
    278279 * struct, initialize it (set the function pointers to point to your
Note: See TracChangeset for help on using the changeset viewer.