1
0
mirror of https://github.com/moparisthebest/hexchat synced 2024-11-26 03:02:17 -05:00

Limit the number of URLs to keep and add GUI options for it

This commit is contained in:
Berke Viktor 2012-09-29 01:54:11 +02:00
parent dd7a82e3b2
commit ce75a6034f
2 changed files with 5 additions and 1 deletions

View File

@ -744,7 +744,7 @@ load_config (void)
prefs.input_tray_priv = prefs.input_tray_hilight = 1; prefs.input_tray_priv = prefs.input_tray_hilight = 1;
prefs.autodccsend = 2; /* browse mode */ prefs.autodccsend = 2; /* browse mode */
prefs.url_grabber = 1; 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; prefs.text_search_follow = 1;
#ifdef WIN32 #ifdef WIN32
prefs.identd = 1; prefs.identd = 1;

View File

@ -489,6 +489,10 @@ static const setting logging_settings[] =
{ST_LABEL, N_("See the strftime manpage for details.")}, {ST_LABEL, N_("See the strftime manpage for details.")},
#endif #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} {ST_END, 0, 0, 0, 0, 0}
}; };