3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-28 05:29:25 +01:00

pr/insp: map FIDENT/FHOST/FNAME hooks to their CHG* counterparts

This commit is contained in:
James Lu 2015-07-15 23:23:46 -07:00
parent 643218efce
commit f9d82153bb

View File

@ -17,7 +17,8 @@ from classes import *
# XXX figure out a way to not force-map ENCAP to KNOCK, since other commands are sent # XXX figure out a way to not force-map ENCAP to KNOCK, since other commands are sent
# through it too. # through it too.
hook_map = {'FJOIN': 'JOIN', 'RSQUIT': 'SQUIT', 'FMODE': 'MODE', hook_map = {'FJOIN': 'JOIN', 'RSQUIT': 'SQUIT', 'FMODE': 'MODE',
'FTOPIC': 'TOPIC', 'ENCAP': 'KNOCK', 'OPERTYPE': 'MODE'} 'FTOPIC': 'TOPIC', 'ENCAP': 'KNOCK', 'OPERTYPE': 'MODE',
'FHOST': 'CHGHOST', 'FIDENT': 'CHGIDENT', 'FNAME': 'CHGNAME'}
def _send(irc, sid, msg): def _send(irc, sid, msg):
irc.send(':%s %s' % (sid, msg)) irc.send(':%s %s' % (sid, msg))