@command
    def MOTD(self, client, args=None):
        config = self.context.config
        if 'motd_fmt' not in config:
            config['motd_fmt'] = rfc.ERR_NOMOTD
            if not config.testing and os.path.isfile(config.motd):
                with open(config.motd) as fd:
                    lines = [l.rstrip() for l in fd.readlines()]
                    data = [rfc.RPL_MOTDSTART] + [
                        ':{c.srv} 372 {c.nick} :' + l for l in lines
                    ] + [rfc.RPL_ENDOFMOTD]
                    config['motd_fmt'] = data

        client.fwrite(config.motd_fmt,
                      server=client.srv, version=client.version)
Args:
dataset/ETHPy150Open gawel/irc3/irc3d/plugins/core.py/Core.MOTD--crossover with--dataset/ETHPy150Open ucb-sts/sts/sts/entities/hosts.py/Host.__init__