-
Notifications
You must be signed in to change notification settings - Fork 1
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
Trim nick passed to .duel #36
Comments
This is actually easier than I thought it would be, based on tests. I can just import |
Glad I left the implementation of this in testing for long enough to catch an issue: The external validation function returns Solution is probably modifying sopel-rep to return |
So, importing Long-term solution would be to convert my plugins into PyPI packages, but the kludge will be to copy-paste the function into |
The following example shows the issue with failing to sanitize the nickname passed to
.duel
:+
, for example, is not a valid character in nicknames, and should be ignored.The other issue is that this means users can duel using actions (see #35) while simultaneously increasing their target's reputation via the
rep
module, but cannot use the.duel
command to achieve the same goal.A stretch objective for resolving this is to also handle
--
suffixes in addition to++
. That's trickier because-
is a valid character in nicknames, so there's probably some presence-checking logic required to handle that. (If it turns out to be more work than I'm willing to do before fixing the++
issue, it'll get punted to a separate ticket.)The text was updated successfully, but these errors were encountered: