Skip to content

Commit

Permalink
Fix channel name format bug
Browse files Browse the repository at this point in the history
Can't pass in #channel_name as an argument, so I'm passing in
channel_name (without the pound sign) instead. This means I need
to prepend the channel_name with the "#" sign.
  • Loading branch information
slottermoser committed Jan 3, 2013
1 parent 92d0677 commit 677d9b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions irc_piled_on.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def set_led (color)
bot = Cinch::Bot.new do
configure do |c|
c.server = server_url
c.channels = [channel]
c.channels = ["#" + channel]
c.password = channel_password
c.nick = "#{notify_user}_notifier"
end
Expand All @@ -41,4 +41,4 @@ def set_led (color)
end
end

bot.start
bot.start

0 comments on commit 677d9b1

Please sign in to comment.