mirror of
				https://github.com/jlu5/PyLink.git
				synced 2025-11-04 00:47:21 +01:00 
			
		
		
		
	ngircd: fixup mode definitions
This commit is contained in:
		
							parent
							
								
									f01fada92f
								
							
						
					
					
						commit
						0e10b62705
					
				@ -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
 | 
			
		||||
 | 
			
		||||
		
		
			
  | 
@ -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(),
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user