Reject obviously invalid numbers in /set.

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
This commit is contained in:
Jilles Tjoelker 2009-02-21 17:20:13 +00:00 committed by jilles
commit 115a7fc355
3 changed files with 25 additions and 3 deletions

View file

@ -184,6 +184,7 @@ enum {
TXT_CHAN_NOT_SYNCED,
TXT_ILLEGAL_PROTO,
TXT_NOT_GOOD_IDEA,
TXT_INVALID_NUMBER,
TXT_INVALID_TIME,
TXT_INVALID_LEVEL,
TXT_INVALID_SIZE,