🏡 index : ~doyle/dave.git

author Jordan Doyle <jordan@doyle.wf> 2017-07-29 17:38:40.0 +01:00:00
committer Jordan Doyle <jordan@doyle.wf> 2017-07-29 17:38:40.0 +01:00:00
commit
a83a91c58313cace1e7d3f41e402e555d921f0c6 [patch]
tree
b921be79aff9e4f43dab2099c73ac2da95c6ab25
parent
4f018e773e38418eeaa5e59a9bd4a84ef6f22e05
download
a83a91c58313cace1e7d3f41e402e555d921f0c6.tar.gz

Fix dont always run code



Diff

 dave/dave.py | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/dave/dave.py b/dave/dave.py
index 4b4017c..60ac383 100644
--- a/dave/dave.py
+++ a/dave/dave.py
@@ -90,11 +90,9 @@
            if not (hasattr(method[1], "dont_always_run") and method[1].dont_always_run):
                # if dont_always_run is set, the command the user sent doesn't
                # want "always run" modules to run.
                return

            for m in run:
                # modules that should always be run regardless of priority
                deferToThread(m[0], self, m[1], nick, channel)
                for m in run:
                    # modules that should always be run regardless of priority
                    deferToThread(m[0], self, m[1], nick, channel)

    def irc_unknown(self, prefix, command, params):
        if command == "INVITE":