From a83a91c58313cace1e7d3f41e402e555d921f0c6 Mon Sep 17 00:00:00 2001 From: Jordan Doyle Date: Sat, 29 Jul 2017 17:38:40 +0100 Subject: [PATCH] Fix dont always run code --- 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 +++ b/dave/dave.py @@ -90,11 +90,9 @@ class Dave(irc.IRCClient): 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": -- libgit2 1.7.2