commandrb 0.4.0 → 0.4.1
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.
- checksums.yaml +4 -4
- data/lib/commandrb.rb +3 -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: 51288c75ab522040fdf27c3c7e065e4ce32c1d28
|
4
|
+
data.tar.gz: 7e91d61b2dc09ae430b014871de04a97c57e6ccd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54e3155a4b1a31a347e61c74a16b47e3ebfc9f383d887a9688314f2aec760dc150b55077f771b0a227990eb2e7bf54a5431a0a37e6b1db4f5999011ed0c24874
|
7
|
+
data.tar.gz: 42bfc2dab44cf8f69b5959b3133cb80c399bd638b166dde36e28dc7a6a5524705f1f0bece9570ef9487f93aeec8c4ea9c9a88c1f92e1b0166ccd90d57142d1b8
|
data/lib/commandrb.rb
CHANGED
@@ -196,7 +196,7 @@ class CommandrbBot
|
|
196
196
|
|
197
197
|
args = event.message.content.split(' ')
|
198
198
|
# Parse args if args exist !
|
199
|
-
|
199
|
+
begin
|
200
200
|
spaces = 1
|
201
201
|
# Prefixes with spaces are special and need to be parsed differently : )
|
202
202
|
if prefix.include? " "
|
@@ -208,6 +208,8 @@ class CommandrbBot
|
|
208
208
|
# Split the argmuents into an array for easy usage but keep the raw args !!
|
209
209
|
rawargs = args
|
210
210
|
args = args.split(/ /)
|
211
|
+
rescue NoMethodError # Not the most elegant solution but it'll do. TODO: Make a more elegant solution.
|
212
|
+
args = []
|
211
213
|
end
|
212
214
|
|
213
215
|
|