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

Include user issuing command to the plugin functions #9

Closed
KDercksen opened this issue Oct 7, 2017 · 0 comments
Closed

Include user issuing command to the plugin functions #9

KDercksen opened this issue Oct 7, 2017 · 0 comments

Comments

@KDercksen
Copy link
Owner

Right now, plugin commands only receive the message part of PRIVMSG lines. For example with the karma command:

user | something++

The plus_karma function only receives 'something' but doesn't know from what user that command came. Now for the karma plugin this isn't really relevant, but for future plugins (for example the ~tell proposed in #6) it is necessary that this information is available.

I propose that the standard arguments for every plugin function change from (self, match) to (self, user, match) so the user info is available might it be needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant