@classmethod
def from_mask(cls, mask):
    """Returns a User object from a string like 'nick!user@host'.
        """
    nick, h = mask.split('!', 1)
    ident, host = h.split('@', 1)
    return cls(nick, ident, host)
