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 +4 -4
- data/lib/lita/adapters/hipchat/connector.rb +5 -2
- data/lita-hipchat.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ac9192ed1869eeac6ec692e2d9df79aeaec7444d
|
4
|
+
data.tar.gz: 7fdac6f04f5a718bd793ad98535f55cf5dcd3cf4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
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