Skip to content

Commit

Permalink
Does force encoding it stop the bot from crashing?
Browse files Browse the repository at this point in the history
  • Loading branch information
radar committed May 25, 2016
1 parent 60c9cb8 commit d94a464
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot.rb
Expand Up @@ -393,7 +393,7 @@ def log(sender, channel, message, type='message')
channel = Channel.create!(:name => name) if channel.nil?
person = person(sender[:nick])
channel.messages.create!(:person => person,
:text => message,
:text => message.force_encoding('utf-8'),
:type => type,
:hidden => channel.hidden)
end
Expand Down

0 comments on commit d94a464

Please sign in to comment.