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
Expand crypt module to cover Notices, Actions & Topics #813
Conversation
|
virtual EModRet OnUserAction(CString& sTarget, CString& sMessage) override { | ||
sTarget.TrimLeft(NickPrefix()); | ||
|
||
if (sMessage.StartsWith("``")) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (s.TrimPrefix(..))
Looks like you're not open to comments :) |
With all due respect, your comment in this issue wasn't exactly meaningful. What about OnTopic? The other part, was admittedly my fault. I didn't recall seeing your comment about switching the |
OnTopic was response for "but I cannot find a more appropriate way to intercept the incoming topic message." |
At least when I tested, the raw 332 was not corrected by OnTopic alone. I can chekc if that has changed since my prior testing. Perhaps a better solution to that would be to ensure that OnTopic does intercept the 332s as well as what it does currently. |
Oh, I didn't notice Regarding May you rebase/squash commits? |
I hope to get this rebased tomorrow, sorry about the delay. |
Rebased & tested. Let me know if you have any comments of concerns. |
@@ -84,22 +86,144 @@ class CCryptMod : public CModule { | |||
return CONTINUE; | |||
} | |||
|
|||
EModRet OnUserNotice(CString& sTarget, CString& sMessage) override { | |||
sTarget.TrimLeft(NickPrefix()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TrimLeft or TrimPrefix?
Improves compatibility with mircryption.
1dcb0d0
to
baeb1da
Compare
It should have indeed been TrimPrefix. Somehow that change regressed while rebasing. |
Expand crypt module to cover Notices, Actions & Topics
Improves compatibility with mircryption.
Notes:
OnRaw
is not suggested, but I cannot find a more appropriate way to intercept the incoming topic message.I'm open to all comments and suggestions.