mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-24 11:39:25 +01:00
Support noctcp (+C) on charybdis, and wallops (+w) in relay
This commit is contained in:
parent
4ce377944c
commit
0575de1fac
@ -452,7 +452,8 @@ whitelisted_cmodes = {'admin', 'allowinvite', 'autoop', 'ban', 'banexception',
|
|||||||
'regmoderated', 'secret', 'sslonly',
|
'regmoderated', 'secret', 'sslonly',
|
||||||
'stripcolor', 'topiclock', 'voice'}
|
'stripcolor', 'topiclock', 'voice'}
|
||||||
whitelisted_umodes = {'bot', 'hidechans', 'hideoper', 'invisible', 'oper',
|
whitelisted_umodes = {'bot', 'hidechans', 'hideoper', 'invisible', 'oper',
|
||||||
'regdeaf', 'u_stripcolor', 'servprotect', 'u_noctcp'}
|
'regdeaf', 'u_stripcolor', 'servprotect', 'u_noctcp',
|
||||||
|
'wallops'}
|
||||||
def relayModes(irc, remoteirc, sender, channel, modes=None):
|
def relayModes(irc, remoteirc, sender, channel, modes=None):
|
||||||
remotechan = findRemoteChan(irc, remoteirc, channel)
|
remotechan = findRemoteChan(irc, remoteirc, channel)
|
||||||
log.debug('(%s) Relay mode: remotechan for %s on %s is %s', irc.name, channel, irc.name, remotechan)
|
log.debug('(%s) Relay mode: remotechan for %s on %s is %s', irc.name, channel, irc.name, remotechan)
|
||||||
|
@ -469,7 +469,7 @@ def handle_events(irc, data):
|
|||||||
'quiet': 'q', 'redirect': 'f', 'freetarget': 'F',
|
'quiet': 'q', 'redirect': 'f', 'freetarget': 'F',
|
||||||
'joinflood': 'j', 'largebanlist': 'L', 'permanent': 'P',
|
'joinflood': 'j', 'largebanlist': 'L', 'permanent': 'P',
|
||||||
'c_noforwards': 'Q', 'stripcolor': 'c', 'allowinvite':
|
'c_noforwards': 'Q', 'stripcolor': 'c', 'allowinvite':
|
||||||
'g', 'opmoderated': 'z',
|
'g', 'opmoderated': 'z', 'noctcp': 'C',
|
||||||
# Now, map all the ABCD type modes:
|
# Now, map all the ABCD type modes:
|
||||||
'*A': 'beI', '*B': 'k', '*C': 'l', '*D': 'mnprst'}
|
'*A': 'beI', '*B': 'k', '*C': 'l', '*D': 'mnprst'}
|
||||||
if 'EX' in caps:
|
if 'EX' in caps:
|
||||||
|
Loading…
Reference in New Issue
Block a user