code: def invite(self, channel, nick):
          
          with self.lock:
              self.is_in_channel(channel)
  
              self.send('INVITE %s %s' % (nick, channel))
  
              while self.readable():
                      msg = self._recv(expected_replies=('341', '301'))
  
                      if msg[0] == '341':
                          pass
                      elif msg[0] == '301':
                          away_msg = msg[2].split()[1].replace(':', '', 1)
                          return 'AWAY', away_msg
docs: Invite someone to a channel.
          Required arguments:
          * channel - Channel to invite them to.
          * nick - Nick to invite.