Open SoobNauce opened 8 years ago
Found this while looking through open issues to see if another issue I've run into is represented, and yes, this is a bug. Code that can handle lines in which Bucket has been addressed shouldn't occur after that check and &error()
call.
Unless I'm misreading the code, the whole elsif
section that handles giving Bucket items should just be moved above the $bag{addressed}
bit, which is now at line 1625.
line 1623-1626, right after the "#Mathing!" section:
leaving the function (
db_success
, I believe). But later in the section, after the hardcoded "hum a few bars" response, ass hyphenation (clearly, none of which are meant to respond to bucket being addressed), is the "hands bucket $1
" section. After that section is the problematic part, which responds to "bucket, take this $1" and "bucket, have a(n) $1".Relevant lines (1668-1683):
I don't know perl very well but I can probably work on a PR over a few days or weeks if nobody else wants to work on it.