aboutsummaryrefslogtreecommitdiff
from src import ModuleManager, utils
import IRCLine

class Module(ModuleManager.BaseModule):
	def _done_connecting(self, server):
		if "LINELEN" in server.isupport:
			IRCLine.LINE_MAX = int(server.isupport['LINELEN'])

	@utils.hook("received.376")
	def end_of_motd(self, event):
		self._done_connecting(event["server"])
	@utils.hook("received.422")
	def no_motd(self, event):
		self._done_connecting(event["server"])