Closed belak closed 5 years ago
Why not?
09:17:43 @zigdon | Bucket: I
Note that it seems that that bit of code didn't work (since this didn't end up saying 'zigdon is testing a thing'), but that's a different bug.
Oh, just saw that you changed the title to indicate that bug, github never sent an email update on that. Yes, that seems to be broken.
I'd say this code should be removed, not fixed. Later in that function, Bucket rejects any attempts to edit one's own factoids:
Even if the code block @belak referenced was reachable, the factoid would get kicked out by this check.
https://github.com/zigdon/xkcd-Bucket/blob/5dad7697ffa3dbff3e0615ced0da839601ddfc8a/bucket.pl#L1494-L1497
There is no way (currently) for the verb "am" to make it into that block, so the code inside this conditional is not reachable. I'm not sure if the regexes should be adjusted or that block should be removed.
Edited by @dgw 2018-10-10 to point to the correct line as it appeared when this issue was opened.