potato 0.0.14 → 0.0.15

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,7 +6,7 @@ module Potato
6
6
  # Convert numeric and hexadecimal HTML entities to Unicode codepoints.
7
7
  # @return [String]
8
8
  def decode_entities
9
- gsub(/&#(\d+);/){[$1.to_i].pack("U*")}.gsub(/&#x([0-9a-fA-F]+);/u){[$1.to_i(16)].pack("U*")}
9
+ gsub(/&#(\d+);/){[$1.to_i].pack("U*")}.gsub(/&#x([0-9a-fA-F]+);/){[$1.to_i(16)].pack("U*")}
10
10
  end
11
11
 
12
12
  # Convert Unicode codepoints to numeric HTML entities.
@@ -261,6 +261,7 @@ Type /pass yourpassword to authenticate.
261
261
  users = @users[room].select{|x|x.privclass == privclass}
262
262
  mode = ""
263
263
  count = 0
264
+ return unless users[0]
264
265
  unless users[0].symbol == sym(@client.privclasses[room][privclass])
265
266
  unless users[0].symbol.empty?
266
267
  mode << "-#{sym_to_level(users[0].symbol) * users.size}"
@@ -1,4 +1,4 @@
1
1
  module Potato
2
2
  # Current version of Potato.
3
- VERSION = "0.0.14"
3
+ VERSION = "0.0.15"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: potato
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14
4
+ version: 0.0.15
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-06-23 00:00:00.000000000 -04:00
12
+ date: 2011-07-29 00:00:00.000000000 -04:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
  description: Potato is an IRC server that communicates with the deviantART Message