lib/lita/adapters/shell.rb in lita-4.3.1 vs lib/lita/adapters/shell.rb in lita-4.3.2
- old
+ new
@@ -8,10 +8,11 @@
# Creates a "Shell User" and then loops a prompt and input, passing the
# incoming messages to the robot.
# @return [void]
def run
user = User.create(1, name: "Shell User")
- @source = Source.new(user: user)
+ room = robot.config.adapters.shell.private_chat ? nil : "shell"
+ @source = Source.new(user: user, room: room)
puts t("startup_message")
robot.trigger(:connected)
run_loop
end