forked from karx/dircord
Fix raw prefix parsing
This commit is contained in:
parent
e6cc8c613c
commit
8828a0c44f
|
@ -180,7 +180,6 @@ impl EventHandler for Handler {
|
||||||
if let Some((stripped, false)) = computed
|
if let Some((stripped, false)) = computed
|
||||||
.strip_prefix(raw_prefix)
|
.strip_prefix(raw_prefix)
|
||||||
.map(str::trim)
|
.map(str::trim)
|
||||||
.and_then(|v| v.strip_suffix('\x0F'))
|
|
||||||
.map(|v| (v, v.is_empty()))
|
.map(|v| (v, v.is_empty()))
|
||||||
{
|
{
|
||||||
let to_send = stripped.trim_matches('\u{f}');
|
let to_send = stripped.trim_matches('\u{f}');
|
||||||
|
|
Loading…
Reference in a new issue