cinch 2.0.9 → 2.0.10

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.
Files changed (3) hide show
  1. data/lib/cinch/irc.rb +9 -1
  2. data/lib/cinch/version.rb +1 -1
  3. metadata +2 -2
data/lib/cinch/irc.rb CHANGED
@@ -112,7 +112,15 @@ module Cinch
112
112
  # @return [void]
113
113
  # @since 2.0.0
114
114
  def send_cap_req
115
- send "CAP REQ :" + ([:"away-notify", :"multi-prefix", :sasl] & @network.capabilities).join(" ")
115
+ caps = [:"away-notify", :"multi-prefix", :sasl] & @network.capabilities
116
+
117
+ # InspIRCd doesn't respond to empty REQs, so send an END in that
118
+ # case.
119
+ if caps.size > 0
120
+ send "CAP REQ :" + caps.join(" ")
121
+ else
122
+ send_cap_end
123
+ end
116
124
  end
117
125
 
118
126
  # @since 2.0.0
data/lib/cinch/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Cinch
2
2
  # Version of the library
3
- VERSION = '2.0.9'
3
+ VERSION = '2.0.10'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cinch
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.9
4
+ version: 2.0.10
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: 2013-09-02 00:00:00.000000000 Z
12
+ date: 2013-11-03 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: A simple, friendly DSL for creating IRC bots
15
15
  email: