3
0
mirror of https://github.com/jlu5/PyLink.git synced 2025-02-02 15:44:06 +01:00

hybrid: drop unused svstag handler

This commit is contained in:
James Lu 2016-04-08 20:22:53 -07:00
parent aeb65478cb
commit 3b3080d199

View File

@ -156,7 +156,6 @@ class HybridProtocol(TS6Protocol):
self.irc.channels[target].topic = text self.irc.channels[target].topic = text
self.irc.channels[target].topicset = True self.irc.channels[target].topicset = True
# command handlers # command handlers
def handle_capab(self, numeric, command, args): def handle_capab(self, numeric, command, args):
@ -209,12 +208,6 @@ class HybridProtocol(TS6Protocol):
self.irc.channels[channel].topicset = True self.irc.channels[channel].topicset = True
return {'channel': channel, 'setter': setter, 'ts': ts, 'text': topic} return {'channel': channel, 'setter': setter, 'ts': ts, 'text': topic}
def handle_svstag(self, numeric, command, args):
tag = args[2]
if tag in ['313']:
return
raise Exception('COULD NOT PARSE SVSTAG: {} {} {}'.format(numeric, command, args))
def handle_endburst(self, numeric, command, args): def handle_endburst(self, numeric, command, args):
log.debug('(%s) end of burst received', self.irc.name) log.debug('(%s) end of burst received', self.irc.name)
return {} return {}