Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/jabber.c

    r027d2eb ra252c1a  
    155155#define JCS_CLOSED  3   /* closed */
    156156
    157 
    158 static char *jabber_name()
    159 {
    160         return "Jabber";
    161 }
    162157
    163158#define STATE_EVT(arg) if(gjc->on_state) { (gjc->on_state)(gjc, (arg) ); }
     
    12541249                        gjab_auth(gjc);
    12551250                } else {
     1251                        gjab_reqroster(gjc);
    12561252                        account_online(GJ_GC(gjc));
    1257 
    1258                         if (bud_list_cache_exists(GJ_GC(gjc)))
    1259                                 do_import(GJ_GC(gjc), NULL);
    1260 
     1253                       
    12611254                        ((struct jabber_data *)GJ_GC(gjc)->proto_data)->did_import = TRUE;
    1262 
    1263                         gjab_reqroster(gjc);
    12641255                }
    12651256        } else {
     
    18651856                        xmlnode_insert_cdata(y, "away", -1);
    18661857                        y = xmlnode_insert_tag(x, "status");
    1867                         {
    1868                                 char *utf8 = str_to_utf8(message);
    1869                                 xmlnode_insert_cdata(y, utf8, -1);
    1870                                 g_free(utf8);
    1871                         }
     1858                        xmlnode_insert_cdata(y, message, -1);
    18721859                        gc->away = "";
    18731860                } else {
     
    23682355}
    23692356
    2370 static struct prpl *my_protocol = NULL;
    2371 
    2372 void jabber_init(struct prpl *ret)
    2373 {
     2357
     2358void jabber_init()
     2359{
     2360        struct prpl *ret = g_new0(struct prpl, 1);
     2361
    23742362        /* the NULL's aren't required but they're nice to have */
    2375         ret->protocol = PROTO_JABBER;
    2376         ret->name = jabber_name;
     2363        ret->name = "jabber";
    23772364        ret->away_states = jabber_away_states;
    23782365        ret->actions = jabber_actions;
     
    23982385        ret->cmp_buddynames = g_strcasecmp;
    23992386
    2400         my_protocol = ret;
    2401 }
     2387        register_protocol (ret);
     2388}
Note: See TracChangeset for help on using the changeset viewer.