diff options
author | Berke Viktor <bviktor@hexchat.org> | 2012-09-29 01:54:11 +0200 |
---|---|---|
committer | Berke Viktor <bviktor@hexchat.org> | 2012-09-29 01:54:11 +0200 |
commit | ce75a6034f808841a249352f362676ce2c6270cb (patch) | |
tree | e0ab84497b8755e07ad44db01e2061d4fafef457 | |
parent | dd7a82e3b2379bf18efee58683be94b213bd76df (diff) |
Limit the number of URLs to keep and add GUI options for it
-rw-r--r-- | src/common/cfgfiles.c | 2 | ||||
-rw-r--r-- | src/fe-gtk/setup.c | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/common/cfgfiles.c b/src/common/cfgfiles.c index 158bc3f7..e696729e 100644 --- a/src/common/cfgfiles.c +++ b/src/common/cfgfiles.c @@ -744,7 +744,7 @@ load_config (void) prefs.input_tray_priv = prefs.input_tray_hilight = 1; prefs.autodccsend = 2; /* browse mode */ prefs.url_grabber = 1; - prefs.url_grabber_limit = 0; /* 0 means unlimited for backcompat */ + prefs.url_grabber_limit = 50; /* 0 means unlimited */ prefs.text_search_follow = 1; #ifdef WIN32 prefs.identd = 1; diff --git a/src/fe-gtk/setup.c b/src/fe-gtk/setup.c index e2ec7fd8..907218b7 100644 --- a/src/fe-gtk/setup.c +++ b/src/fe-gtk/setup.c @@ -489,6 +489,10 @@ static const setting logging_settings[] = {ST_LABEL, N_("See the strftime manpage for details.")}, #endif + {ST_HEADER, N_("URL Grabber"),0,0,0}, + {ST_TOGGLE, N_("Enable URL grabber"), P_OFFINTNL(url_grabber), 0, 0, 2}, + {ST_NUMBER, N_("Maximum number of URLs:"), P_OFFINTNL(url_grabber_limit), 0, 0, 9999}, + {ST_END, 0, 0, 0, 0, 0} }; |