compactcode / cinch_hangman

Play hangman in your IRC channel.
6 stars 2 forks source link

Underscores always have the same length #4

Closed greenbigfrog closed 9 years ago

greenbigfrog commented 9 years ago

Hi I was testing your code and i noticed that the underscores always have the same lenght...

My start script:

require 'cinch'
require 'cinch_hangman'

bot = Cinch::Bot.new do
  configure do |c|
    c.server = "localhost"
    c.channels = ["#cinch"]
    c.plugins.plugins = [
      Cinch::Plugins::Hangman
    ]
  end

  on :message, "hello" do |m|
    m.reply "Hello, #{m.user.nick}"
  end
end

bot.start

The chat log:

17:11 <frog> !hang new #cinch test
17:11 <cinch> (_) hangman started.
17:11 <frog> !hang guess t
17:11 <cinch> (t) was solved!
17:11 <frog> !hang guess e
17:11 <cinch> (t) was solved!

I guess I am the first one that noticed this bug... Or I am just to stupid to use your code :smirk:

compactcode commented 9 years ago

Thats definitely a bug.

Looks like the fix was made but I forgot to actually release it, amateur hour over here.

Try the new version and let me know if that helps.

greenbigfrog commented 9 years ago

Fixed it Thanks!!!