diff options
-rw-r--r-- | skype/skype.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/skype/skype.c b/skype/skype.c index 22f422f2..95aab5d4 100644 --- a/skype/skype.c +++ b/skype/skype.c @@ -586,9 +586,13 @@ static void skype_remove_buddy( struct im_connection *ic, char *who, char *group g_free(nick); } -void skype_chat_msg( struct groupchat *c, char *message, int flags ) +void skype_chat_msg( struct groupchat *gc, char *message, int flags ) { - // TODO: this is just here atm to prevent a segfault + struct im_connection *ic = gc->ic; + char *buf; + buf = g_strdup_printf("CHATMESSAGE %s %s\n", gc->title, message); + skype_write( ic, buf, strlen( buf ) ); + g_free(buf); } void init_plugin(void) |