forked from github/server
increase version number to 3.1
log an error when trying to create an order for a disabled keyword monsters might be trying to TAX in E3?
This commit is contained in:
parent
bd8d28cfb7
commit
7b3a381500
|
@ -1,3 +1,3 @@
|
|||
#define VERSION_MAJOR 3
|
||||
#define VERSION_MINOR 0
|
||||
#define VERSION_BUILD 682
|
||||
#define VERSION_MINOR 1
|
||||
#define VERSION_BUILD 683
|
||||
|
|
|
@ -257,6 +257,11 @@ static order *create_order_i(keyword_t kwd, const char *sptr, int persistent,
|
|||
order *ord = NULL;
|
||||
int lindex;
|
||||
|
||||
if (keyword_disabled(kwd)) {
|
||||
log_error("trying to create an order for disabled keyword %s.", keyword(kwd));
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* if this is just nonsense, then we skip it. */
|
||||
if (lomem) {
|
||||
switch (kwd) {
|
||||
|
|
Loading…
Reference in New Issue