diff options
| author | acdenisSK <[email protected]> | 2018-07-14 11:30:20 +0200 |
|---|---|---|
| committer | acdenisSK <[email protected]> | 2018-07-14 11:30:20 +0200 |
| commit | 46c792c78d3b5f4fdd600a7f2a4de93648862341 (patch) | |
| tree | 705d7b81680c9e926a9e5a73f2e97cb74e5ac450 /src/framework/standard/command.rs | |
| parent | Allow for nil prefixes in DMs (diff) | |
| download | serenity-46c792c78d3b5f4fdd600a7f2a4de93648862341.tar.xz serenity-46c792c78d3b5f4fdd600a7f2a4de93648862341.zip | |
Quickly rename to `no_dm_prefix`
Minimize assumptions that `no_prefix` would work everywhere.
Diffstat (limited to 'src/framework/standard/command.rs')
| -rw-r--r-- | src/framework/standard/command.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/framework/standard/command.rs b/src/framework/standard/command.rs index f164141..f4f455e 100644 --- a/src/framework/standard/command.rs +++ b/src/framework/standard/command.rs @@ -365,7 +365,7 @@ pub fn positions(ctx: &mut Context, msg: &Message, conf: &Configuration) -> Opti // If the above do not fill `positions`, then that means no kind of prefix was present. // Check if a no-prefix-execution is applicable. - if conf.no_prefix && private && positions.is_empty() { + if conf.no_dm_prefix && private && positions.is_empty() { positions.push(0); } } |