    # File lib/rbot/irc.rb, line 768
        def generalize
          u = user.dup
          unless u.has_irc_glob?
            u.sub!(/^[in]=/, '=') or u.sub!(/^\W(\w+)/, '\1')
            u = '*' + u
          end

          h = host.dup
          unless h.has_irc_glob?
            if h.include? '/'
              h.sub!(/x-\w+$/, 'x-*')
            else
              h.match(/^[^\.]+\.[^\.]+$/) or
              h.sub!(/azzurra[=-][0-9a-f]+/i, '*') or # hello, azzurra, you suck!
              h.sub!(/^(\d+\.\d+\.\d+\.)\d+$/, '\1*') or
              h.sub!(/^[^\.]+\./, '*.')
            end
          end
          return Netmask.new("*!#{u}@#{h}", server_and_casemap)
        end