fix(ts6): make UID messages being sent with hostname instead of sid
This commit is contained in:
parent
158636fadc
commit
5655e45b36
3 changed files with 7 additions and 5 deletions
8
Cargo.lock
generated
8
Cargo.lock
generated
|
|
@ -1022,9 +1022,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "toml"
|
name = "toml"
|
||||||
version = "1.0.0+spec-1.1.0"
|
version = "1.0.1+spec-1.1.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "d1d7e18e3dd1d31e0ee5e863a8091ffec2fcc271636586042452b656a22c8ee1"
|
checksum = "bbe30f93627849fa362d4a602212d41bb237dc2bd0f8ba0b2ce785012e124220"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"indexmap",
|
"indexmap",
|
||||||
"serde_core",
|
"serde_core",
|
||||||
|
|
@ -1046,9 +1046,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "toml_parser"
|
name = "toml_parser"
|
||||||
version = "1.0.7+spec-1.1.0"
|
version = "1.0.8+spec-1.1.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "247eaa3197818b831697600aadf81514e577e0cba5eab10f7e064e78ae154df1"
|
checksum = "0742ff5ff03ea7e67c8ae6c93cac239e0d9784833362da3f9a9c1da8dfefcbdc"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"winnow",
|
"winnow",
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,8 @@ impl IrcHandler for Pass {
|
||||||
server_incoming_passwords: Vec<String>,
|
server_incoming_passwords: Vec<String>,
|
||||||
_user_passwords: Vec<String>,
|
_user_passwords: Vec<String>,
|
||||||
) -> Vec<IrcAction> {
|
) -> Vec<IrcAction> {
|
||||||
|
// XXX
|
||||||
|
|
||||||
if server_incoming_passwords.contains(&command[0]) {
|
if server_incoming_passwords.contains(&command[0]) {
|
||||||
vec![
|
vec![
|
||||||
IrcAction::SendText(crate::sender::IrcResponse {
|
IrcAction::SendText(crate::sender::IrcResponse {
|
||||||
|
|
|
||||||
|
|
@ -113,7 +113,7 @@ impl Ts6 {
|
||||||
|
|
||||||
// TODO: refactor this entire thing. we need hostmask and ip and such fully working
|
// TODO: refactor this entire thing. we need hostmask and ip and such fully working
|
||||||
IrcResponse {
|
IrcResponse {
|
||||||
sender: Some(my_sid.clone().to_string()),
|
sender: Some(hostname.to_string()),
|
||||||
command: "UID".to_string(),
|
command: "UID".to_string(),
|
||||||
receiver: None,
|
receiver: None,
|
||||||
arguments: vec![
|
arguments: vec![
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue