code: def nick(self):
          
          if '!' in self:
              return self.split('!', 1)[0]
          if not self.is_channel and not self.is_server:
              return self
docs: return nick name:
  
          .. code-block:: py
  
              >>> print(IrcString('foo').nick)
              foo
              >>> print(IrcString('foo!user@host').nick)
              foo
              >>> IrcString('#foo').nick is None
              True
              >>> IrcString('irc.freenode.net').nick is None
              True