Changeset 93ece66 for skype


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

implement skype_buddy_msg()

Location:
skype
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • skype/README

    r592f824 r93ece66  
    22
    33- Download nicks and away statuses from Skype
     4
     5- Sending messages
    46
    57What needs to be done:
     
    911- join / parts
    1012
    11 - msg sending
     13- msg receiving
    1214
    13 - msg receiving
     15- add/remove users, detect when somebody wants to add us (maybe detect when we're removed?)
    1416
    1517Shots at:
  • 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.