Gets the server's MOTD.
        Optional arguments:
        * server=None - Server to get the MOTD of.

def get_motd(self, server=None):
        """
        Gets the server's MOTD.
        Optional arguments:
        * server=None - Server to get the MOTD of.
        """
        with self.lock:
            if not server:
                self.send('MOTD')
            else:
                self.send('MOTD %s' % server)

            motd = []
            while self.readable():
                msg = self._recv(expected_replies=('375', '372', '376', '422'))
                if msg[0] == '375':
                    pass
                elif msg[0] == '372':
                    motd.append(msg[2].replace(':', '', 1))
                elif msg[0] == '376':
                    break
                elif msg[0] == '422':
                    break
            self.motd = tuple(motd)
            return self.motd