services: SVSHOLD nick reservation, SVSTOPIC, SVSOPER, SVSCMODE over s2s (+ stats S)
This commit is contained in:
parent
f371ed0a18
commit
b76fbfdb79
4 changed files with 166 additions and 6 deletions
|
|
@ -422,9 +422,9 @@ impl Command for Nick {
|
|||
);
|
||||
return CmdResult::Fail;
|
||||
}
|
||||
// Q-line: a reserved nick is refused (opers and services bypass)
|
||||
// Q-line / SVSHOLD: a reserved nick is refused (opers and services bypass)
|
||||
if !s.is_oper(uid) {
|
||||
if let Some(reason) = s.matched_qline(newnick) {
|
||||
if let Some(reason) = s.nick_reserved(newnick) {
|
||||
s.numeric(
|
||||
uid,
|
||||
ERR_ERRONEUSNICKNAME,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue