lita-hipchat 1.6.0 → 1.6.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 80be126d9118aac2e700c31b23559fbed60ae90e
4
- data.tar.gz: 115d3081432b9077665381f9b02e2141f5935dec
3
+ metadata.gz: ac9192ed1869eeac6ec692e2d9df79aeaec7444d
4
+ data.tar.gz: 7fdac6f04f5a718bd793ad98535f55cf5dcd3cf4
5
5
  SHA512:
6
- metadata.gz: 5d375ca0fac539d04a6aae0863ec92b3253af71be27fdf91bf8ecd789095d77a875b6b4b4ebed4b9728eaa0af1763d844df70c451bf42659c080d47fd71941cb
7
- data.tar.gz: 8e68828a8465e119e0a8d342f15b3361461bc604f147d11e4c1814de2dc50f0322cbe7d8b2d24fbc8c78fee09251d79fd9a707014b1a3346346240880b194049
6
+ metadata.gz: a2bf14e0177281e7ebca666b302a8f695aaedcf32656597a714ab501b11106530ce17c8c8372a7ebee2b096e0f40196a6bfc3987c9ad9878846fd5c3aab15d09
7
+ data.tar.gz: a529ae27264241c4920269a68d4ca52754722a150ab85afc06b2c7b9d8823bda067d7bffa7c4f2ea5dbbccfe7d81085b1951de9fd79d9c573e2cfc798fdda52b
@@ -35,7 +35,10 @@ module Lita
35
35
 
36
36
  def join(muc_domain, room)
37
37
  room_jid = normalized_jid(room, muc_domain, robot.name)
38
- return if mucs[room_jid.bare.to_s]
38
+ if mucs[room_jid.bare.to_s]
39
+ Lita.logger.debug "Already in room with JID #{room_jid.bare.to_s}"
40
+ return
41
+ end
39
42
 
40
43
  muc = Jabber::MUC::SimpleMUCClient.new(client)
41
44
  mucs[room_jid.bare.to_s] = muc
@@ -79,7 +82,7 @@ module Lita
79
82
 
80
83
  def part(muc_domain, room)
81
84
  room_jid = normalized_jid(room, muc_domain, robot.name)
82
- muc = mucs[room_jid.bare.to_s]
85
+ muc = mucs.delete(room_jid.bare.to_s)
83
86
  muc.exit if muc
84
87
  end
85
88
 
data/lita-hipchat.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "lita-hipchat"
3
- spec.version = "1.6.0"
3
+ spec.version = "1.6.1"
4
4
  spec.authors = ["Jimmy Cuadra"]
5
5
  spec.email = ["jimmy@jimmycuadra.com"]
6
6
  spec.description = %q{A HipChat adapter for Lita.}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-hipchat
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jimmy Cuadra