diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2012-10-01 23:51:39 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2012-10-01 23:51:39 +0100 |
commit | 06aed9a22b0218740f8130486b797f12f36ba605 (patch) | |
tree | f35780d108a8f5bd51eb3c6a34e98259434d4f18 /protocols/msn/msn_util.c | |
parent | a992d7aa04ce3224429e3648c49abced2edf1b07 (diff) | |
parent | 4c9d3777d99191786a449912989a66a44a038383 (diff) |
Merge msnp18 branch. It's stable enough and really not that intrusive.
Diffstat (limited to 'protocols/msn/msn_util.c')
-rw-r--r-- | protocols/msn/msn_util.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/protocols/msn/msn_util.c b/protocols/msn/msn_util.c index d5a74a47..f2f67eb3 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 */ @@ -536,3 +536,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; +} |