aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/msn/sb.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2006-05-29 01:13:47 +0200
committerWilmer van der Gaast <wilmer@gaast.net>2006-05-29 01:13:47 +0200
commit4ff09664d2570be8358a3bde62123cc8e0a17c9e (patch)
treea5cfc2f235f9a46f737b261186e7926aca202ebe /protocols/msn/sb.c
parentcdca30b360c09399f1e5a2556d83ec997006cd75 (diff)
parent79b6213c1fa2ffaa102365515551e9f0ea9fdc1a (diff)
Merging from main/jelmer.
Diffstat (limited to 'protocols/msn/sb.c')
-rw-r--r--protocols/msn/sb.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/protocols/msn/sb.c b/protocols/msn/sb.c
index 54e89043..63744cd0 100644
--- a/protocols/msn/sb.c
+++ b/protocols/msn/sb.c
@@ -528,14 +528,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 )
{
@@ -558,6 +558,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