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

Modules that perceive commands should properly set terminate #24

Open
richteer opened this issue Apr 3, 2015 · 0 comments
Open

Modules that perceive commands should properly set terminate #24

richteer opened this issue Apr 3, 2015 · 0 comments

Comments

@richteer
Copy link
Contributor

richteer commented Apr 3, 2015

The self.terminate flag in the XMPPModule class should be set to True when the same message should not be passed to any more modules.

And example of this is the Quotes module, where it perceives the command !quote. Other modules probably won't need to receive this, so setting self.terminate = True after the command is handled prevents any other module from receiving this message, such as Haiku or Irc.

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