mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-25 04:02:45 +01:00
ngircd: fill in mode definitions
Source: https://github.com/ngircd/ngircd/blob/master/doc/Modes.txt
This commit is contained in:
parent
3d0ccadb76
commit
73464e516f
@ -51,6 +51,18 @@ 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'
|
||||
})
|
||||
|
||||
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'
|
||||
})
|
||||
|
||||
def spawn_client(self, nick, ident='null', host='null', realhost=None, modes=set(),
|
||||
server=None, ip='0.0.0.0', realname=None, ts=None, opertype='IRC Operator',
|
||||
manipulatable=False):
|
||||
@ -290,7 +302,6 @@ class NgIRCdProtocol(IRCS2SProtocol):
|
||||
log.debug("(%s) Ignoring KILL to %r as it isn't meant for us; we should see a QUIT soon",
|
||||
self.name, killed)
|
||||
|
||||
|
||||
def handle_nick(self, source, command, args):
|
||||
"""
|
||||
Handles the NICK command, used for server introductions and nick changes.
|
||||
|
Loading…
Reference in New Issue
Block a user