Changeset 93ece66 for skype/skype.c


Ignore:
Timestamp:
2007-08-20T01:49:06Z (17 years ago)
Author:
VMiklos <vmiklos@…>
Branches:
master
Children:
0bb1b7f
Parents:
592f824
Message:

implement skype_buddy_msg()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • skype/skype.c

    r592f824 r93ece66  
    185185}
    186186
     187static int skype_buddy_msg( struct im_connection *ic, char *who, char *message, int flags )
     188{
     189        char *buf, *ptr;
     190        int st;
     191
     192        ptr = strchr(who, '@');
     193        *ptr = '\0';
     194
     195        buf = g_strdup_printf("MESSAGE %s %s\n", who, message);
     196        st = skype_write( ic, buf, strlen( buf ) );
     197        g_free(buf);
     198
     199        return st;
     200}
     201
    187202static void skype_set_away( struct im_connection *ic, char *state_txt, char *message )
    188203{
     
    217232        ret->init = skype_init;
    218233        ret->logout = skype_logout;
     234        ret->buddy_msg = skype_buddy_msg;
    219235        ret->away_states = skype_away_states;
    220236        ret->add_buddy = skype_add_buddy;
Note: See TracChangeset for help on using the changeset viewer.