An undefined variable was used in this part of the code that is never tested and almost never used in practice.
This patch fixes this issue.
https://github.com/ProgVal/Limnoria/commit/6f9960d7a4ec4ae2e0eb7ebe82006a1d5c91d554
Note: the 'checkDoc' attribute to wrap() has been introduced in Limnoria (setting it to False makes the behavior of wrap() similar to Supybot, ie. allowing commands with no docstring), so you have to remove it before merging the patch.
Applied, along with the subsequent test fix.