From eaf3d948e5e9ca02d35fc2af1ea72c8a55c85acd Mon Sep 17 00:00:00 2001 From: fredrik Date: Mon, 9 Oct 2006 18:27:56 +0000 Subject: [PATCH] Format the 515 error correctly. git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@697 959494ce-11ee-0310-bf91-de5d638817bd --- clients/gtk2/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/clients/gtk2/main.c b/clients/gtk2/main.c index 6f4544e..d3c1c84 100644 --- a/clients/gtk2/main.c +++ b/clients/gtk2/main.c @@ -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(); -- 2.11.0