diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2006-05-26 17:02:41 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2006-05-26 17:02:41 +0200 |
commit | 6fb6410be208b9a6ac4a3d407ac7a221e7d852b7 (patch) | |
tree | f1a4568f32a3fb2380b73d41f16cb8858b7c14e8 /protocols/msn/sb.c | |
parent | 1cda4f348372a755d99b291e6f4f9973a949f441 (diff) | |
parent | 60487448f3d0f3f7bb4710716e0ee257ee2edf16 (diff) |
[merge] Wilmer
Diffstat (limited to 'protocols/msn/sb.c')
-rw-r--r-- | protocols/msn/sb.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/protocols/msn/sb.c b/protocols/msn/sb.c index 234be1d6..34b0a30a 100644 --- a/protocols/msn/sb.c +++ b/protocols/msn/sb.c @@ -522,14 +522,14 @@ static int msn_sb_command( gpointer data, char **cmd, int num_parts ) if( err->flags & STATUS_SB_FATAL ) { msn_sb_destroy( sb ); - return( 0 ); + return 0; } - if( err->flags & STATUS_FATAL ) + else if( err->flags & STATUS_FATAL ) { signoff( gc ); - return( 0 ); + return 0; } - if( err->flags & STATUS_SB_IM_SPARE ) + else if( err->flags & STATUS_SB_IM_SPARE ) { if( sb->who ) { @@ -552,6 +552,8 @@ static int msn_sb_command( gpointer data, char **cmd, int num_parts ) g_slist_free( sb->msgq ); sb->msgq = NULL; } + + /* Do NOT return 0 here, we want to keep this sb. */ } } else |