Tweak auto-accept:

* does not apply to NOTICE (as those may well be automated)
* mirrors +g behaviour so that no useless accept entries are added for services
* respects max_accept, if it would be exceeded the message is dropped with numeric 494
* check moved up so this is checked before floodcount/tgchange
This commit is contained in:
Jilles Tjoelker 2010-07-04 17:14:56 +02:00
parent 0770c9936e
commit f5455d2cd5
3 changed files with 29 additions and 12 deletions

View file

@ -297,6 +297,8 @@ extern const char *form_str(int);
#define ERR_NOOPERHOST 491
#define ERR_OWNMODE 494 /* from bahamut -- jilles */
#define ERR_UMODEUNKNOWNFLAG 501
#define ERR_USERSDONTMATCH 502