aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/msn/msn.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2012-09-16 01:09:58 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2012-09-16 01:09:58 +0100
commitbc676acb5f316f0688ab9f99dd2b73315a6ad50c (patch)
tree813e8096aa3589d4b8d3f9be45d72f282aa31292 /protocols/msn/msn.c
parentddca104c8c6e75e0b70bf804a23c98a78946fbdb (diff)
MSNP18 code. It logs in now but otherwise doesn't work all too well.
Diffstat (limited to 'protocols/msn/msn.c')
-rw-r--r--protocols/msn/msn.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/protocols/msn/msn.c b/protocols/msn/msn.c
index 03f28422..b05a2b85 100644
--- a/protocols/msn/msn.c
+++ b/protocols/msn/msn.c
@@ -231,13 +231,9 @@ static void msn_chat_msg( struct groupchat *c, char *message, int flags )
static void msn_chat_invite( struct groupchat *c, char *who, char *message )
{
struct msn_switchboard *sb = msn_sb_by_chat( c );
- char buf[1024];
if( sb )
- {
- g_snprintf( buf, sizeof( buf ), "CAL %d %s\r\n", ++sb->trId, who );
- msn_sb_write( sb, buf, strlen( buf ) );
- }
+ msn_sb_write( sb, "CAL %d %s\r\n", ++sb->trId, who );
}
static void msn_chat_leave( struct groupchat *c )
@@ -245,7 +241,7 @@ static void msn_chat_leave( struct groupchat *c )
struct msn_switchboard *sb = msn_sb_by_chat( c );
if( sb )
- msn_sb_write( sb, "OUT\r\n", 5 );
+ msn_sb_write( sb, "OUT\r\n" );
}
static struct groupchat *msn_chat_with( struct im_connection *ic, char *who )