Ignore:
Timestamp:
2010-12-13T00:42:58Z (13 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
c5920df
Parents:
8eec79d
Message:

Silently adding /CTCP NUDGE support for MSN contacts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/msn.c

    r8eec79d r9c84617  
    352352       
    353353        g_tree_remove( md->domaintree, bu->handle );
     354}
     355
     356GList *msn_buddy_action_list( bee_user_t *bu )
     357{
     358        static GList *ret = NULL;
     359       
     360        if( ret == NULL )
     361        {
     362                static const struct buddy_action ba[2] = {
     363                        { "NUDGE", "Draw attention" },
     364                };
     365               
     366                ret = g_list_prepend( ret, (void*) ba + 0 );
     367        }
     368       
     369        return ret;
     370}
     371
     372void *msn_buddy_action( struct bee_user *bu, const char *action, char * const args[], void *data )
     373{
     374        if( g_strcasecmp( action, "NUDGE" ) == 0 )
     375                msn_buddy_msg( bu->ic, bu->handle, NUDGE_MESSAGE, 0 );
     376       
     377        return NULL;
    354378}
    355379
     
    382406        ret->buddy_data_add = msn_buddy_data_add;
    383407        ret->buddy_data_free = msn_buddy_data_free;
     408        ret->buddy_action_list = msn_buddy_action_list;
     409        ret->buddy_action = msn_buddy_action;
    384410       
    385411        //ret->transfer_request = msn_ftp_transfer_request;
Note: See TracChangeset for help on using the changeset viewer.