diff options
| author | Uninteresting Account <[email protected]> | 2017-10-29 18:27:38 +1000 |
|---|---|---|
| committer | alex <[email protected]> | 2017-10-29 09:27:38 +0100 |
| commit | e694766bb6c93d5f6a75ad9871cfdefbd0309a17 (patch) | |
| tree | 877c47f7b32451a892bfd16d3604f1634c77edf5 /src/framework/standard/mod.rs | |
| parent | Fall back to `str::parse` if `parse_username` fails (diff) | |
| download | serenity-e694766bb6c93d5f6a75ad9871cfdefbd0309a17.tar.xz serenity-e694766bb6c93d5f6a75ad9871cfdefbd0309a17.zip | |
Fix #206 (#207)
Diffstat (limited to 'src/framework/standard/mod.rs')
| -rw-r--r-- | src/framework/standard/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/framework/standard/mod.rs b/src/framework/standard/mod.rs index 1a7a5ee..f4c98e8 100644 --- a/src/framework/standard/mod.rs +++ b/src/framework/standard/mod.rs @@ -860,7 +860,7 @@ impl Framework for StandardFramework { 'outer: for position in positions { let mut built = String::new(); let round = message.content.chars().skip(position).collect::<String>(); - let round = round.trim().split_whitespace().collect::<Vec<&str>>(); + let round = round.trim().split_whitespace().collect::<Vec<&str>>(); // Call to `trim` causes the related bug under the main bug #206 - where the whitespace settings are ignored. The fix is implemented as an additional check inside command::positions for i in 0..self.configuration.depth { if i != 0 { |