]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - lib/rbot/messagemapper.rb
config.rb: system wide overrides in /etc/rbot.conf
[user/henk/code/ruby/rbot.git] / lib / rbot / messagemapper.rb
index 2b9fc5e32c2a99238a79c53b469d927b9e9804b2..dd43e27c5325dd1efce8dadc3d7e00146a5d558a 100644 (file)
@@ -207,7 +207,7 @@ class Bot
           debug "checking auth for #{auth}"
           if m.bot.auth.allow?(auth, m.source, m.replyto)
             debug "template match found and auth'd: #{action.inspect} #{options.inspect}"
-            if m.thread || (m.thread == nil && tmpl.options[:thread] || tmpl.options[:threaded])
+            if !m.in_thread && (tmpl.options[:thread] || tmpl.options[:threaded])
               Thread.new do
                 begin
                   @parent.send(action, m, options)