Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Just print everything if we're not in a channel.
  • Loading branch information
dougmcbride committed Nov 10, 2009
1 parent d72d4c7 commit 7204d65
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions trakbot.rb
Expand Up @@ -141,9 +141,10 @@ def initialize(options)
lambda do |nick, event, match|
user = User.for_nick nick
stories = user.find_stories match[1]
too_big = (stories.size > 4)
too_big = (stories.size > 4 and event.channel.match(/^#/))

message = "Found #{stories.size} matching #{user.current_project.name} stories."
message += " Want me to list them?" if too_big
message += " Want me to list them in here?" if too_big
reply event, message

unless too_big
Expand Down

0 comments on commit 7204d65

Please sign in to comment.