summaryrefslogtreecommitdiff
path: root/src/fe-common/core/fe-settings.c
AgeCommit message (Collapse)Author
2016-06-13Add a space after the comma when listing the options.LemonBoy
2016-06-13Move the validation of the CHOICE setting valueLemonBoy
Also, use a FORMAT to show the error message.
2016-06-12Strip the surrounding whitespace.LemonBoy
2016-06-12Add a CHOICE type to the settings system.LemonBoy
This is useful to let the user choose an option between a finite set of valid alternatives.
2016-03-20strip less whitespace from commandsailin-nemui
fixes #445
2015-11-09Use the PARAM_FLAG_STRIP_TRAILING_WS flag wherever possible.LemonBoy
2015-10-03Add SETTING_TYPE_ANY and replace -1 with it.Alexander Færøy
2015-04-07Change all strcmp() to g_strcmp0() to handle nulls gracefullydequis
Just a string replacement (but i did check every one of them) sed -i 's/strcmp(/g_strcmp0(/g' **/*.c
2014-06-10Replace deprecated g_str[n]casecmp with g_ascii_str[n]cmp.David Hill
2010-10-02Strip the argument for boolean options. Patch by Svante Kvarnström. Fixes: #769Alexander Færøy
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5191 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-02-21Use i_isspace to make this clearer.Jilles Tjoelker
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5019 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-02-21Make an invalid boolean /set a CLIENTERROR instead of CLIENTCRAP.Jilles Tjoelker
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5018 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-02-21Reject obviously invalid numbers in /set.Jilles Tjoelker
A limitation of the settings model is that any value that fits in an int is accepted, e.g. negative port numbers. git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5017 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-03-09Use g_ascii_str{,n}casecmp for case insensitive comparison withEmanuele Giaquinta
ascii only strings. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4738 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-06-05Cleanup cmd_set by moving the code to print the settings matching aEmanuele Giaquinta
pattern in its own function and using settings_get_record for exact matching. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4540 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-05-08Oops. Update address correctly now.Wouter Coekaerts
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4490 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-05-08Update FSF addressWouter Coekaerts
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4489 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-04-29Factor out code from set_print into a function to get a printableEmanuele Giaquinta
representation of a setting. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4470 dbcabf3a-b0e7-0310-adc4-f8d773084564
2004-08-19/SET -default fixTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3277 dbcabf3a-b0e7-0310-adc4-f8d773084564
2004-03-23/SET without parameters didn't print all settingsTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3231 dbcabf3a-b0e7-0310-adc4-f8d773084564
2004-01-20Don't die with "/SET -default"Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3212 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-12-28Added time, size and level setting types. Breaks some settings - I'll addTimo Sirainen
automatic converter to these settings later. Meanwhile you CVS users can fix your config files yourself :) Time settings allow using "days", "hours", "minutes", "seconds" and "milliseconds" or several of their abbreviations. For example "5d 4h 5msecs". Size settings allow using "gbytes", "mbytes", "kbytes" and "bytes" or their abbrevations. For example "5MB". Level settings are currently handled pretty much the way they were before. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3080 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-06-06/SET -default changes setting to it's default value.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2844 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-06-04/UNALIAS didn't work if it had space at the end.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2837 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-12"alias xx", not "aliases xx"..Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2780 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-12added "alias added" and "alias removed" signals.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2779 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-02Comments are now allowed everywhere in config files.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2374 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-27toupper(), tolower(), isspace(), is..etc..() aren't safe with chars in someTimo Sirainen
systems, use our own is_...() functions now instead. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2348 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-18/SAVE -formats saves all the /formats to theme file.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2319 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-14settings_save() now sends "setup saved" signal - patch by peder@ifi.uio.noTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2003 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-07-30/TOGGLE didn't send "setup changed" signalTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1687 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-07-29Fixed /RELOAD crashing without parameters.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1664 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-07-15Added --home and --config command line parameters to irssi to specifyTimo Sirainen
locations for ~/.irssi and ~/.irssi/config git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1626 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-01'Y' answer shouldn't be case-sensitiveTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1533 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-05-26Added formats to /SET texts.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1517 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-05-17Getting rid of gettext, moved some _(..) texts to themes and left some errorTimo Sirainen
messages hard coded. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1503 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-04-09']' missing from /SET syntaxTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1438 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-03-16Irssi now asks if you want to remove unknown settings from configurationTimo Sirainen
file. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1400 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-03-03/SET -clear didn't work with booleansTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1307 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-02-19/TOGGLE without parameters now complains not having enough parameters..Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1259 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-07In core/module-formats.h: IRCTXT_ -> TXT_Timo Sirainen
Added "message irc ctcp" signal to print CTCPs git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1094 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-04Added keyboard_entry_redirect() function to keyboard.[ch] which sendsTimo Sirainen
the signal "gui entry redirect" signal. Added possibility to keep the entry hidden. /OPER [<nick> [<password>]] - syntax changed. If password isn't given, it's asked. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1063 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-17Settings are now stored in module-specific blocks. Irssi complainsTimo Sirainen
about all unknown settings that are found inside those blocks. Left backwards compatibility kludge which should be removed in 0.7.98. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1004 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-03nl_langinfo() was a bad idea, don't use it.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@948 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-02typofixTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@921 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-02nl_langinfo() didn't work like i thought - fixed :)Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@920 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-02Use langinfo.h's nl_langinfo(YESEXPR) instead of 'Y'.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@912 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-10-28Cleaned up printtext.c, split part of it to formats.cTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@796 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-10-15Irssi won't automatically overwrite configuration files if they'reTimo Sirainen
changed while irssi is running: - /SAVE asks whether to save it or not - autosave at quit saves it to config.autosave file git-svn-id: http://svn.irssi.org/repos/irssi/trunk@762 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-08-26Lots of moving stuff around - hopefully I didn't break too much :)Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@632 dbcabf3a-b0e7-0310-adc4-f8d773084564