aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreta <hi@theta.eu.org>2019-10-07 10:25:37 +0100
committereta <hi@theta.eu.org>2019-10-07 10:25:37 +0100
commit6797a83d61beade63b65490af2b90c4023100fbc (patch)
tree125f35fee9188700d1eac82900f3d583e5f5fc5b
parent72c7799505034d7638b49301209582bf42c97935 (diff)
downloadsms-irc-6797a83d61beade63b65490af2b90c4023100fbc.tar.gz
sms-irc-6797a83d61beade63b65490af2b90c4023100fbc.tar.bz2
sms-irc-6797a83d61beade63b65490af2b90c4023100fbc.zip
avoid colliding with the configured admin nick
-rw-r--r--Cargo.lock2
-rw-r--r--src/insp_s2s.rs3
2 files changed, 4 insertions, 1 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 67283de..4bb432d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -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)",
diff --git a/src/insp_s2s.rs b/src/insp_s2s.rs
index 5e34677..04b9506 100644
--- a/src/insp_s2s.rs
+++ b/src/insp_s2s.rs
@@ -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> {