Format the 515 error correctly.
authorfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Mon, 9 Oct 2006 18:27:56 +0000 (18:27 +0000)
committerfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Mon, 9 Oct 2006 18:27:56 +0000 (18:27 +0000)
git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@697 959494ce-11ee-0310-bf91-de5d638817bd

clients/gtk2/main.c

index 6f4544e..d3c1c84 100644 (file)
@@ -1409,6 +1409,8 @@ void cb_main_fnaddr_activate(GtkWidget *widget, gpointer data)
            msgbox(GTK_MESSAGE_WARNING, GTK_BUTTONS_OK, _("You do not have permission to do that"));
        if(resp->code == 509)
            msgbox(GTK_MESSAGE_WARNING, GTK_BUTTONS_OK, _("The server could not parse that address"));
+       if(resp->code == 515)
+           msgbox(GTK_MESSAGE_WARNING, GTK_BUTTONS_OK, _("There are too many hubs connected"));
        dc_freeresp(resp);
     }
     gtk_entry_set_text(GTK_ENTRY(main_fnaddr), "");
@@ -1638,6 +1640,8 @@ void cb_main_phublist_activate(GtkWidget *widget, GtkTreePath *path, GtkTreeView
            msgbox(GTK_MESSAGE_WARNING, GTK_BUTTONS_OK, _("You do not have permission to do that"));
        if(resp->code == 509)
            msgbox(GTK_MESSAGE_WARNING, GTK_BUTTONS_OK, _("The server could not parse that address"));
+       if(resp->code == 515)
+           msgbox(GTK_MESSAGE_WARNING, GTK_BUTTONS_OK, _("There are too many hubs connected"));
        dc_freeresp(resp);
     }
     handleresps();