def msg(self, target, msg):
        """
        Sends a message to an user or channel.

        :param target: user or channel to send to.
        :type target: str
        :param msg: message to send.
        :type msg: str
        """
        self.cmd(u'PRIVMSG', u'{0} :{1}'.format(target, msg))
def msg ( self , target , msg ) : self . cmd ( u'PRIVMSG' , u'{0} :{1}' . format ( target , msg ) )
Sends a message to an user or channel.

        :param target: user or channel to send to.
        :type target: str
        :param msg: message to send.
        :type msg: str