lib/slack/smart-bot/process_first.rb in slack-smart-bot-1.3.1 vs lib/slack/smart-bot/process_first.rb in slack-smart-bot-1.4.0
- old
+ new
@@ -1,9 +1,8 @@
class SlackSmartBot
def process_first(user, text, dest, dchannel, typem, files)
nick = user.name
rules_file = ""
-
if typem == :on_call
rules_file = config.rules_file
elsif dest[0] == "C" or dest[0] == "G" # on a channel or private channel
rules_file = config.rules_file