Changeset a733669


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

msn: Remove nudges

Location:
protocols/msn
Files:
2 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);
  • protocols/msn/msn.h

    r2730c79 ra733669  
    3030 */
    3131#define TYPING_NOTIFICATION_MESSAGE "\r\r\rBEWARE, ME R TYPINK MESSAGE!!!!\r\r\r"
    32 #define NUDGE_MESSAGE "\r\r\rSHAKE THAT THING\r\r\r"
    3332#define GROUPCHAT_SWITCHBOARD_MESSAGE "\r\r\rME WANT TALK TO MANY PEOPLE\r\r\r"
    3433
     
    107106        "TypingUser: %s\r\n" \
    108107        "\r\n\r\n"
    109 
    110 #define MSN_NUDGE_HEADERS "MIME-Version: 1.0\r\n" \
    111         "Content-Type: text/x-msnmsgr-datacast\r\n" \
    112         "\r\n" \
    113         "ID: 1\r\n" \
    114         "\r\n"
    115108
    116109#define PROFILE_URL "http://members.msn.com/"
Note: See TracChangeset for help on using the changeset viewer.