cinch-bgg 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/cinch-bgg.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "cinch-bgg"
5
- s.version = "0.0.3"
5
+ s.version = "0.0.4"
6
6
  s.platform = Gem::Platform::RUBY
7
7
  s.authors = ["Caitlin Woodward"]
8
8
  s.email = ["caitlin@caitlinwoodward.me"]
@@ -73,7 +73,7 @@ module Cinch
73
73
  community.each{ |irc, bgg| community[irc] = search_for_user(bgg, { :id => game.id, :use_cache => true }) }
74
74
 
75
75
  community.keep_if{ |irc, user| user.collection.include? game.id.to_s }
76
- m.reply "Owning \"#{game.name}\": #{community.keys.join(", ")}", true
76
+ m.reply "Owning \"#{game.name}\": #{community.keys.map{|n| self.dehighlight_nick(n)}.join(", ")}", true
77
77
  end
78
78
  end
79
79
 
@@ -153,6 +153,10 @@ module Cinch
153
153
  self.find_bgg_by_irc(irc_nick) != nil
154
154
  end
155
155
 
156
+ def dehighlight_nick(nickname)
157
+ nickname.chars.to_a * 8203.chr('UTF-8')
158
+ end
159
+
156
160
  end
157
161
 
158
162
  class Game
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cinch-bgg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: