Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/jabber.c

    r7b23afd r9cb9868  
    157157#define JCS_CLOSED  3   /* closed */
    158158
     159
     160static char *jabber_name()
     161{
     162        return "Jabber";
     163}
    159164
    160165#define STATE_EVT(arg) if(gjc->on_state) { (gjc->on_state)(gjc, (arg) ); }
     
    24082413}
    24092414
    2410 
    2411 void jabber_init()
    2412 {
    2413         struct prpl *ret = g_new0(struct prpl, 1);
    2414 
     2415static struct prpl *my_protocol = NULL;
     2416
     2417void jabber_init(struct prpl *ret)
     2418{
    24152419        /* the NULL's aren't required but they're nice to have */
    2416         ret->name = "jabber";
     2420        ret->protocol = PROTO_JABBER;
     2421        ret->name = jabber_name;
    24172422        ret->away_states = jabber_away_states;
    24182423        ret->actions = jabber_actions;
     
    24362441        ret->alias_buddy = jabber_roster_update;
    24372442        ret->group_buddy = jabber_group_change;
    2438 
    2439         register_protocol (ret);
    2440 }
     2443        ret->cmp_buddynames = g_strcasecmp;
     2444
     2445        my_protocol = ret;
     2446}
Note: See TracChangeset for help on using the changeset viewer.