aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/msn/ns.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-08-14 17:16:52 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2010-08-14 17:16:52 +0100
commit193dc742d357bb604fff8921417c74ddf9e8729c (patch)
treed9f720fb2304e47f39186c5d0b5bf927fbf8e000 /protocols/msn/ns.c
parente5854a80111e337be01cf1e506073a231fac1c3d (diff)
Responses to add requests work now.
Diffstat (limited to 'protocols/msn/ns.c')
-rw-r--r--protocols/msn/ns.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/protocols/msn/ns.c b/protocols/msn/ns.c
index 7518dc25..23b8f3b1 100644
--- a/protocols/msn/ns.c
+++ b/protocols/msn/ns.c
@@ -263,10 +263,13 @@ static int msn_ns_command( gpointer data, char **cmd, int num_parts )
if( num_parts >= 3 && strcmp( cmd[2], "OK" ) == 0 )
{
char buf[1024];
- char *fn_raw = set_getstr( &ic->acc->set, "display_name" );
+ char *fn_raw;
char *fn;
- if( fn_raw == NULL )
+ if( ic->flags & OPT_LOGGED_IN )
+ return 1;
+
+ if( ( fn_raw = set_getstr( &ic->acc->set, "display_name" ) ) == NULL )
fn_raw = ic->acc->user;
fn = g_malloc( strlen( fn_raw ) * 3 + 1 );
strcpy( fn, fn_raw );