3
0
mirror of https://github.com/jlu5/PyLink.git synced 2025-01-11 12:42:34 +01:00

ngircd: fixup mode definitions

This commit is contained in:
James Lu 2019-12-29 09:50:47 -08:00
parent f01fada92f
commit 0e10b62705
2 changed files with 25 additions and 9 deletions

View File

@ -10,11 +10,11 @@ cloak_fakehost,,,,,,f,,,,,,
cloak_hashedhost,,,,,,C,,,,,,
cloak_hashedip,,,,,,c,,,,,,
cloak_sethost,,,,,,h,h,,,,,
deaf,,D,d,b,d,d,d,D,D,D,D,d
deaf,,D,d,,d,d,d,D,D,D,D,d
deaf_commonchan,,G,c,C,,q,,,,,,
debug,,d,,,,,,,,,,
filter,,,,,,,,,,,,G
floodexempt,,,,f,,,,,,,,
floodexempt,,,,F,,,,,,,,
helpop,,,h,,,,,,,,,
hidechans,,p,I,I,,n,n,,,I,,p (usermodes/privacy)
hideidle,,q,,,,I,I,,,,,I
@ -28,7 +28,7 @@ noinvite,,,,,,,,,,V,,
oper,o,o,o,o,o,o,o,o,o,o,o,o
operwall,,,,,,,,z,z,z,z,
override,,,,,,X,X,p,p,p,,
privdeaf,,,,,,D,,,,,,D (usermodes/privdeaf)
privdeaf,,,,b,,D,,,,,,D (usermodes/privdeaf)
protected,,,,,,,,,,,,q (usermodes/nokick)
regdeaf,,R,R,,,R,R,R,R,R,,R (usermodes/regonlymsg)
registered,,r,r,R,r,r,r,,,,,r

1 User Mode / IRCd RFC 1459 hybrid inspircd ngircd p10/ircu p10/nefarious p10/snircd ts6/charybdis ts6/chatircd ts6/elemental ts6/ratbox unreal
10 cloak_hashedhost C
11 cloak_hashedip c
12 cloak_sethost h h
13 deaf D d b d d d D D D D d
14 deaf_commonchan G c C q
15 debug d
16 filter G
17 floodexempt f F
18 helpop h
19 hidechans p I I n n I p (usermodes/privacy)
20 hideidle q I I I
28 oper o o o o o o o o o o o o
29 operwall z z z z
30 override X X p p p
31 privdeaf b D D (usermodes/privdeaf)
32 protected q (usermodes/nokick)
33 regdeaf R R R R R R R R (usermodes/regonlymsg)
34 registered r r R r r r r

View File

@ -59,15 +59,31 @@ class NgIRCdProtocol(IRCS2SProtocol):
self._caps.clear()
self.cmodes.update({
'banexception': 'e', 'invex': 'I', 'regmoderated': 'M', 'nonick': 'N',
'operonly': 'O', 'permanent': 'P', 'nokick': 'Q', 'registered': 'r',
'regonly': 'R', 'noinvite': 'V', 'sslonly': 'z'
'banexception': 'e',
'invex': 'I',
'noinvite': 'V',
'nokick': 'Q',
'nonick': 'N',
'operonly': 'O',
'permanent': 'P',
'registered': 'r',
'regmoderated': 'M',
'regonly': 'R',
'sslonly': 'z'
})
self.umodes.update({
'away': 'a', 'deaf': 'b', 'bot': 'B', 'sno_clientconnections': 'c',
'deaf_commonchan': 'C', 'floodexempt': 'f', 'hidechans': 'I',
'servprotect': 'q', 'restricted': 'r', 'registered': 'R', 'cloak': 'x'
'away': 'a',
'bot': 'B',
'cloak': 'x',
'deaf_commonchan': 'C',
'floodexempt': 'F',
'hidechans': 'I',
'privdeaf': 'b',
'registered': 'R',
'restricted': 'r',
'servprotect': 'q',
'sno_clientconnections': 'c'
})
def spawn_client(self, nick, ident='null', host='null', realhost=None, modes=set(),