Browse Source

avoid colliding with the configured admin nick

master
eta 4 years ago
parent
commit
6797a83d61
  1. 2
      Cargo.lock
  2. 3
      src/insp_s2s.rs

2
Cargo.lock generated

@ -1953,7 +1953,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" @@ -1953,7 +1953,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "sms-irc"
version = "0.1.0"
version = "0.2.0"
dependencies = [
"base64 0.10.1 (registry+https://github.com/rust-lang/crates.io-index)",
"chrono 0.4.7 (registry+https://github.com/rust-lang/crates.io-index)",

3
src/insp_s2s.rs

@ -347,6 +347,9 @@ impl InspLink { @@ -347,6 +347,9 @@ impl InspLink {
return true;
}
}
if nick == self.cfg.admin_nick {
return true;
}
false
}
fn check_nick_for_collisions(&self, nick: &str) -> Option<String> {

Loading…
Cancel
Save