aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/msn/msn_util.c
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/msn/msn_util.c')
-rw-r--r--protocols/msn/msn_util.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/protocols/msn/msn_util.c b/protocols/msn/msn_util.c
index d5a74a47..c6afd29a 100644
--- a/protocols/msn/msn_util.c
+++ b/protocols/msn/msn_util.c
@@ -1,7 +1,7 @@
/********************************************************************\
* BitlBee -- An IRC to other IM-networks gateway *
* *
- * Copyright 2002-2010 Wilmer van der Gaast and others *
+ * Copyright 2002-2012 Wilmer van der Gaast and others *
\********************************************************************/
/* MSN module - Miscellaneous utilities */
@@ -29,13 +29,6 @@
#include "soap.h"
#include <ctype.h>
-int msn_logged_in( struct im_connection *ic )
-{
- imcb_connected( ic );
-
- return( 0 );
-}
-
static char *adlrml_entry( const char *handle_, msn_buddy_flags_t list )
{
char *domain, handle[strlen(handle_)+1];
@@ -536,3 +529,11 @@ int msn_ns_set_display_name( struct im_connection *ic, const char *value )
and won't give proper feedback yet if it doesn't. */
return msn_ns_write( ic, -1, "PRP %d MFN %s\r\n", ++md->trId, fn );
}
+
+const char *msn_normalize_handle( const char *handle )
+{
+ if( strncmp( handle, "1:", 2 ) == 0 )
+ return handle + 2;
+ else
+ return handle;
+}