Count from the start for stability

This commit is contained in:
Roderick van Domburg 2022-01-22 21:13:11 +01:00
parent 8851951f04
commit f2625965b3
No known key found for this signature in database
GPG key ID: FE2585E713F9F30A

View file

@ -281,7 +281,7 @@ impl Spirc {
.flatten_stream() .flatten_stream()
.map(|response| -> Result<(String, Frame), Error> { .map(|response| -> Result<(String, Frame), Error> {
let uri_split: Vec<&str> = response.uri.split('/').collect(); let uri_split: Vec<&str> = response.uri.split('/').collect();
let username = match uri_split.get(uri_split.len() - 2) { let username = match uri_split.get(4) {
Some(s) => s.to_string(), Some(s) => s.to_string(),
None => String::new(), None => String::new(),
}; };