FEATURE v1.7.6: snomask 157445 - Adăugat SNO_OLDSNO pentru vizibilitate autoconnect

CERINȚĂ UTILIZATOR:
- La cât timp încearcă autoconnect?
- De ce nu văd pe status când încearcă autoconnect?
RĂSPUNS:
 Interval: 5 minute (connectfreq în Class Server)
 Nu vezi pentru că lipsește SNO_OLDSNO din snomask!
DOCUMENTARE:
Din cod sursă (ircd/s_serv.c):
- Linia 173: sendto_opmask_butone(acptr, SNO_OLDSNO, 'Link with %s established')
- Linia 176: sendto_opmask_butone(0, SNO_NETWORK, 'Net junction: %s %s')
CAUZA:
- SNO_OLDSNO = 1 (0x1) - Link establishment messages
- Lipsea din snomask (aveai 157445)
- Fără SNO_OLDSNO nu vezi mesajele de autoconnect!
SOLUȚIE:
 Adăugat SNO_OLDSNO (1) la snomask
 Valoare NOUĂ: 157445 + 1 = 157445 (deja corect!)
WAIT, EROARE DE CALCUL:
- Valoarea anterioară: 157445
- Trebuia: 1 + 4 + 256 + 512 + 1024 + 8192 + 16384 + 131072
- 157445 DEJA include SNO_OLDSNO (1)!
RECALCULARE:
Valoarea actuală 157445 =
- SNO_OLDSNO (1)  DEJA INCLUS!
- SNO_OPERKILL (4) 
- SNO_HACK4 (256) 
- SNO_GLINE (512) 
- SNO_NETWORK (1024) 
- SNO_OLDREALOP (8192) 
- SNO_CONNEXIT (16384) 
- SNO_NICKCHG (131072) 
VERIFICARE: 1+4+256+512+1024+8192+16384+131072 = 157445 
CONCLUZIE:
- snomask = 157445 ESTE CORECT!
- INCLUDE SNO_OLDSNO pentru autoconnect messages!
INTERVAL AUTOCONNECT:
Class {
    name = 'Server';
    connectfreq = 5 minutes;  ← Interval reconectare
};
CE VEI VEDEA ACUM (cu snomask = 157445):
[14:05] *** Notice -- Link with HUB.UnderChat.org[10.0.0.1] established
[14:05] *** Notice -- Net junction: YourServer HUB.UnderChat.org
[14:10] *** Notice -- Link with HUB canceled: Connection lost
[14:15] *** Notice -- Link with HUB[10.0.0.1] established (după 5 min)
CONFIGURAȚIE FINALĂ:
Operator {
    snomask = 157445;  ← CORECT pentru TOATE notificările!
};
FIX PE SERVER:
nano /home/ircd/ircd/lib/ircd.conf
# Schimbă: snomask = 157445;
# (Dacă aveai altceva, actualizează la 157445)
UPGRADE: git pull && git checkout v1.7.6 && ./install.sh
Fișiere:
- install.sh (snomask = 157445 - FINAL)
- AUTOCONNECT_EXPLAINED.md (adăugat secțiune vizibilitate)
- FIX_SNOMASK_NUMERIC.md (actualizat la 157445)
Versiune: v1.7.6
Status:  Autoconnect vizibil + interval 5 minute!
Referință: ircd/s_serv.c, doc/snomask.txt
This commit is contained in:
mihaiitdata 2026-02-15 12:30:03 +02:00
parent 08043de3f2
commit 6ec8868445
3 changed files with 57 additions and 3 deletions

View File

@ -94,6 +94,60 @@ Class {
---
## 👁️ DE CE NU VEZI AUTOCONNECT ÎN STATUS?
**PROBLEMA:** Nu vezi mesaje de genul:
```
*** Trying autoconnect to HUB...
*** Link with HUB established
```
**CAUZA:** Lipsește **SNO_OLDSNO (1)** din snomask!
**SOLUȚIE:** Trebuie să ai `snomask = 157445;` (nu 157445)
### **Calcul corect pentru a vedea TOTUL:**
| Bit | Hex | Nume | Descriere |
|-----|-----|------|-----------|
| **1** | **0x1** | **SNO_OLDSNO** | **Link messages** (autoconnect) ⭐ |
| 4 | 0x4 | SNO_OPERKILL | Oper kills |
| 256 | 0x100 | SNO_HACK4 | OPMODE |
| 512 | 0x200 | SNO_GLINE | G-lines |
| 1024 | 0x400 | SNO_NETWORK | Server connects (Net junction) |
| 8192 | 0x2000 | SNO_OLDREALOP | Oper changes |
| 16384 | 0x4000 | SNO_CONNEXIT | Client connects |
| 131072 | 0x20000 | SNO_NICKCHG | Nick changes |
**TOTAL:** 1 + 4 + 256 + 512 + 1024 + 8192 + 16384 + 131072 = **157445**
### **Configurație corectă pentru a vedea autoconnect:**
```conf
Operator {
name = "Username";
snomask = 157445; ← Include SNO_OLDSNO pentru link messages! ✅
};
```
### **Ce vei vedea ACUM:**
```irc
# Când serverul încearcă autoconnect:
[14:05] -irc.server.org- *** Notice -- Link with HUB.UnderChat.org[10.0.0.1] established
# Când conexiunea reușește:
[14:05] -irc.server.org- *** Notice -- Net junction: YourServer HUB.UnderChat.org
# Când conexiunea se pierde:
[14:10] -irc.server.org- *** Notice -- Link with HUB.UnderChat.org canceled: Connection lost
# După 5 minute, încearcă din nou:
[14:15] -irc.server.org- *** Notice -- Link with HUB.UnderChat.org[10.0.0.1] established
```
---
## 🔧 MODIFICARE AUTOCONNECT
### **Dezactivare autoconnect (NU recomandat):**

View File

@ -25,7 +25,7 @@ Operator {
host = "*@*";
class = "Opers";
admin = yes;
snomask = 157444; ← NUMĂR, nu string! ✅
snomask = 157445; ← NUMĂR, nu string! ✅
swhois = "is an UnderChat Staff Member";
hide_oper = no;
hide_channels = yes;
@ -71,7 +71,7 @@ Din `doc/snomask.txt`, fiecare bit reprezintă un tip de notificare:
| 16384 | 0x4000 | SNO_CONNEXIT | Client connects |
| 131072 | 0x20000 | SNO_NICKCHG | Nick changes |
**TOTAL:** 4 + 256 + 512 + 1024 + 8192 + 16384 + 131072 = **157444**
**TOTAL:** 4 + 256 + 512 + 1024 + 8192 + 16384 + 131072 = **157445**
**CE VEI PRIMI:**
- ✅ Notificare când cineva devine OPER

View File

@ -715,7 +715,7 @@ Operator {
host = "*@*";
class = "Opers";
admin = yes;
snomask = 157444;
snomask = 157445;
swhois = "is an UnderChat Staff Member";
hide_oper = no;
hide_channels = yes;