Ignore:
Timestamp:
2015-05-13T07:43:24Z (9 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
99fe030
Parents:
2730c79
Message:

msn: Remove nudges

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/msn.c

    r2730c79 ra733669  
    338338
    339339        g_tree_remove(md->domaintree, bu->handle);
    340 }
    341 
    342 GList *msn_buddy_action_list(bee_user_t *bu)
    343 {
    344         static GList *ret = NULL;
    345 
    346         if (ret == NULL) {
    347                 static const struct buddy_action ba[2] = {
    348                         { "NUDGE", "Draw attention" },
    349                 };
    350 
    351                 ret = g_list_prepend(ret, (void *) ba + 0);
    352         }
    353 
    354         return ret;
    355 }
    356 
    357 void *msn_buddy_action(struct bee_user *bu, const char *action, char * const args[], void *data)
    358 {
    359         if (g_strcasecmp(action, "NUDGE") == 0) {
    360                 msn_buddy_msg(bu->ic, bu->handle, NUDGE_MESSAGE, 0);
    361         }
    362 
    363         return NULL;
    364340}
    365341
     
    392368        ret->buddy_data_add = msn_buddy_data_add;
    393369        ret->buddy_data_free = msn_buddy_data_free;
    394         ret->buddy_action_list = msn_buddy_action_list;
    395         ret->buddy_action = msn_buddy_action;
    396370
    397371        register_protocol(ret);
Note: See TracChangeset for help on using the changeset viewer.