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

(+- is recognized as a nick/noun #163

Open
datho7561 opened this issue May 27, 2021 · 1 comment
Open

(+- is recognized as a nick/noun #163

datho7561 opened this issue May 27, 2021 · 1 comment

Comments

@datho7561
Copy link
Contributor

The string (+- is recognized as a valid noun, which means that whenever it is referenced, its karma goes up or down

eg.

<me>: !rank (+-
>>>
<VileBot> \(+- had their karma decreased by 1
<VileBot> \(+- is ranked at #980 with -1 points of karma.
@datho7561
Copy link
Contributor Author

datho7561 commented May 27, 2021

nicks.add( BaseNick.toBaseNick( nickMatcher.group( 1 ) ) );

The nickMatcher regex in this file matches \S+, which (+- matches, then:

The nickMatcher in this file is more complex, so it does not recognize (+- as a valid nick. So (+- is returned as the resolved base nick, and (+-'s karma is +-'d.

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

No branches or pull requests

1 participant