code: def msg(self, target, message, formatted=True, tags=None):
          
          if formatted:
              message = unescape(message)
  
          self.send('PRIVMSG', params=[target, message], source=self.nick, tags=tags)
docs: Send a privmsg to the given target.