From 5df669a329813292bdc0f8f69901e58a5fc2bc32 Mon Sep 17 00:00:00 2001 From: Berke Viktor Date: Sun, 12 May 2013 16:02:26 +0200 Subject: [PATCH] Make the order consistent for load and save --- src/common/servlist.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/common/servlist.c b/src/common/servlist.c index 83815c9f..d9654d77 100644 --- a/src/common/servlist.c +++ b/src/common/servlist.c @@ -1227,26 +1227,26 @@ servlist_load (void) case 'P': net->pass = strdup (buf + 2); break; - case 'J': - servlist_favchan_add (net, buf + 2); - break; - case 'C': - servlist_command_add (net, buf + 2); - break; - case 'F': - net->flags = atoi (buf + 2); - break; - case 'D': - net->selected = atoi (buf + 2); + case 'L': + net->logintype = atoi (buf + 2); break; case 'E': net->encoding = strdup (buf + 2); break; + case 'F': + net->flags = atoi (buf + 2); + break; case 'S': /* new server/hostname for this network */ servlist_server_add (net, buf + 2); break; - case 'L': - net->logintype = atoi (buf + 2); + case 'C': + servlist_command_add (net, buf + 2); + break; + case 'J': + servlist_favchan_add (net, buf + 2); + break; + case 'D': + net->selected = atoi (buf + 2); break; } }