code: def privmsg(self, target, message, nowait=False):
          
          if message:
              messages = utils.split_message(message, self.config.max_length)
              if isinstance(target, DCCChat):
                  for message in messages:
                      target.send_line(message)
              elif target:
                  f = None
                  for message in messages:
                      f = self.send_line('PRIVMSG %s :%s' % (target, message),
                                         nowait=nowait)
                  return f
docs: send a privmsg to target