    # File lib/rbot/core/auth.rb, line 160
      def auth_view_perm(m, params)
        begin
          if params[:user].nil?
            user = get_botusername_for(m.source)
            return m.reply(_("you are owner, you can do anything")) if user.owner?
          else
            user = @bot.auth.get_botuser(params[:user].sub(/^all$/,"everyone"))
            return m.reply(_("owner can do anything")) if user.owner?
          end
        rescue
          return m.reply(_("couldn't find botuser %{name}") % {:name => params[:user]})
        end
        perm = user.perm
        str = []
        perm.each { |k, val|
          next if val.perm.empty?
          case k
          when :*
            str << _("on any channel: ")
          when "?""?"
            str << _("in private: ")
          else
            str << _("on #{k}: ")
          end
          sub = []
          val.perm.each { |cmd, bool|
            sub << (bool ? "+" : "-")
            sub.last << cmd.to_s
          }
          str.last << sub.join(', ')
        }
        if str.empty?
          m.reply _("no permissions set for %{user}") % {:user => user.username}
        else
          m.reply _("permissions for %{user}:: %{permissions}") %
                  { :user => user.username, :permissions => str.join('; ')}
        end
      end