summaryrefslogtreecommitdiff
path: root/data/rbot/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'data/rbot/plugins')
-rw-r--r--data/rbot/plugins/games/hangman.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/data/rbot/plugins/games/hangman.rb b/data/rbot/plugins/games/hangman.rb
index b7db886e..7cfd9e69 100644
--- a/data/rbot/plugins/games/hangman.rb
+++ b/data/rbot/plugins/games/hangman.rb
@@ -303,11 +303,11 @@ class HangmanPlugin < Plugin
target = if m.public?
m.channel
else
- params[:channel]
+ @bot.server.channel(params[:channel])
end
# is the bot on the channel?
- unless @bot.server.channels.names.include?(target.to_s)
+ unless @bot.myself.channels.include?(target)
m.reply _("i'm not on that channel")
return
end