Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(dev) Fix setExitStub to allow in/out stubs #406

Merged
merged 2 commits into from
Mar 7, 2017

Conversation

vadi2
Copy link
Member

@vadi2 vadi2 commented Mar 6, 2017

See http://forums.mudlet.org/viewtopic.php?f=9&t=14770&p=34560#p34644

This actually reveals another bug; if you pass it 13 the error message will be "setExitStub: Need a dir number as 2nd argument" - which while being technically true as 13 is not a recognised dir number, it in reality pretty annoying to see because an unaware user might be thinking that they -are- passing in a dir number. That said, keeping scope of the PRs small for digestibility and don't want to do refactorings of functions before 3.0 final. See https://bugs.launchpad.net/mudlet/+bug/1670245

(cherry picked from commit cd8c258)

See http://forums.mudlet.org/viewtopic.php?f=9&t=14770&p=34560#p34644

This actually reveals another bug; if you pass it 13 the error message will be "setExitStub: Need a dir number as 2nd argument" - which while being technically true as 13 is not a recognised dir number, it in reality pretty annoying to see because an unaware user might be thinking that they -are- passing in a dir number. That said, keeping scope of the PRs small for digestibility and don't want to do refactorings of functions before 3.0 final. See https://bugs.launchpad.net/mudlet/+bug/1670245

(cherry picked from commit cd8c258)
@vadi2 vadi2 requested a review from SlySven March 6, 2017 04:14
@vadi2 vadi2 added the 1 - Ready label Mar 6, 2017
Copy link
Member

@SlySven SlySven left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to change the 10 to 12 in line 1944 even if we don't quite get to this line for out of the range values because of the other issue you referred to.

@vadi2
Copy link
Member Author

vadi2 commented Mar 6, 2017

Done, please have a look.

@SlySven
Copy link
Member

SlySven commented Mar 6, 2017

Remind me to fix TLuaInterpreter::dirToNumber(...) {carefully}!

@vadi2 vadi2 merged commit e11022a into Mudlet:development Mar 7, 2017
@vadi2 vadi2 deleted the (dev-add-in-out-exit-stubs branch March 7, 2017 05:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants