lita-discord_oauth 0.1.2.alpha.64 → 0.1.2.alpha.65
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lita/handlers/discord_help.rb +4 -4
- 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: aceaf3e5580d37dd045896fcc80f42863320360a
|
4
|
+
data.tar.gz: b9658aaae0205da437a3ca3d6a491ec303bc0bb0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8feb747f738039ee5b8d44d0c21959e6cab1774ea01cc21c543a0829aaf23b8a9a489f4d85dbd70a4f475df2db045aaac8eb217d67ceb7e357e2fb3827a3429d
|
7
|
+
data.tar.gz: f262c27029309473c8951e0b97b64153505001e801e205cfaf2d7fdea3cfc0d3885a6d4a5bade0ed3699e45fb84d2053c0f6169bb1bad25a68b077446b6c205d
|
@@ -30,13 +30,13 @@ module Lita
|
|
30
30
|
|
31
31
|
def split_message(message)
|
32
32
|
max_length = 2000 - 25 # Substract 25 for mention safety
|
33
|
+
messages = Array.new
|
33
34
|
|
34
35
|
if message.length < max_length
|
35
|
-
|
36
|
+
messages.push(message)
|
36
37
|
else
|
37
38
|
parsed = ''
|
38
39
|
message_copy = message
|
39
|
-
messages = Array.new
|
40
40
|
|
41
41
|
while parsed != message do
|
42
42
|
part = get_message_part(message_copy, max_length)
|
@@ -47,9 +47,9 @@ module Lita
|
|
47
47
|
parsed += part
|
48
48
|
message_copy = message_copy[part.length - 1, -1]
|
49
49
|
end
|
50
|
-
|
51
|
-
|
52
50
|
end
|
51
|
+
|
52
|
+
messages
|
53
53
|
end
|
54
54
|
|
55
55
|
def get_message_part(message, limit)
|