We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Was considering changing the typically same boilerplate of
def foo(self, msg): if self.xmpp.isadmin(msg['from']): pass else: self.xmpp.reply(msg, "Berating message goes here") return
to something a little prettier, like:
@admin def foo(self, msg): pass
I think this may coincide with the proposed API change a bit better too, to make the module writing cleaner, and more concise
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Was considering changing the typically same boilerplate of
to something a little prettier, like:
I think this may coincide with the proposed API change a bit better too, to make the module writing cleaner, and more concise
The text was updated successfully, but these errors were encountered: